forked from motiondivision/motion
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
37 lines (37 loc) · 1.25 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
{
"parser": "@typescript-eslint/parser",
"parserOptions": {
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
},
"useJSXTextNode": true
},
"plugins": ["@typescript-eslint", "react", "react-hooks", "import"],
"extends": ["prettier", "prettier/@typescript-eslint"],
"rules": {
"@typescript-eslint/no-unused-vars": "warn",
"@typescript-eslint/class-name-casing": "error",
"@typescript-eslint/type-annotation-spacing": "error",
"react/jsx-pascal-case": "error",
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"import/no-default-export": "error",
"prefer-arrow-callback": "warn",
"no-sequences": "error",
"no-eval": "error",
"no-return-await": "error",
"no-shadow": "error",
"no-throw-literal": "error",
"no-extra-bind": "error",
"no-var": "error",
"prefer-const": "error",
"eqeqeq": "error",
// No direct replacement for these rules
// "no-internal-module": 1,
// "react-this-binding-issue": 1,
// "react-unused-props-and-state": 1,
// "variable-name": [1, "ban-keywords"]
"use-isnan": "error"
}
}