1+ module . exports = {
2+ extends : [ 'eslint:recommended' , 'plugin:@typescript-eslint/recommended' ] ,
3+ parser : '@typescript-eslint/parser' ,
4+ parserOptions : {
5+ ecmaVersion : 'latest' ,
6+ sourceType : 'module'
7+ } ,
8+ plugins : [ '@typescript-eslint' ] ,
9+ rules : {
10+ 'no-plusplus' : 'off' ,
11+ 'comma-dangle' : [ 'off' ] ,
12+ 'import/no-extraneous-dependencies' : 'off' ,
13+ 'import/extensions' : 'off' ,
14+ 'import/no-unresolved' : 'off' ,
15+ '@typescript-eslint/no-unused-vars' : [
16+ 'error' ,
17+ {
18+ ignoreRestSiblings : true ,
19+ vars : 'local'
20+ }
21+ ] ,
22+ 'no-shadow' : 'off' ,
23+ 'implicit-arrow-linebreak' : 'off' ,
24+ 'space-before-blocks' : 'error' ,
25+ 'function-paren-newline' : 'off' ,
26+ 'padding-line-between-statements' : [
27+ 'error' ,
28+ {
29+ blankLine : 'always' ,
30+ prev : '*' ,
31+ next : 'return'
32+ } ,
33+ {
34+ blankLine : 'always' ,
35+ prev : [ 'const' , 'let' , 'var' ] ,
36+ next : '*'
37+ } ,
38+ {
39+ blankLine : 'any' ,
40+ prev : [ 'const' , 'let' , 'var' ] ,
41+ next : [ 'const' , 'let' , 'var' ]
42+ }
43+ ] ,
44+ 'object-curly-newline' : 'off' ,
45+ 'func-call-spacing' : 'off' ,
46+ 'operator-linebreak' : 'off' ,
47+ 'import/prefer-default-export' : 'off' ,
48+ 'no-spaced-func' : 'off' ,
49+ '@typescript-eslint/consistent-type-imports' : 'error' ,
50+ indent : [ "error" , 2 , { "SwitchCase" : 1 } ] ,
51+ curly : [ 'error' , 'multi' , 'consistent' ] ,
52+ 'no-confusing-arrow' : 'off' ,
53+ 'nonblock-statement-body-position' : 'off' ,
54+ '@typescript-eslint/no-explicit-any' : 'error'
55+ }
56+ } ;
0 commit comments