2017-07-13 23:28:45 +02:00
|
|
|
{
|
|
|
|
"extends": [
|
2020-08-11 07:21:51 +02:00
|
|
|
"eslint:recommended",
|
|
|
|
"google",
|
|
|
|
"plugin:react/recommended",
|
|
|
|
"plugin:jest/recommended",
|
|
|
|
"plugin:@typescript-eslint/eslint-recommended",
|
|
|
|
"plugin:@typescript-eslint/recommended",
|
|
|
|
"plugin:import/typescript",
|
|
|
|
"plugin:jsx-a11y/recommended",
|
2020-09-03 21:15:29 +02:00
|
|
|
"prettier"
|
2017-07-13 23:28:45 +02:00
|
|
|
],
|
2020-09-03 21:15:29 +02:00
|
|
|
"plugins": ["import", "jest", "jsx-a11y", "react-hooks"],
|
2020-08-11 07:21:51 +02:00
|
|
|
"env": {
|
|
|
|
"es6": true,
|
|
|
|
"node": true,
|
|
|
|
"jest": true
|
|
|
|
},
|
|
|
|
"globals": {
|
|
|
|
"__APP_VERSION__": true
|
|
|
|
},
|
|
|
|
"parserOptions": {
|
|
|
|
"allowImportExportEverywhere": true,
|
|
|
|
"sourceType": "module",
|
2020-08-13 23:27:00 +02:00
|
|
|
"ecmaVersion": 11,
|
2020-08-11 07:21:51 +02:00
|
|
|
"ecmaFeatures": {
|
|
|
|
"impliedStrict": true,
|
|
|
|
"jsx": true
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"settings": {
|
|
|
|
"import/resolver": {
|
|
|
|
"node": {
|
|
|
|
"extensions": [".js", ".jsx", ".ts", ".tsx"]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"parser": "@typescript-eslint/parser",
|
2017-07-13 23:28:45 +02:00
|
|
|
"rules": {
|
2020-08-27 21:23:56 +02:00
|
|
|
"curly": ["error", "all"],
|
2020-08-13 23:27:00 +02:00
|
|
|
"react/prop-types": 0,
|
|
|
|
"jest/no-export": 0,
|
|
|
|
"jest/no-test-callback": 0,
|
|
|
|
"jest/expect-expect": 0,
|
|
|
|
"jest/no-try-expect": 0,
|
2021-01-16 10:40:43 +01:00
|
|
|
"jest/no-done-callback": "off",
|
|
|
|
"jest/no-conditional-expect": "off",
|
2020-08-11 07:21:51 +02:00
|
|
|
"keyword-spacing": "off",
|
|
|
|
"no-tabs": "off",
|
|
|
|
"no-useless-escape": "off",
|
|
|
|
"padded-blocks": "off",
|
|
|
|
"require-jsdoc": "off",
|
|
|
|
"valid-jsdoc": "off",
|
2020-10-27 10:18:59 +01:00
|
|
|
"import/order": ["error"],
|
|
|
|
"eol-last": "error",
|
|
|
|
"no-irregular-whitespace": "error",
|
|
|
|
"no-mixed-spaces-and-tabs": ["error", "smart-tabs"],
|
|
|
|
"no-trailing-spaces": "error",
|
2020-08-11 07:21:51 +02:00
|
|
|
"camelcase": "off",
|
|
|
|
"guard-for-in": "error",
|
|
|
|
"new-cap": "error",
|
2020-10-27 10:18:59 +01:00
|
|
|
"max-len": ["error", 100],
|
2020-08-11 07:21:51 +02:00
|
|
|
"no-console": ["error", { "allow": ["warn"] }],
|
|
|
|
"no-constant-condition": "error",
|
|
|
|
"no-debugger": "error",
|
|
|
|
"no-empty": "error",
|
|
|
|
"no-fallthrough": "error",
|
|
|
|
"no-invalid-this": "error",
|
|
|
|
"no-new-require": "error",
|
|
|
|
"no-undef": "error",
|
|
|
|
"no-unreachable": "error",
|
|
|
|
"no-var": "error",
|
|
|
|
"one-var": "error",
|
2020-10-27 10:18:59 +01:00
|
|
|
"prefer-rest-params": "error",
|
|
|
|
"prefer-spread": "error",
|
2020-08-13 23:27:00 +02:00
|
|
|
"handle-callback-err": 0,
|
|
|
|
"prefer-const": 0,
|
2020-08-11 07:21:51 +02:00
|
|
|
"@typescript-eslint/camelcase": 0,
|
2020-06-30 21:55:14 +02:00
|
|
|
"@typescript-eslint/ban-ts-ignore": 0,
|
2020-08-11 07:21:51 +02:00
|
|
|
"@typescript-eslint/no-var-requires": 0,
|
2019-12-15 08:52:55 +01:00
|
|
|
"@typescript-eslint/no-inferrable-types": 0,
|
|
|
|
"@typescript-eslint/no-empty-function": 0,
|
2020-08-11 07:21:51 +02:00
|
|
|
"@typescript-eslint/no-this-alias": 0,
|
2019-07-16 08:40:01 +02:00
|
|
|
"@typescript-eslint/no-use-before-define": 0,
|
2020-10-27 10:18:59 +01:00
|
|
|
"@typescript-eslint/array-type": ["error"],
|
2019-07-16 08:40:01 +02:00
|
|
|
"@typescript-eslint/no-explicit-any": 0,
|
|
|
|
"@typescript-eslint/indent": 0,
|
2020-08-11 07:21:51 +02:00
|
|
|
"@typescript-eslint/ban-ts-comment": 0,
|
|
|
|
"@typescript-eslint/ban-types": 0,
|
|
|
|
"@typescript-eslint/explicit-module-boundary-types": 0,
|
2020-10-27 10:18:59 +01:00
|
|
|
|
|
|
|
// rules to fix
|
|
|
|
"no-unused-vars": ["warn", { "vars": "all", "args": "none" }],
|
|
|
|
"jest/no-identical-title": ["warn"],
|
|
|
|
"prefer-promise-reject-errors": ["warn"],
|
|
|
|
"jest/no-disabled-tests": ["warn"],
|
|
|
|
"jest/no-commented-out-tests": ["warn"],
|
|
|
|
"@typescript-eslint/prefer-optional-chain": ["warn"],
|
2020-08-11 07:21:51 +02:00
|
|
|
"@typescript-eslint/explicit-member-accessibility": ["warn"],
|
2020-10-27 10:18:59 +01:00
|
|
|
"@typescript-eslint/no-unused-vars": ["warn"]
|
2017-07-13 23:28:45 +02:00
|
|
|
}
|
|
|
|
}
|