-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
47 lines (45 loc) · 1.1 KB
/
.eslintrc.js
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
const prettierOptions = require('./.prettierrc');
const OFF = 0;
const ERROR = 2;
module.exports = {
'root': true,
'parser': 'babel-eslint',
'extends': [
'airbnb',
'prettier'
],
'env': {
'browser': true,
'node': true,
'jest': true,
'es6': true
},
'plugins': [
'react',
'jsx-a11y',
'import',
'prettier'
],
'rules': {
'prettier/prettier': [ERROR, prettierOptions],
'arrow-body-style': OFF,
'arrow-parens': OFF,
'camelcase': OFF,
'class-methods-use-this': OFF,
'comma-dangle': OFF,
'function-paren-newline': OFF,
'object-curly-newline': OFF,
'implicit-arrow-linebreak': OFF,
'import/no-extraneous-dependencies': OFF,
'import/no-named-as-default': OFF,
'import/prefer-default-export': OFF,
'jsx-a11y/anchor-is-valid': OFF,
'jsx-a11y/label-has-associated-control': OFF,
'jsx-a11y/label-has-for': OFF,
'react/prefer-stateless-function': OFF,
'react/prop-types': OFF,
'react/require-default-props': OFF,
'react/jsx-one-expression-per-line': OFF,
'react/jsx-filename-extension': OFF
}
};