2018-12-28 22:27:03 +01:00
|
|
|
{
|
2020-04-10 20:38:25 +02:00
|
|
|
"env": {
|
|
|
|
"es6": true,
|
|
|
|
"node": true
|
|
|
|
},
|
|
|
|
"extends": [
|
|
|
|
"airbnb-typescript/base",
|
|
|
|
"plugin:@typescript-eslint/eslint-recommended",
|
|
|
|
"plugin:@typescript-eslint/recommended",
|
|
|
|
"plugin:@typescript-eslint/recommended-requiring-type-checking"
|
|
|
|
],
|
|
|
|
"parser": "@typescript-eslint/parser",
|
|
|
|
"parserOptions": {
|
2022-12-02 21:37:19 +01:00
|
|
|
"ecmaVersion": 2021,
|
2020-04-10 20:38:25 +02:00
|
|
|
"sourceType": "module",
|
|
|
|
"project": "./tsconfig.json"
|
|
|
|
},
|
|
|
|
"plugins": [
|
2021-10-04 21:55:56 +02:00
|
|
|
"import",
|
2020-04-10 20:38:25 +02:00
|
|
|
"@typescript-eslint"
|
|
|
|
],
|
|
|
|
"settings": {
|
|
|
|
"import/resolver": {
|
|
|
|
"node": {
|
|
|
|
"extensions": [
|
|
|
|
".ts"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2018-12-28 22:27:03 +01:00
|
|
|
"rules": {
|
2020-04-10 20:38:25 +02:00
|
|
|
"@typescript-eslint/explicit-function-return-type": "error",
|
2020-07-18 20:51:34 +02:00
|
|
|
"@typescript-eslint/typedef": [ "error", {
|
|
|
|
"arrowParameter": false
|
|
|
|
} ],
|
2020-04-10 20:38:25 +02:00
|
|
|
"@typescript-eslint/unbound-method": [ "off" ],
|
|
|
|
"import/extensions": [
|
|
|
|
"error",
|
|
|
|
{
|
|
|
|
"ts": "never",
|
|
|
|
"json": "always"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"import/no-cycle": "off",
|
|
|
|
"import/order": [ "error" ],
|
|
|
|
"import/prefer-default-export": "off",
|
2018-12-28 22:27:03 +01:00
|
|
|
"no-console": "off",
|
2020-04-10 20:38:25 +02:00
|
|
|
"@typescript-eslint/no-misused-promises": [
|
|
|
|
"error",
|
|
|
|
{
|
|
|
|
"checksVoidReturn": false
|
|
|
|
}
|
2020-07-19 00:01:58 +02:00
|
|
|
],
|
|
|
|
"no-void": "off"
|
2018-12-28 22:27:03 +01:00
|
|
|
}
|
|
|
|
}
|