1
1
module . exports = {
2
- plugins : [ 'html' , 'json' , 'babel' , 'react-hooks' ] ,
3
- extends : [ 'airbnb' , 'plugin:prettier/recommended' , 'prettier/react' , 'plugin:jest/recommended' ] ,
4
- rules : {
5
- 'prettier/prettier' : [
6
- 'warn' ,
2
+ "plugins" : [
3
+ "html" ,
4
+ "json" ,
5
+ "babel" ,
6
+ "react-hooks"
7
+ ] ,
8
+ "extends" : [
9
+ "airbnb" ,
10
+ "plugin:prettier/recommended" ,
11
+ "prettier/react" ,
12
+ "plugin:jest/recommended"
13
+ ] ,
14
+ "rules" : {
15
+ "prettier/prettier" : [
16
+ "warn" ,
7
17
{
8
- printWidth : 100 ,
9
- singleQuote : true ,
10
- trailingComma : ' es5' ,
11
- semi : false ,
12
- } ,
18
+ " printWidth" : 100 ,
19
+ " singleQuote" : true ,
20
+ " trailingComma" : " es5" ,
21
+ " semi" : false
22
+ }
13
23
] ,
14
- 'arrow-parens' : [ 1 , 'as-needed' ] ,
15
- 'no-console' : 'off' ,
16
- 'no-param-reassign' : 'off' ,
17
- 'no-plusplus' : 'off' ,
18
- 'no-unused-expressions' : [
19
- 'warn' ,
24
+ "arrow-parens" : [
25
+ 1 ,
26
+ "as-needed"
27
+ ] ,
28
+ "no-console" : "off" ,
29
+ "no-param-reassign" : "off" ,
30
+ "no-plusplus" : "off" ,
31
+ "no-unused-expressions" : [
32
+ "warn" ,
20
33
{
21
- allowShortCircuit : true ,
22
- } ,
34
+ " allowShortCircuit" : true
35
+ }
23
36
] ,
24
- ' no-use-before-define' : [
25
- ' error' ,
37
+ " no-use-before-define" : [
38
+ " error" ,
26
39
{
27
- functions : false ,
28
- classes : true ,
29
- variables : true ,
30
- } ,
40
+ " functions" : false ,
41
+ " classes" : true ,
42
+ " variables" : true
43
+ }
31
44
] ,
32
- ' no-warning-comments' : 1 ,
33
- ' prefer-destructuring' : ' off' ,
34
- ' import/no-extraneous-dependencies' : [
35
- ' error' ,
45
+ " no-warning-comments" : 1 ,
46
+ " prefer-destructuring" : " off" ,
47
+ " import/no-extraneous-dependencies" : [
48
+ " error" ,
36
49
{
37
- devDependencies : [ '**/*.stories.js' , '**/*.test.js' , '**/demo/**' ] ,
38
- } ,
50
+ "devDependencies" : [
51
+ "**/*.stories.js" ,
52
+ "**/*.test.js" ,
53
+ "**/demo/**"
54
+ ]
55
+ }
39
56
] ,
40
- ' jsx-a11y/label-has-for' : 0 ,
41
- ' jsx-a11y/label-has-associated-control' : [
57
+ " jsx-a11y/label-has-for" : 0 ,
58
+ " jsx-a11y/label-has-associated-control" : [
42
59
2 ,
43
60
{
44
- assert : ' either' ,
45
- } ,
61
+ " assert" : " either"
62
+ }
46
63
] ,
47
- ' react/prop-types' : ' off' ,
48
- ' react/jsx-filename-extension' : ' off' ,
49
- ' react/require-default-props' : ' off' ,
50
- ' react-hooks/rules-of-hooks' : ' error' ,
51
- ' react-hooks/exhaustive-deps' : ' warn' ,
52
- ' jest/no-large-snapshots' : ' error' ,
64
+ " react/prop-types" : " off" ,
65
+ " react/jsx-filename-extension" : " off" ,
66
+ " react/require-default-props" : " off" ,
67
+ " react-hooks/rules-of-hooks" : " error" ,
68
+ " react-hooks/exhaustive-deps" : " warn" ,
69
+ " jest/no-large-snapshots" : " error"
53
70
} ,
54
- env : {
55
- es6 : true ,
56
- browser : true ,
71
+ " env" : {
72
+ " es6" : true ,
73
+ " browser" : true
57
74
} ,
58
- parserOptions : {
59
- ecmaVersion : 2018 ,
60
- sourceType : ' module' ,
61
- ecmaFeatures : {
62
- jsx : true ,
63
- } ,
75
+ " parserOptions" : {
76
+ " ecmaVersion" : 2018 ,
77
+ " sourceType" : " module" ,
78
+ " ecmaFeatures" : {
79
+ " jsx" : true
80
+ }
64
81
} ,
65
- parser : ' babel-eslint' ,
66
- }
82
+ " parser" : " babel-eslint"
83
+ }
0 commit comments