-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
45 lines (45 loc) · 1.13 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
module.exports = {
extends: ["airbnb", "prettier", "prettier/react"],
// babel-eslint parser is used to support experimental features not supported in ESLint itself yet
parser: "babel-eslint",
parserOptions: {
ecmaVersion: 8,
ecmaFeatures: {
impliedStrict: true, //enable global strict mode (if ecmaVersion is 5 or greater)
},
},
root: true,
env: {
browser: true,
node: true,
jest: true,
},
rules: {
"react/prop-types": 0,
"react/state-in-constructor": 0,
// allow .js extensions for JSX.
"react/jsx-filename-extension": [
1,
{
extensions: [".js", ".jsx"],
},
],
quotes: [
2,
"single",
{
avoidEscape: true, // allows strings to use single-quotes or double-quotes so long as the string contains a quote that would have to be escaped otherwise
allowTemplateLiterals: true, // allows strings to use backticks
},
],
// configure the prettier plugin
"prettier/prettier": [
"error",
{
trailingComma: "es5",
singleQuote: true,
},
],
},
plugins: ["react", "prettier"],
};