-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.eslintrc.js
More file actions
39 lines (39 loc) · 958 Bytes
/
.eslintrc.js
File metadata and controls
39 lines (39 loc) · 958 Bytes
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
module.exports = {
extends: 'airbnb-base',
env: {
browser: true,
node: true,
'jest/globals': true
},
parser: 'babel-eslint',
parserOptions: {
ecmaVersion: 7,
ecmaFeatures: {
jsx: true
}
},
plugins: ['react', 'jest'],
rules: {
'comma-dangle': ['error', 'never'],
'react/jsx-uses-react': 'error',
'react/jsx-uses-vars': 'error',
'react/jsx-filename-extension': [1, { extensions: ['.js', '.jsx'] }],
'jest/no-identical-title': 'error',
'no-underscore-dangle': ['error', { allow: ['_id'] }],
'react/prop-types': [2],
'import/prefer-default-export': [0],
'class-methods-use-this': [0],
'object-curly-newline': [0],
'arrow-parens': [0]
},
settings: {
'import/resolver': {
node: {
extensions: ['.js', '.jsx']
}
},
react: {
version: 'detect' // React version. "detect" automatically picks the version you have installed.
}
}
};