@@ -3,40 +3,49 @@ module.exports = {
33 env : {
44 node : true ,
55 } ,
6- parser : '@typescript-eslint/parser' ,
7- plugins : [ '@typescript-eslint' ] ,
8- extends : [ 'eslint:recommended' , 'plugin:@typescript-eslint/recommended' ] ,
6+ parser : "@typescript-eslint/parser" ,
7+ plugins : [ "@typescript-eslint" ] ,
8+ extends : [
9+ "eslint:recommended" ,
10+ "plugin:@typescript-eslint/recommended" ,
11+ "plugin:prettier/recommended" ,
12+ ] ,
913 // add your custom rules here
1014 rules : {
11- semi : [ 'error' , 'always' ] ,
12- 'no-extra-semi' : 'error' ,
13- 'no-extra-parens' : 'off' ,
14- 'comma-dangle' : [ 'error' , 'always-multiline' ] ,
15- 'space-before-function-paren' : [ 'error' , {
16- anonymous : 'always' ,
17- named : 'never' ,
18- asyncArrow : 'always' ,
19- } ] ,
20- 'func-call-spacing' : [ 'error' , 'never' ] ,
21- 'no-console' : 'off' ,
22- 'no-unused-expression' : 'off' ,
23- 'no-useless-constructor' : 'off' ,
24- 'arrow-parens' : 'off' ,
25- 'no-use-before-define' : 'off' ,
26- 'no-return-assign' : 'off' ,
27- 'quotes' : [ 'error' , 'single' ] ,
28- 'member-access' : 'off' ,
29- 'member-ordering' : 'off' ,
30- 'object-literal-sort-keys' : 'off' ,
31- 'no-trailing-spaces' : 'error' ,
32- '@typescript-eslint/no-inferrable-types' : 'off' ,
33- '@typescript-eslint/explicit-module-boundary-types' : 'off' ,
34- '@typescript-eslint/no-explicit-any' : 'off' ,
35- '@typescript-eslint/no-non-null-assertion' : 'off' ,
36- '@typescript-eslint/no-extra-parens' : [ 'off' ] ,
37- '@typescript-eslint/ban-types' : 'off' ,
38- '@typescript-eslint/no-unused-vars' : [ 'error' , {
39- varsIgnorePattern : '^_' ,
40- } ] ,
15+ semi : [ "error" , "always" ] ,
16+ "no-extra-semi" : "error" ,
17+ "no-extra-parens" : "off" ,
18+ "comma-dangle" : [ "error" , "always-multiline" ] ,
19+ "space-before-function-paren" : [
20+ "error" ,
21+ {
22+ anonymous : "always" ,
23+ named : "never" ,
24+ asyncArrow : "always" ,
25+ } ,
26+ ] ,
27+ "func-call-spacing" : [ "error" , "never" ] ,
28+ "no-console" : "off" ,
29+ "no-unused-expression" : "off" ,
30+ "no-useless-constructor" : "off" ,
31+ "arrow-parens" : "off" ,
32+ "no-use-before-define" : "off" ,
33+ "no-return-assign" : "off" ,
34+ "member-access" : "off" ,
35+ "member-ordering" : "off" ,
36+ "object-literal-sort-keys" : "off" ,
37+ "no-trailing-spaces" : "error" ,
38+ "@typescript-eslint/no-inferrable-types" : "off" ,
39+ "@typescript-eslint/explicit-module-boundary-types" : "off" ,
40+ "@typescript-eslint/no-explicit-any" : "off" ,
41+ "@typescript-eslint/no-non-null-assertion" : "off" ,
42+ "@typescript-eslint/no-extra-parens" : [ "off" ] ,
43+ "@typescript-eslint/ban-types" : "off" ,
44+ "@typescript-eslint/no-unused-vars" : [
45+ "error" ,
46+ {
47+ varsIgnorePattern : "^_" ,
48+ } ,
49+ ] ,
4150 } ,
4251} ;
0 commit comments