mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2026-03-14 03:23:49 +00:00
Fixed tests
This commit is contained in:
40
.eslintrc
40
.eslintrc
@@ -1,46 +1,10 @@
|
||||
{
|
||||
"root": true,
|
||||
"extends": [
|
||||
"airbnb",
|
||||
"airbnb-typescript",
|
||||
"plugin:@typescript-eslint/recommended"
|
||||
"@shlinkio/js-coding-standard"
|
||||
],
|
||||
"parserOptions": {
|
||||
"project": "./tsconfig.json"
|
||||
},
|
||||
"ignorePatterns": ["src/service*.ts"],
|
||||
"rules": {
|
||||
"object-curly-newline": "off",
|
||||
"implicit-arrow-linebreak": "off",
|
||||
"no-restricted-globals": "off",
|
||||
"default-case": "off",
|
||||
"max-len": ["error", { "code": 120, "ignoreComments": true, "ignoreStrings": true, "ignoreTemplateLiterals": 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"
|
||||
}
|
||||
}
|
||||
]
|
||||
"ignorePatterns": ["src/service*.ts"]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user