2020-01-03 21:29:21 +00:00
|
|
|
{
|
2020-09-11 03:01:00 +00:00
|
|
|
"env": {
|
|
|
|
"browser": true
|
|
|
|
},
|
|
|
|
"globals": {
|
|
|
|
"Mousetrap": "readonly"
|
|
|
|
},
|
2020-01-18 22:17:09 +00:00
|
|
|
"parser": "@typescript-eslint/parser",
|
|
|
|
"parserOptions": {
|
|
|
|
"project": "./tsconfig.json"
|
|
|
|
},
|
2020-01-20 20:56:23 +00:00
|
|
|
"plugins": [
|
2021-10-27 23:27:26 +00:00
|
|
|
"@typescript-eslint",
|
|
|
|
"jsx-a11y"
|
2020-01-20 20:56:23 +00:00
|
|
|
],
|
2020-01-11 22:14:20 +00:00
|
|
|
"extends": [
|
2020-01-18 22:17:09 +00:00
|
|
|
"airbnb-typescript",
|
2020-01-24 15:28:30 +00:00
|
|
|
"airbnb/hooks",
|
2021-10-27 23:27:26 +00:00
|
|
|
"plugin:react/recommended",
|
|
|
|
"plugin:import/recommended",
|
2020-01-18 22:17:09 +00:00
|
|
|
"prettier",
|
2021-10-27 23:27:26 +00:00
|
|
|
"prettier/prettier"
|
2020-01-11 22:14:20 +00:00
|
|
|
],
|
2021-10-27 23:27:26 +00:00
|
|
|
"settings": {
|
|
|
|
"react": {
|
|
|
|
"version": "detect"
|
|
|
|
}
|
|
|
|
},
|
2020-01-11 22:14:20 +00:00
|
|
|
"rules": {
|
2020-02-13 18:54:37 +00:00
|
|
|
"@typescript-eslint/no-explicit-any": 2,
|
2020-09-11 03:01:00 +00:00
|
|
|
"@typescript-eslint/naming-convention": [
|
|
|
|
"error",
|
|
|
|
{
|
|
|
|
"selector": "interface",
|
|
|
|
"format": ["PascalCase"],
|
|
|
|
"custom": {
|
|
|
|
"regex": "^I[A-Z]",
|
|
|
|
"match": true
|
|
|
|
}
|
|
|
|
}
|
2020-01-18 22:17:09 +00:00
|
|
|
],
|
2020-09-11 03:01:00 +00:00
|
|
|
"lines-between-class-members": "off",
|
2020-11-25 02:20:48 +00:00
|
|
|
"@typescript-eslint/lines-between-class-members": "off",
|
2020-04-02 23:29:33 +00:00
|
|
|
"import/extensions": [
|
|
|
|
"error",
|
|
|
|
"ignorePackages",
|
|
|
|
{
|
|
|
|
"js": "never",
|
|
|
|
"jsx": "never",
|
|
|
|
"ts": "never",
|
|
|
|
"tsx": "never"
|
|
|
|
}
|
|
|
|
],
|
2020-01-18 22:17:09 +00:00
|
|
|
"import/named": "off",
|
|
|
|
"import/namespace": "off",
|
|
|
|
"import/no-unresolved": "off",
|
2021-10-27 23:27:26 +00:00
|
|
|
"react/display-name": "off",
|
2020-01-18 22:17:09 +00:00
|
|
|
"react/prop-types": "off",
|
2020-05-25 05:49:13 +00:00
|
|
|
"react/style-prop-object": ["error", {
|
|
|
|
"allow": ["FormattedNumber"]
|
|
|
|
}],
|
2020-01-18 22:17:09 +00:00
|
|
|
"spaced-comment": ["error", "always", {
|
|
|
|
"markers": ["/"]
|
|
|
|
}],
|
2020-01-20 20:25:47 +00:00
|
|
|
"prefer-destructuring": ["error", {"object": true, "array": false}],
|
|
|
|
"@typescript-eslint/no-use-before-define": ["error", { "functions": false, "classes": true }],
|
2021-10-27 23:27:26 +00:00
|
|
|
"no-nested-ternary": "off"
|
2020-01-11 22:14:20 +00:00
|
|
|
}
|
2020-01-03 21:29:21 +00:00
|
|
|
}
|