shlink-web-client/.eslintrc

47 lines
1.4 KiB
Text
Raw Normal View History

{
2022-03-26 14:17:42 +03:00
"root": true,
2020-09-06 10:32:16 +03:00
"extends": [
2022-03-26 14:17:42 +03:00
"airbnb",
"airbnb-typescript",
"plugin:@typescript-eslint/recommended"
2020-09-06 10:32:16 +03:00
],
2020-08-22 09:06:41 +03:00
"parserOptions": {
2022-03-26 14:17:42 +03:00
"project": "./tsconfig.json"
},
"ignorePatterns": ["src/service*.ts"],
"rules": {
2022-03-26 14:17:42 +03:00
"object-curly-newline": "off",
"implicit-arrow-linebreak": "off",
"no-restricted-globals": "off",
"default-case": "off",
"max-len": ["error", { "code": 120, "ignoreComments": true, "ignoreStrings": true }],
"import/no-cycle": "off",
"import/prefer-default-export": "off",
"import/no-extraneous-dependencies": "off",
"react/react-in-jsx-scope": "off",
"react/prop-types": "off",
"react/require-default-props": "off",
"react/function-component-definition": "off",
"react/no-array-index-key": "off",
"react/no-unstable-nested-components": "off",
"react/jsx-one-expression-per-line": "off",
"react/jsx-props-no-spreading": "off",
"react/jsx-no-useless-fragment": "off",
"@typescript-eslint/no-unused-expressions": "off",
"@typescript-eslint/ban-types": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/lines-between-class-members": "off"
},
"overrides": [
{
"files": ["*.test.*"],
"rules": {
"prefer-promise-reject-errors": "off",
"no-param-reassign": "off",
"react/no-children-prop": "off",
"@typescript-eslint/no-shadow": "off"
}
}
]
}