This repository has been archived by the owner on Jul 24, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
.eslintrc
146 lines (146 loc) · 3.58 KB
/
.eslintrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
{
'extends': [
'policygenius',
'policygenius/react',
'policygenius/jsx-a11y',
'policygenius/import',
'policygenius/jest'
],
'plugins': [
'markdown'
],
'rules': {
'array-bracket-spacing': [ 2, 'always' ],
'array-callback-return': 2,
'arrow-spacing': [ 2, {
'before': true,
'after': true
}],
'arrow-body-style': [
2,
'as-needed'
],
'block-scoped-var': 2,
'block-spacing': 2,
'brace-style': 2,
'camelcase': 2,
'class-methods-use-this': 0,
'comma-dangle': [
0,
'always-multiline'
],
'comma-style': 2,
'computed-property-spacing': 2,
'curly': [ 2, 'multi-line' ],
'default-case': 2,
'dot-notation': [ 0, {
'allowKeywords': false,
'allowPattern': '^[a-z]+(_[a-z]+)+$'
}],
'eqeqeq': [ 2, 'smart' ],
'func-names': 0,
'global-require': 0,
'import/imports-first': 0,
'import/newline-after-import': 0,
'import/no-absolute-path': 0,
'import/no-dynamic-require': 0,
'import/no-extraneous-dependencies': 0,
'import/no-named-as-default': 0,
'import/no-unresolved': 2,
'import/no-webpack-loader-syntax': 0,
'import/prefer-default-export': 0,
'indent': [
2,
2,
{
'SwitchCase': 2
}
],
'jest/valid-expect': 0,
'jsx-a11y/aria-props': 2,
'jsx-a11y/heading-has-content': 0,
'jsx-a11y/label-has-for': 2,
'jsx-a11y/mouse-events-have-key-events': 2,
'jsx-a11y/no-static-element-interactions': 0,
'jsx-a11y/role-has-required-aria-props': 2,
'jsx-a11y/role-supports-aria-props': 2,
'jsx-quotes': [ 2, 'prefer-single' ],
'key-spacing': 2,
'max-len': 0,
'newline-before-return': 2,
'newline-per-chained-call': 0,
'no-caller': 2,
'no-confusing-arrow': 0,
'no-console': [ 2,
{ allow: ["warn", "error"] }
],
'no-dupe-args': 2,
'no-dupe-keys': 2,
'no-duplicate-imports': 2,
'no-else-return': 2,
'no-empty-function': 2,
'no-empty-pattern': 2,
'no-empty': 2,
'no-extra-bind': 2,
'no-extra-parens': 2,
'no-extra-semi': 2,
'no-irregular-whitespace': 2,
'no-mixed-spaces-and-tabs': [ 2, 'smart-tabs' ],
'no-multi-spaces': [ 2, {
'exceptions': {
'Property': true
}
}],
'no-multiple-empty-lines': 2,
'no-plusplus': 0,
'no-trailing-spaces': 2,
'no-unused-expressions': 0,
'no-use-before-define': 0,
'no-useless-return': 2,
'object-curly-spacing': [ 2, 'always' ],
'object-property-newline': 2,
'prefer-template': 2,
'prefer-arrow-callback': 0,
'prefer-const': [ 2, {
'destructuring': 'any'
}],
'padded-blocks': 0,
'react/forbid-prop-types': 0,
'react/jsx-first-prop-new-line': [
2,
'multiline'
],
'react/jsx-filename-extension': 0,
'react/jsx-handler-names': 0,
'react/jsx-max-depth': 0,
'react/jsx-no-target-blank': 0,
'react/no-array-index-key': 0,
'react/no-unused-prop-types': 0,
'react/prop-types': [
2,
{
'ignore': [ 'children' ]
}
],
'react/require-extension': 0,
'react/require-optimization': 0,
'react/self-closing-comp': 0,
'require-yield': 0,
'space-before-function-paren': 2,
'space-in-parens': [ 0, 'always' ],
'spaced-comment': [ 2, 'always' ],
'react/sort-prop-types': 0,
'vars-on-top': 2,
},
'settings': {
'import/resolver': {
'webpack': {
'path': 'webpack.config.dev.js'
},
'node':{
'extensions': ['.js'],
'moduleDirectory': ['node_modules', 'src/'],
}
}
}
}