-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
43 lines (43 loc) · 845 Bytes
/
.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
module.exports = {
plugins: ['prettier', 'react', 'jsx-a11y'],
parser: 'babel-eslint',
extends: ['airbnb', 'prettier', 'prettier/react'],
env: {
jest: true,
},
globals: {
window: true,
document: true,
navigator: true,
},
settings: {
'import/resolver': {
node: {
paths: ['./src'],
extensions: ['.js', '.jsx', '.scss'],
},
},
},
rules: {
camelcase: 0,
'react/jsx-filename-extension': [
1,
{
extensions: ['.js', '.jsx'],
},
],
'react/prop-types': 0,
'react/prefer-stateless-function': 0,
'react/jsx-sort-props': 2,
'prettier/prettier': [
'error',
{
printWidth: 120,
tabWidth: 2,
singleQuote: true,
trailingComma: 'es5',
jsxBracketSameLine: true,
},
],
},
};