1
- {
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" ,
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' ,
17
7
{
18
- " printWidth" : 100 ,
19
- " singleQuote" : true ,
20
- " trailingComma" : " es5" ,
21
- " semi" : false
22
- }
8
+ printWidth : 100 ,
9
+ singleQuote : true ,
10
+ trailingComma : ' es5' ,
11
+ semi : false ,
12
+ } ,
23
13
] ,
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" ,
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' ,
33
20
{
34
- " allowShortCircuit" : true
35
- }
21
+ allowShortCircuit : true ,
22
+ } ,
36
23
] ,
37
- " no-use-before-define" : [
38
- " error" ,
24
+ ' no-use-before-define' : [
25
+ ' error' ,
39
26
{
40
- " functions" : false ,
41
- " classes" : true ,
42
- " variables" : true
43
- }
27
+ functions : false ,
28
+ classes : true ,
29
+ variables : true ,
30
+ } ,
44
31
] ,
45
- " no-warning-comments" : 1 ,
46
- " prefer-destructuring" : " off" ,
47
- " import/no-extraneous-dependencies" : [
48
- " error" ,
32
+ ' no-warning-comments' : 1 ,
33
+ ' prefer-destructuring' : ' off' ,
34
+ ' import/no-extraneous-dependencies' : [
35
+ ' error' ,
49
36
{
50
- "devDependencies" : [
51
- "**/*.stories.js" ,
52
- "**/*.test.js" ,
53
- "**/demo/**"
54
- ]
55
- }
37
+ devDependencies : [ '**/*.stories.js' , '**/*.test.js' , '**/demo/**' ] ,
38
+ } ,
56
39
] ,
57
- " jsx-a11y/label-has-for" : 0 ,
58
- " jsx-a11y/label-has-associated-control" : [
40
+ ' jsx-a11y/label-has-for' : 0 ,
41
+ ' jsx-a11y/label-has-associated-control' : [
59
42
2 ,
60
43
{
61
- " assert" : " either"
62
- }
44
+ assert : ' either' ,
45
+ } ,
63
46
] ,
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"
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' ,
70
53
} ,
71
- " env" : {
72
- " es6" : true ,
73
- " browser" : true
54
+ env : {
55
+ es6 : true ,
56
+ browser : true ,
74
57
} ,
75
- " parserOptions" : {
76
- " ecmaVersion" : 2018 ,
77
- " sourceType" : " module" ,
78
- " ecmaFeatures" : {
79
- " jsx" : true
80
- }
58
+ parserOptions : {
59
+ ecmaVersion : 2018 ,
60
+ sourceType : ' module' ,
61
+ ecmaFeatures : {
62
+ jsx : true ,
63
+ } ,
81
64
} ,
82
- " parser" : " babel-eslint"
83
- }
65
+ parser : ' babel-eslint' ,
66
+ }
0 commit comments