-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc.json
44 lines (44 loc) · 1.04 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
{
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:@typescript-eslint/recommended",
"prettier/@typescript-eslint",
"plugin:prettier/recommended",
"prettier",
"prettier/react",
"react-app"
],
"plugins": ["react", "@typescript-eslint", "prettier", "simple-import-sort"],
"env": {
"browser": true,
"jasmine": true,
"jest": true,
"es6": true,
"node": true
},
"rules": {
//"no-use-before-define": [
// "error",
// { "functions": true, "classes": true, "variables": false }
//],
"prettier/prettier": ["error", { "singleQuote": true, "endOfLine": "auto" }],
"react/prop-types": 0,
"react/jsx-filename-extension": [
1,
{
"extensions": [".js", ".jsx", ".ts", ".tsx"]
}
],
"simple-import-sort/imports": "error",
"simple-import-sort/exports": "error",
"sort-imports": "off"
},
"settings": {
"react": {
"pragma": "React",
"version": "detect"
}
},
"parser": "@typescript-eslint/parser"
}