2020-09-25 11:38:05 +02:00
|
|
|
{
|
|
|
|
"root": true,
|
|
|
|
"parser": "@typescript-eslint/parser",
|
|
|
|
"plugins": [
|
|
|
|
"@typescript-eslint"
|
|
|
|
],
|
2020-09-25 23:42:15 +02:00
|
|
|
"parserOptions": {
|
|
|
|
"project": [
|
|
|
|
"./tsconfig.json",
|
|
|
|
"./tsconfig.test.json"
|
|
|
|
]
|
|
|
|
},
|
2020-09-25 11:38:05 +02:00
|
|
|
"extends": [
|
|
|
|
"eslint:recommended",
|
|
|
|
"plugin:@typescript-eslint/recommended"
|
|
|
|
],
|
|
|
|
"rules": {
|
2020-09-25 23:42:15 +02:00
|
|
|
"indent": [
|
|
|
|
"error",
|
|
|
|
4,
|
|
|
|
{
|
|
|
|
"SwitchCase": 1
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"no-trailing-spaces": "error",
|
|
|
|
"max-len": [
|
|
|
|
"error",
|
|
|
|
{
|
|
|
|
"code": 120,
|
|
|
|
"ignoreTemplateLiterals": true,
|
|
|
|
"ignoreRegExpLiterals": true
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"semi": "off",
|
|
|
|
"@typescript-eslint/semi": [
|
|
|
|
"error"
|
|
|
|
],
|
|
|
|
"no-extra-semi": "error",
|
|
|
|
"eol-last": "error",
|
|
|
|
"comma-dangle": "off",
|
|
|
|
"@typescript-eslint/comma-dangle": [
|
|
|
|
"error",
|
|
|
|
{
|
|
|
|
"arrays": "always-multiline",
|
|
|
|
"objects": "always-multiline",
|
|
|
|
"imports": "always-multiline",
|
|
|
|
"exports": "always-multiline",
|
|
|
|
"functions": "always-multiline",
|
|
|
|
"enums": "always-multiline",
|
|
|
|
"generics": "always-multiline",
|
|
|
|
"tuples": "always-multiline"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"no-extra-parens": "off",
|
|
|
|
"@typescript-eslint/no-extra-parens": [
|
|
|
|
"error"
|
|
|
|
],
|
|
|
|
"no-nested-ternary": "error",
|
|
|
|
"@typescript-eslint/no-inferrable-types": "off",
|
|
|
|
"@typescript-eslint/explicit-module-boundary-types": "error",
|
|
|
|
"@typescript-eslint/no-unnecessary-condition": "error",
|
|
|
|
"@typescript-eslint/no-unused-vars": [
|
|
|
|
"error",
|
|
|
|
{
|
|
|
|
"argsIgnorePattern": "^_"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"@typescript-eslint/no-non-null-assertion": "error",
|
|
|
|
"no-useless-return": "error",
|
|
|
|
"no-useless-constructor": "off",
|
|
|
|
"@typescript-eslint/no-useless-constructor": [
|
|
|
|
"error"
|
|
|
|
],
|
|
|
|
"no-return-await": "off",
|
|
|
|
"@typescript-eslint/return-await": [
|
|
|
|
"error",
|
|
|
|
"always"
|
|
|
|
],
|
|
|
|
"@typescript-eslint/explicit-member-accessibility": [
|
|
|
|
"error",
|
|
|
|
{
|
|
|
|
"accessibility": "explicit"
|
|
|
|
}
|
2020-10-01 14:01:35 +02:00
|
|
|
],
|
|
|
|
"@typescript-eslint/no-floating-promises": "error"
|
2020-09-25 11:38:05 +02:00
|
|
|
},
|
|
|
|
"ignorePatterns": [
|
|
|
|
"jest.config.js",
|
2021-03-30 11:31:17 +02:00
|
|
|
"scripts/**/*",
|
2020-09-25 23:42:15 +02:00
|
|
|
"dist/**/*",
|
|
|
|
"config/**/*"
|
|
|
|
],
|
|
|
|
"overrides": [
|
|
|
|
{
|
|
|
|
"files": [
|
|
|
|
"test/**/*"
|
|
|
|
],
|
|
|
|
"rules": {
|
|
|
|
"max-len": [
|
|
|
|
"error",
|
|
|
|
{
|
|
|
|
"code": 120,
|
|
|
|
"ignoreTemplateLiterals": true,
|
|
|
|
"ignoreRegExpLiterals": true,
|
|
|
|
"ignoreStrings": true
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
2020-09-25 11:38:05 +02:00
|
|
|
]
|
2020-10-01 14:01:35 +02:00
|
|
|
}
|