forked from pancakeswap/pancake-frontend
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc
50 lines (50 loc) · 1.93 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
39
40
41
42
43
44
45
46
47
48
49
50
{
"env": {
"es6": true,
"browser": true
},
"plugins": ["lodash", "address"],
"extends": ["@pancakeswap/eslint-config-pancake", "plugin:react/jsx-runtime"],
"rules": {
// "address/addr-type": ["warn", "checksum"],
// "no-empty-function": 0,
// "no-restricted-syntax": 0,
// "import/no-unresolved": 0,
// "no-console": ["warn", { "allow": ["info", "warn", "error", "debug", "time", "timeLog", "timeEnd"] }],
// "no-plusplus": 0,
// "prefer-destructuring": ["warn", { "object": true, "array": false }],
// "no-underscore-dangle": 0,
// "no-continue": 0,
// "lodash/import-scope": [2, "method"],
// "@next/next/no-img-element": 0,
// "no-sparse-arrays": 0,
// "react/no-unknown-property": 0,
// "jsx-a11y/control-has-associated-label": 0,
// "react-hooks/exhaustive-deps": [
// "warn",
// {
// "additionalHooks": "(useFastRefreshEffect|useSlowRefreshEffect)"
// }
// ],
// // Start temporary rules
// // These rules are here just to keep the lint error to 0 during the migration to the new rule set
// // They need to be removed and fixed as soon as possible
// "@typescript-eslint/ban-ts-comment": [1, { "ts-ignore": false, "ts-nocheck": false }],
// "@typescript-eslint/no-use-before-define": 0,
// "@typescript-eslint/explicit-module-boundary-types": 0,
// "@typescript-eslint/no-explicit-any": 0,
// "radix": 0,
// // "import/no-extraneous-dependencies": 0,
// "jsx-a11y/media-has-caption": 0,
// // Exchange
// "no-param-reassign": ["error", { "props": true, "ignorePropertyModificationsFor": ["state", "memo"] }],
// "react/require-default-props": 0,
// "no-nested-ternary": 0,
// "max-classes-per-file": 0
"react/no-unknown-property": "off",
"@typescript-eslint/no-unused-vars": "off",
"no-continue": "off",
"jsx-a11y/control-has-associated-label": "off"
// End temporary rules
}
}