1
1
{
2
- "parser" : " @typescript-eslint/parser" ,
3
- "parserOptions" : {
4
- "ecmaVersion" : 8 ,
5
- "sourceType" : " module" ,
6
- "project" : " ./tsconfig.json"
7
- },
8
- "extends" :[
9
- " standard" ,
10
- " plugin:react/recommended" ,
11
- " plugin:@typescript-eslint/recommended"
2
+ "parser" : " @typescript-eslint/parser" ,
3
+ "parserOptions" : {
4
+ "ecmaVersion" : 8 ,
5
+ "sourceType" : " module" ,
6
+ "project" : " ./tsconfig.json"
7
+ },
8
+ "extends" : [
9
+ " standard" ,
10
+ " plugin:react/recommended" ,
11
+ " plugin:@typescript-eslint/recommended" ,
12
+ " eslint-config-prettier" ,
13
+ " eslint-config-prettier/react" ,
14
+ " eslint-config-prettier/@typescript-eslint"
15
+ ],
16
+ "plugins" : [" import" , " react" , " jsx-a11y" , " @typescript-eslint" , " unicorn" ],
17
+ "settings" : {
18
+ "react" : {
19
+ "pragma" : " React" ,
20
+ "version" : " 16.6.3"
21
+ }
22
+ },
23
+ "env" : {
24
+ "browser" : true ,
25
+ "node" : true ,
26
+ "es6" : true
27
+ },
28
+ "globals" : {
29
+ "expect" : true ,
30
+ "test" : true ,
31
+ "describe" : true ,
32
+ "beforeEach" : true ,
33
+ "afterEach" : true ,
34
+ "jest" : true ,
35
+ "it" : true
36
+ },
37
+ "rules" : {
38
+ "semi" : 0 ,
39
+ "strict" : 0 ,
40
+ "indent" : [2 , 4 , { "SwitchCase" : 1 }],
41
+ "arrow-body-style" : 0 ,
42
+ "no-return-assign" : 0 ,
43
+ "no-useless-constructor" : 0 ,
44
+ "eqeqeq" : 0 ,
45
+ "no-console" : 0 ,
46
+ "no-param-reassign" : 0 ,
47
+ "@typescript-eslint/no-unused-vars" : [
48
+ " error" ,
49
+ { "vars" : " all" , "args" : " none" , "ignoreRestSiblings" : false }
12
50
],
13
- "plugins" : [
14
- " import" ,
15
- " react" ,
16
- " jsx-a11y"
51
+ "import/no-extraneous-dependencies" : [
52
+ " error" ,
53
+ {
54
+ "devDependencies" : true ,
55
+ "optionalDependencies" : false ,
56
+ "peerDependencies" : false
57
+ }
17
58
],
18
- "settings" : {
19
- "react" : {
20
- "pragma" : " React" ,
21
- "version" : " 16.6.3"
22
- }
23
- },
24
- "env" : {
25
- "browser" : true ,
26
- "node" : true ,
27
- "es6" : true
28
- },
29
- "globals" : {
30
- "expect" : true ,
31
- "test" : true ,
32
- "describe" : true ,
33
- "beforeEach" : true ,
34
- "afterEach" : true ,
35
- "jest" : true ,
36
- "it" : true
37
- },
38
- "rules" : {
39
- "semi" : 0 ,
40
- "strict" : 0 ,
41
- "indent" : [2 , 4 , { "SwitchCase" : 1 }],
42
- "arrow-body-style" : 0 ,
43
- "no-return-assign" : 0 ,
44
- "no-useless-constructor" : 0 ,
45
- "eqeqeq" : 0 ,
46
- "no-console" : 0 ,
47
- "no-param-reassign" : 0 ,
48
- "@typescript-eslint/no-unused-vars" : [" error" , { "vars" : " all" , "args" : " none" , "ignoreRestSiblings" : false }],
49
- "import/no-extraneous-dependencies" : [" error" , {"devDependencies" : true , "optionalDependencies" : false , "peerDependencies" : false }],
50
- "react/display-name" :[0 ],
51
- "react/sort-comp" : 0 ,
52
- "react/jsx-uses-react" : 1 ,
53
- "react/prefer-stateless-function" : 0 ,
54
- "react/jsx-closing-bracket-location" : 0 ,
55
- "jsx-a11y/no-static-element-interactions" : 0 ,
56
- "react/prop-types" : [0 , {"ignore" : [" children" ]}],
57
- "react/jsx-filename-extension" : [1 , { "extensions" : [" .tsx" , " .js" , " .jsx" ] }],
58
- "react/react-in-jsx-scope" : 0 ,
59
- "@typescript-eslint/no-explicit-any" : 0 ,
60
- "@typescript-eslint/explicit-member-accessibility" : 0 ,
61
- "@typescript-eslint/explicit-function-return-type" : 0 ,
62
- "@typescript-eslint/no-use-before-define" : 0 ,
63
- "@typescript-eslint/no-var-requires" : 0 ,
64
- "@typescript-eslint/interface-name-prefix" :0 ,
65
- "@typescript-eslint/no-empty-interface" :0 ,
66
- "@typescript-eslint/no-this-alias" : [
67
- " error" ,
68
- {
69
- "allowDestructuring" : true , // Allow `const { props, state } = this`; false by default
70
- "allowedNames" : [" that" ] // Allow `const self = this`; `[]` by default
71
- }
72
- ],
73
- "prefer-const" : 0 ,
74
- "no-var" : 0 ,
75
- "prefer-rest-params" : 0
76
- }
77
- }
59
+ "react/display-name" : [0 ],
60
+ "react/sort-comp" : 0 ,
61
+ "react/jsx-uses-react" : 1 ,
62
+ "react/prefer-stateless-function" : 0 ,
63
+ "react/jsx-closing-bracket-location" : 0 ,
64
+ "jsx-a11y/no-static-element-interactions" : 0 ,
65
+ "react/prop-types" : [0 , { "ignore" : [" children" ] }],
66
+ "react/jsx-filename-extension" : [
67
+ 1 ,
68
+ { "extensions" : [" .tsx" , " .js" , " .jsx" ] }
69
+ ],
70
+ "react/react-in-jsx-scope" : 0 ,
71
+ "@typescript-eslint/no-explicit-any" : 0 ,
72
+ "@typescript-eslint/explicit-member-accessibility" : 0 ,
73
+ "@typescript-eslint/explicit-function-return-type" : 0 ,
74
+ "@typescript-eslint/no-use-before-define" : 0 ,
75
+ "@typescript-eslint/no-var-requires" : 0 ,
76
+ "@typescript-eslint/interface-name-prefix" : 0 ,
77
+ "@typescript-eslint/no-empty-interface" : 0 ,
78
+ "@typescript-eslint/no-this-alias" : [
79
+ " error" ,
80
+ {
81
+ "allowDestructuring" : true , // Allow `const { props, state } = this`; false by default
82
+ "allowedNames" : [" that" ] // Allow `const self = this`; `[]` by default
83
+ }
84
+ ],
85
+ "prefer-const" : 0 ,
86
+ "no-var" : 0 ,
87
+ "prefer-rest-params" : 0
88
+ }
89
+ }
0 commit comments