-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
81 lines (81 loc) · 1.98 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
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
module.exports = {
root: true,
env: {
browser: true,
node: true,
es6: true,
jest: true,
'cypress/globals': true,
},
extends: [
'plugin:flowtype/recommended',
'plugin:jest/recommended',
'airbnb',
'prettier',
'prettier/react',
],
parser: 'babel-eslint',
parserOptions: {
ecmaFeatures: {
experimentalObjectRestSpread: true,
jsx: true,
},
sourceType: 'module',
},
plugins: [
'flowtype',
'jest',
'cypress',
'prettier',
'react',
'jsx-a11y',
'import',
],
rules: {
'jsx-a11y/href-no-hash': 'off',
'jsx-a11y/label-has-for': 'off',
'jsx-a11y/no-static-element-interactions': 'off',
'jsx-a11y/no-noninteractive-element-interactions': 'off',
'jsx-a11y/click-events-have-key-events': 'off',
'react/prop-types': 'off',
'react/jsx-boolean-value': 'off',
'no-nested-ternary': 'off',
'no-plusplus': 'off',
'import/prefer-default-export': 'off',
'import/no-named-as-default': 'off',
'import/no-extraneous-dependencies': [
'error',
{
devDependencies: false,
optionalDependencies: false,
peerDependencies: false,
},
],
'class-methods-use-this': 'off',
'react/jsx-filename-extension': [
1,
{
extensions: ['.js', '.jsx'],
},
],
'react/destructuring-assignment': 'off',
'import/extensions': 'off',
'import/no-unresolved': 'off',
'import/no-extraneous-dependencies': 'off',
'import/prefer-default-export': 'off',
quotes: 'off',
'no-console': 'warn',
semi: 'off',
'no-unused-vars': 'warn', // ['error', 'always'],
'no-inline-comments': 'off',
'no-underscore-dangle': 'off',
'no-useless-constructor': 'warn',
'init-declarations': 'off',
'prefer-destructuring': 'off',
'consistent-return': 'off',
'no-use-before-define': 'off',
'global-require': 'off',
'react/prefer-stateless-function': 'warn',
'prettier/prettier': 'warn',
},
};