1 | module.exports = {
|
2 | env: {
|
3 | es6: true,
|
4 | browser: true,
|
5 | node: true,
|
6 | },
|
7 | extends: ['airbnb'],
|
8 | plugins: [
|
9 | 'babel',
|
10 | 'import',
|
11 | 'jsx-a11y',
|
12 | 'react',
|
13 | 'prettier',
|
14 | ],
|
15 | parser: 'babel-eslint',
|
16 | parserOptions: {
|
17 | ecmaVersion: 6,
|
18 | sourceType: 'module',
|
19 | ecmaFeatures: {
|
20 | jsx: true
|
21 | }
|
22 | },
|
23 | rules: {
|
24 | 'linebreak-style': 'off',
|
25 |
|
26 | 'arrow-parens': 'off',
|
27 | 'object-curly-newline': 'off',
|
28 | 'no-mixed-operators': 'off',
|
29 | 'arrow-body-style': 'off',
|
30 | 'function-paren-newline': 'off',
|
31 | 'no-plusplus': 'off',
|
32 | 'space-before-function-paren': 0,
|
33 |
|
34 | 'max-len': ['error', 100, 2, { ignoreUrls: true, }],
|
35 | 'no-console': 'error',
|
36 | 'no-alert': 'error',
|
37 |
|
38 | 'no-param-reassign': 'off',
|
39 | "radix": "off",
|
40 |
|
41 | 'react/require-default-props': 'off',
|
42 | 'react/forbid-prop-types': 'off',
|
43 | 'react/jsx-filename-extension': ['error', { extensions: ['.js'] }],
|
44 |
|
45 | 'prefer-destructuring': 'off',
|
46 |
|
47 | 'react/no-find-dom-node': 'off',
|
48 | 'react/no-did-mount-set-state': 'off',
|
49 | 'react/no-unused-prop-types': 'off',
|
50 | 'react/jsx-one-expression-per-line': 'off',
|
51 |
|
52 | "jsx-a11y/anchor-is-valid": ["error", { "components": ["Link"], "specialLink": ["to"] }],
|
53 | "jsx-a11y/label-has-for": [2, {
|
54 | "required": {
|
55 | "every": ["id"]
|
56 | }
|
57 | }],
|
58 |
|
59 | 'prettier/prettier': ['error'],
|
60 | },
|
61 | }; |
\ | No newline at end of file |