2016-04-24 22:41:37 +02:00
|
|
|
{
|
2020-04-14 22:29:11 +02:00
|
|
|
"env": {
|
|
|
|
"node": true
|
|
|
|
},
|
2021-02-16 16:00:06 +01:00
|
|
|
"extends": [
|
2021-02-23 06:05:51 +01:00
|
|
|
"airbnb-typescript/base",
|
2021-02-16 16:00:06 +01:00
|
|
|
"prettier"
|
|
|
|
|
|
|
|
],
|
|
|
|
"parser": "@typescript-eslint/parser",
|
2017-06-06 09:56:29 +02:00
|
|
|
"parserOptions": {
|
2021-01-19 10:42:45 +01:00
|
|
|
"ecmaVersion": 2019
|
2017-06-06 09:56:29 +02:00
|
|
|
},
|
2021-02-16 16:00:06 +01:00
|
|
|
"plugins": ["prettier","@typescript-eslint"],
|
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,
|
|
|
|
"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",
|
|
|
|
{
|
|
|
|
"capIsNewExceptions": [
|
|
|
|
"Router",
|
|
|
|
"Mitm"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
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": {
|
|
|
|
"@typescript-eslint/explicit-module-boundary-types": ["error"]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
2020-12-04 09:33:50 +01:00
|
|
|
"ignorePatterns": ["**/docs/api/oas/"]
|
2016-11-10 15:52:49 +01:00
|
|
|
}
|