@@ -5,44 +5,53 @@ module.exports = {
5
5
es2020 : true ,
6
6
node : true ,
7
7
} ,
8
- parser : '@babel/eslint-parser' ,
9
- extends : [ 'eslint:recommended' , 'standard' , 'plugin:import/errors' , 'prettier' ] ,
8
+ extends : [
9
+ "eslint:recommended" ,
10
+ "standard" ,
11
+ "plugin:import/errors" ,
12
+ "prettier" ,
13
+ ] ,
10
14
parserOptions : {
11
- ecmaVersion : 11 ,
12
- requireConfigFile : 'false' ,
13
- babelOptions : { configFile : './.babelrc' } ,
14
- sourceType : 'module' ,
15
+ ecmaVersion : 2022 ,
16
+ requireConfigFile : "false" ,
17
+ sourceType : "module" ,
15
18
} ,
16
- ignorePatterns : [ 'tmp/*' , '!/.*' , '/.next/' , 'script/bookmarklets/*' , 'rest-api-description/' ] ,
19
+ ignorePatterns : [
20
+ "tmp/*" ,
21
+ "!/.*" ,
22
+ "/.next/" ,
23
+ "script/bookmarklets/*" ,
24
+ "rest-api-description/" ,
25
+ ] ,
17
26
rules : {
18
- ' import/no-extraneous-dependencies' : [ ' error' , { packageDir : '.' } ] ,
27
+ " import/no-extraneous-dependencies" : [ " error" , { packageDir : "." } ] ,
19
28
} ,
20
29
overrides : [
21
30
{
22
- files : [ ' **/tests/**/*.js' ] ,
31
+ files : [ " **/tests/**/*.js" ] ,
23
32
env : {
24
33
jest : true ,
25
34
} ,
26
35
} ,
27
36
{
28
- files : [ ' **/*.tsx' , ' **/*.ts' ] ,
29
- plugins : [ ' @typescript-eslint' , ' jsx-a11y' ] ,
30
- extends : [ ' plugin:jsx-a11y/recommended' ] ,
31
- parser : ' @typescript-eslint/parser' ,
37
+ files : [ " **/*.tsx" , " **/*.ts" ] ,
38
+ plugins : [ " @typescript-eslint" , " jsx-a11y" ] ,
39
+ extends : [ " plugin:jsx-a11y/recommended" ] ,
40
+ parser : " @typescript-eslint/parser" ,
32
41
rules : {
33
- camelcase : ' off' ,
34
- ' no-unused-vars' : ' off' ,
35
- ' no-undef' : ' off' ,
36
- ' no-use-before-define' : ' off' ,
37
- ' @typescript-eslint/no-unused-vars' : [ ' error' ] ,
38
- ' jsx-a11y/no-onchange' : ' off' ,
42
+ camelcase : " off" ,
43
+ " no-unused-vars" : " off" ,
44
+ " no-undef" : " off" ,
45
+ " no-use-before-define" : " off" ,
46
+ " @typescript-eslint/no-unused-vars" : [ " error" ] ,
47
+ " jsx-a11y/no-onchange" : " off" ,
39
48
} ,
40
49
} ,
41
50
] ,
42
51
settings : {
43
- ' import/resolver' : {
52
+ " import/resolver" : {
44
53
typescript : true ,
45
- node : true
46
- }
47
- }
48
- }
54
+ node : true ,
55
+ } ,
56
+ } ,
57
+ } ;
0 commit comments