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": {
|
|
|
|
"ecmaVersion": 2018,
|
|
|
|
"sourceType": "module",
|
|
|
|
"project": "./tsconfig.json"
|
|
|
|
},
|
|
|
|
"plugins": [
|
|
|
|
"@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",
|
|
|
|
"@typescript-eslint/typedef": [ "error" ],
|
|
|
|
"@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
|
|
|
|
}
|
|
|
|
]
|
2018-12-28 22:27:03 +01:00
|
|
|
}
|
|
|
|
}
|