mirror of https://github.com/stashapp/stash.git
54 lines
1.7 KiB
JSON
54 lines
1.7 KiB
JSON
{
|
|
"parser": "@typescript-eslint/parser",
|
|
"parserOptions": {
|
|
"project": "./tsconfig.json"
|
|
},
|
|
"plugins": [
|
|
"@typescript-eslint"
|
|
],
|
|
"extends": [
|
|
"airbnb-typescript",
|
|
"airbnb/hooks",
|
|
"prettier",
|
|
"prettier/react",
|
|
"prettier/@typescript-eslint"
|
|
],
|
|
"rules": {
|
|
"@typescript-eslint/explicit-function-return-type": "off",
|
|
"@typescript-eslint/no-explicit-any": 2,
|
|
"lines-between-class-members": "off",
|
|
"@typescript-eslint/interface-name-prefix": [
|
|
"warn",
|
|
{ "prefixWithI": "always" }
|
|
],
|
|
"import/named": "off",
|
|
"import/namespace": "off",
|
|
"import/default": "off",
|
|
"import/no-named-as-default-member": "off",
|
|
"import/no-named-as-default": "off",
|
|
"import/no-cycle": "off",
|
|
"import/no-unused-modules": "off",
|
|
"import/no-deprecated": "off",
|
|
"import/no-unresolved": "off",
|
|
"import/prefer-default-export": "off",
|
|
"import/no-extraneous-dependencies": "off",
|
|
"indent": "off",
|
|
"@typescript-eslint/indent": "off",
|
|
"react/prop-types": "off",
|
|
"react/destructuring-assignment": "off",
|
|
"react/jsx-props-no-spreading": "off",
|
|
"spaced-comment": ["error", "always", {
|
|
"markers": ["/"]
|
|
}],
|
|
"max-classes-per-file": "off",
|
|
"no-plusplus": "off",
|
|
"prefer-destructuring": ["error", {"object": true, "array": false}],
|
|
"default-case": "off",
|
|
"consistent-return": "off",
|
|
"@typescript-eslint/no-use-before-define": ["error", { "functions": false, "classes": true }],
|
|
"no-underscore-dangle": "off",
|
|
"no-nested-ternary": "off",
|
|
"jsx-a11y/media-has-caption": "off"
|
|
}
|
|
}
|