forked from neo4j/neo4j-browser
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
64 lines (64 loc) · 2.03 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
{
"parser": "babel-eslint",
"extends": ["plugin:react/recommended", "prettier"],
"parserOptions": {
"sourceType": "module"
},
"rules": {
"no-case-declarations": "off",
"no-prototype-builtins": "off",
"prefer-const": "warn",
"no-async-promise-executor": "off",
"react/jsx-handler-names": "off",
"react/jsx-fragments": "off",
"react/prop-types": "off",
"react/jsx-no-target-blank": "off",
"react/jsx-indent": "off",
"react/no-deprecated": "warn",
"react/display-name": "warn",
"react/no-unescaped-entities": "off",
"import/no-webpack-loader-syntax": "off"
},
"globals": {
"it": true,
"describe": true,
"test": true,
"jest": true,
"expect": true,
"beforeAll": true,
"afterAll": true,
"beforeEach": true,
"afterEach": true,
"neo": true,
"FileReader": true,
"Blob": true,
"fetch": true
},
"settings": {
"react": {
"version": "detect"
}
},
"overrides": [
{
"parser": "@typescript-eslint/parser",
"files": ["*.ts", "**/*.ts", "**/*.tsx"],
"extends": [
"plugin:@typescript-eslint/recommended", // Uses the recommended rules from the @typescript-eslint/eslint-plugin
"prettier/@typescript-eslint", // Uses eslint-config-prettier to disable ESLint rules from @typescript-eslint/eslint-plugin that would conflict with prettier
"plugin:react/recommended", // Uses the recommended rules from @eslint-plugin-react
"prettier/react" // disables react-specific linting rules that conflict with prettier
],
"plugins": [
"@typescript-eslint/eslint-plugin",
"@typescript-eslint",
"react"
],
"rules": {
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/no-explicit-any": "off", // remove this when migrated fully to ts. right now it makes warnings unreadable
"@typescript-eslint/ban-ts-comment": "off" // remove this when typings for react-spring allow multiple animation stages
}
}
]
}