1+ import typescriptEslint from "@typescript-eslint/eslint-plugin" ;
2+ import noOnlyTests from "eslint-plugin-no-only-tests" ;
3+ import eslintComments from "eslint-plugin-eslint-comments" ;
4+ import tsParser from "@typescript-eslint/parser" ;
5+
6+ export default [ {
7+ ignores : [ "packages/*/dist/**/*" , "packages/*/dev/**/*" , "**/*/__snapshots__/**/*" ] ,
8+ } , {
9+ plugins : {
10+ "@typescript-eslint" : typescriptEslint ,
11+ "no-only-tests" : noOnlyTests ,
12+ "eslint-comments" : eslintComments ,
13+ } ,
14+
15+ languageOptions : {
16+ parser : tsParser ,
17+ ecmaVersion : 5 ,
18+ sourceType : "module" ,
19+
20+ parserOptions : {
21+ project : "./tsconfig.json" ,
22+ tsconfigRootDir : "." ,
23+ } ,
24+ } ,
25+
26+ rules : {
27+ "no-console" : "warn" ,
28+ "no-debugger" : "warn" ,
29+ "prefer-const" : "warn" ,
30+
31+ "@typescript-eslint/no-unused-vars" : [ "warn" , {
32+ argsIgnorePattern : "^_" ,
33+ varsIgnorePattern : "^_" ,
34+ caughtErrorsIgnorePattern : "^_" ,
35+ } ] ,
36+
37+ "@typescript-eslint/no-unnecessary-boolean-literal-compare" : "warn" ,
38+ "@typescript-eslint/no-unnecessary-condition" : "warn" ,
39+ "@typescript-eslint/no-unnecessary-qualifier" : "warn" ,
40+ "@typescript-eslint/no-unnecessary-type-arguments" : "warn" ,
41+ "@typescript-eslint/no-unnecessary-type-assertion" : "warn" ,
42+ "@typescript-eslint/no-unnecessary-type-constraint" : "warn" ,
43+ "@typescript-eslint/no-useless-empty-export" : "warn" ,
44+ "eslint-comments/no-unused-disable" : "warn" ,
45+ "no-only-tests/no-only-tests" : "warn" ,
46+ } ,
47+ } ] ;
0 commit comments