2016-04-24 22:41:37 +02:00
|
|
|
{
|
2020-04-14 22:29:11 +02:00
|
|
|
"env": {
|
2021-05-28 11:10:24 +02:00
|
|
|
"node": true,
|
|
|
|
"jest": true
|
2020-04-14 22:29:11 +02:00
|
|
|
},
|
2022-06-02 08:08:53 +02:00
|
|
|
"extends": ["airbnb-typescript/base", "plugin:prettier/recommended"],
|
2021-02-16 16:00:06 +01:00
|
|
|
"parser": "@typescript-eslint/parser",
|
2017-06-06 09:56:29 +02:00
|
|
|
"parserOptions": {
|
2021-02-23 06:20:10 +01:00
|
|
|
"ecmaVersion": 2019,
|
|
|
|
"project": "./tsconfig.json"
|
2017-06-06 09:56:29 +02:00
|
|
|
},
|
2021-09-28 21:19:13 +02:00
|
|
|
"plugins": ["@typescript-eslint", "prettier", "import"],
|
2020-04-14 22:29:11 +02:00
|
|
|
"root": true,
|
2016-11-10 15:52:49 +01:00
|
|
|
"rules": {
|
2021-02-16 16:00:06 +01:00
|
|
|
"@typescript-eslint/no-var-requires": 0,
|
2021-02-23 06:20:10 +01:00
|
|
|
"@typescript-eslint/naming-convention": 0,
|
|
|
|
"@typescript-eslint/space-before-function-paren": 0,
|
2021-03-11 22:51:58 +01:00
|
|
|
"import/prefer-default-export": 0,
|
2021-02-16 16:00:06 +01:00
|
|
|
"import/no-unresolved": 0,
|
2020-04-14 22:29:11 +02:00
|
|
|
"class-methods-use-this": [0],
|
|
|
|
"prettier/prettier": ["error"],
|
|
|
|
"func-names": "off",
|
|
|
|
"strict": [0, "global"],
|
|
|
|
"no-underscore-dangle": "off",
|
|
|
|
"no-plusplus": "off",
|
2019-03-14 17:56:02 +01:00
|
|
|
"no-param-reassign": "error",
|
|
|
|
"no-return-await": "error",
|
2017-06-28 10:17:14 +02:00
|
|
|
"max-nested-callbacks": "off",
|
|
|
|
"new-cap": [
|
|
|
|
"error",
|
|
|
|
{
|
2022-06-02 08:08:53 +02:00
|
|
|
"capIsNewExceptions": ["Router", "Mitm"]
|
2017-06-28 10:17:14 +02:00
|
|
|
}
|
|
|
|
]
|
2020-12-04 09:33:50 +01:00
|
|
|
},
|
2021-02-16 16:00:06 +01:00
|
|
|
"overrides": [
|
|
|
|
{
|
|
|
|
// enable the rule specifically for TypeScript files
|
|
|
|
"files": ["*.ts", "*.tsx"],
|
|
|
|
"rules": {
|
2021-02-23 06:20:10 +01:00
|
|
|
"@typescript-eslint/explicit-module-boundary-types": ["error"],
|
|
|
|
"@typescript-eslint/naming-convention": ["error"],
|
|
|
|
"@typescript-eslint/space-before-function-paren": ["error"]
|
2021-02-16 16:00:06 +01:00
|
|
|
}
|
2021-08-12 15:04:37 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"files": ["src/test/e2e/helpers/test-helper.ts"],
|
|
|
|
"rules": {
|
|
|
|
"import/no-extraneous-dependencies": "off"
|
|
|
|
}
|
2021-02-16 16:00:06 +01:00
|
|
|
}
|
|
|
|
],
|
2022-06-02 08:08:53 +02:00
|
|
|
"ignorePatterns": ["**/docs/api/oas/", "examples/**", "scripts/**"]
|
2016-11-10 15:52:49 +01:00
|
|
|
}
|