-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.eslintrc
38 lines (38 loc) · 1.28 KB
/
.eslintrc
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
{
"parser": "babel-eslint",
"extends": ["airbnb-base", "react-app", "eslint-config-prettier"],
"plugins": ["eslint-plugin-prettier"],
"rules": {
// Soft some rules.
"comma-dangle": 0, // Nobody cares about commas.
"default-case": 0, // Required default case is nonsense.
"no-confusing-arrow": 0, // No, this is not confusing.
"no-floating-decimal": 0, // .5 is just fine.
"no-param-reassign": 0, // We love param reassignment. Naming is hard.
"no-shadow": 0, // Shadowing is a nice language feature. Naming is hard.
"no-underscore-dangle": 0, // It's classic pattern to denote private props.
"quote-props": 0, // better to stay consistent,
"class-methods-use-this": 0,
"react/jsx-indent": ["error", 2],
"object-curly-newline": 0, // That's going too far
"function-paren-newline": 0, // I like blocks to line up sometimes
"import/extensions": 0,
"import/prefer-default-export": 0,
"prettier/prettier": [
"error",
{
"printWidth": 80, // Easy to read
"semi": false, // Legacy
"singleQuote": true, // Easy to read
"trailingComma": "es5" // Helps simplify diffs
}
]
},
"settings": {
"import/resolver": {
"node": {
"extensions": [".js", ".jsx"]
}
}
}
}