Files
stash/ui/v2.5/.eslintrc.json
DingDongSoLong4 2d73912f15 Improve client-side graphql scalar types (#4511)
* Add types to graphql scalars
* Upgrade dependencies
* Override UI config type
* Remove all IUIConfig casts
* Add tableColumns to IUIConfig
* Add BoolMap type, set strictScalars
* Add PluginConfigMap
* Replace any with unknown
* Add SavedObjectFilter and SavedUIOptions
* Remove unused items from CriterionType
2024-02-07 09:49:32 +11:00

76 lines
1.8 KiB
JSON

{
"env": {
"browser": true
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.json"
},
"plugins": ["@typescript-eslint", "jsx-a11y"],
"extends": [
"airbnb-typescript",
"plugin:import/recommended",
"plugin:react/recommended",
"plugin:react/jsx-runtime",
"airbnb/hooks",
"prettier"
],
"settings": {
"react": {
"version": "detect"
}
},
"ignorePatterns": ["node_modules/", "src/core/generated-graphql.ts"],
"rules": {
"@typescript-eslint/lines-between-class-members": "off",
"@typescript-eslint/naming-convention": [
"error",
{
"selector": "interface",
"format": ["PascalCase"],
"custom": {
"regex": "^I[A-Z]",
"match": true
}
}
],
"@typescript-eslint/no-explicit-any": 2,
"@typescript-eslint/no-use-before-define": [
"error",
{ "functions": false, "classes": false }
],
"import/extensions": [
"error",
"ignorePackages",
{
"js": "never",
"jsx": "never",
"ts": "never",
"tsx": "never"
}
],
"import/named": "off",
"import/namespace": "off",
"import/no-unresolved": "off",
"lines-between-class-members": "off",
"no-nested-ternary": "off",
"prefer-destructuring": [
"error",
{
"VariableDeclarator": {
"array": false,
"object": true
},
"AssignmentExpression": {
"array": false,
"object": false
}
}
],
"react/display-name": "off",
"react/prop-types": "off",
"react/style-prop-object": ["error", { "allow": ["FormattedNumber"] }],
"spaced-comment": ["error", "always", { "markers": ["/"] }]
}
}