-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
53 lines (53 loc) · 1.32 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
module.exports = {
parserOptions: {
ecmaVersion: 2017,
sourceType: 'module',
ecmaFeatures: {
jsx: true,
globalReturn: true,
generators: false,
objectLiteralDuplicateProperties: false,
experimentalObjectRestSpread: true,
},
},
parser: 'babel-eslint',
plugins: ['import', 'react', 'jsx-a11y'],
globals: {
document: false,
localStorage: false,
fetch: false,
alert: false,
window: false,
React$Element: false,
ReactClass: false,
API_HOST: false,
FormData: false,
Image: false,
S3_ZONE: false,
S3_BUCKET: false,
location: false,
},
extends: ['airbnb'],
rules: {
'react/jsx-filename-extension': [1, { extensions: ['.js', '.jsx'] }],
// Indent with 2 spaces
indent: ['error', 2],
// Indent JSX with 2 spaces
'react/jsx-indent': ['error', 2],
// Indent props with 2 spaces
'react/jsx-indent-props': ['error', 2],
'no-console': 'off',
'no-plusplus': 'off',
'react/require-default-props': 'off',
'react/jsx-filename-extension': ['error', { extensions: ['.js'] }],
'react/forbid-prop-types': 'off',
'react/prefer-stateless-function': 'off',
'react/sort-comp': 'off',
'jsx-a11y/no-static-element-interactions': 'off',
},
settings: {},
env: {
browser: true,
jest: true,
},
};