stash/ui/v2.5/.eslintrc.json

70 lines
1.6 KiB
JSON
Raw Normal View History

2020-01-03 21:29:21 +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": [
"@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",
"plugin:react/recommended",
"plugin:import/recommended",
2020-01-18 22:17:09 +00:00
"prettier",
"prettier/prettier"
2020-01-11 22:14:20 +00:00
],
"settings": {
"react": {
"version": "detect"
}
},
2020-01-11 22:14:20 +00:00
"rules": {
"@typescript-eslint/no-explicit-any": 2,
"@typescript-eslint/naming-convention": [
"error",
{
"selector": "interface",
"format": ["PascalCase"],
"custom": {
"regex": "^I[A-Z]",
"match": true
}
}
2020-01-18 22:17:09 +00:00
],
"lines-between-class-members": "off",
"@typescript-eslint/lines-between-class-members": "off",
"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",
"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 }],
"no-nested-ternary": "off"
2020-01-11 22:14:20 +00:00
}
2020-01-03 21:29:21 +00:00
}