1 | const OFF = 0;
|
2 | const WARNING = 1;
|
3 | const ERROR = 2;
|
4 |
|
5 | module.exports = {
|
6 | env: {
|
7 | browser: true,
|
8 | commonjs: true,
|
9 | jest: true,
|
10 | node: true,
|
11 | },
|
12 | parser: 'babel-eslint',
|
13 | extends: ['airbnb', 'prettier'],
|
14 | rules: {
|
15 | 'no-console': OFF,
|
16 | radix: ERROR,
|
17 | 'class-methods-use-this': OFF,
|
18 | 'func-names': OFF,
|
19 | 'no-empty': [ERROR, {allowEmptyCatch: true}],
|
20 | 'no-param-reassign': OFF,
|
21 | 'no-plusplus': OFF,
|
22 | 'prefer-template': OFF,
|
23 | 'import/no-extraneous-dependencies': OFF,
|
24 | 'react/jsx-closing-bracket-location': OFF,
|
25 | 'react/jsx-filename-extension': OFF,
|
26 | 'react/jsx-one-expression-per-line': OFF,
|
27 | 'react/no-array-index-key': OFF,
|
28 | 'react/no-danger': OFF,
|
29 | 'react/no-multi-comp': OFF,
|
30 | 'react/no-unescaped-entities': [ERROR, {forbid: ['>', '}']}],
|
31 |
|
32 |
|
33 | 'react/button-has-type': OFF,
|
34 | 'react/forbid-prop-types': OFF,
|
35 | 'react/require-default-props': OFF,
|
36 | 'jsx-a11y/anchor-is-valid': OFF,
|
37 | 'import/no-unresolved': OFF,
|
38 | 'react/prefer-stateless-function': OFF,
|
39 | 'import/no-dynamic-require': OFF,
|
40 | 'prefer-destructuring': OFF,
|
41 | 'global-require': OFF,
|
42 | 'react/prop-types': OFF,
|
43 | 'react/destructuring-assignment': OFF,
|
44 | },
|
45 | };
|