generated from UnBArqDsw2021-2/RepositorioTemplate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
44 lines (44 loc) · 1.11 KB
/
.eslintrc.json
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
{
"env": {
"browser": true,
"es2021": true,
"node": true
},
"extends": [
"plugin:@typescript-eslint/recommended",
"plugin:import/typescript",
"plugin:prettier/recommended",
"plugin:react-perf/recommended",
"plugin:@next/next/recommended",
"next"
],
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 12,
"sourceType": "module"
},
"plugins": ["react", "prettier"],
"rules": {
"object-shorthand": "warn",
"no-underscore-dangle": "off",
"import/prefer-default-export": "off",
"simple-import-sort/imports": "warn",
"simple-import-sort/exports": "warn",
"import/first": "error",
"import/newline-after-import": "error",
"import/no-duplicates": "error",
"import/no-cycle": "error",
"@typescript-eslint/no-unused-vars": "off",
"unused-imports/no-unused-imports": "error",
// defaultProps rule to be deprecated on function components
// https://github.com/reactjs/rfcs/pull/107
"react/require-default-props": [
"error",
{
"ignoreFunctionalComponents": true
}
]
}
}