2022-07-30 14:50:45 +00:00
|
|
|
{
|
|
|
|
"env": {
|
|
|
|
"es6": true,
|
|
|
|
"node": true
|
|
|
|
},
|
2022-07-31 19:31:54 +00:00
|
|
|
"extends": ["eslint:all"],
|
|
|
|
"parserOptions": {
|
|
|
|
"ecmaVersion": 9,
|
|
|
|
"sourceType": "module"
|
|
|
|
},
|
|
|
|
"rules": {
|
|
|
|
"capitalized-comments": [
|
|
|
|
"warn",
|
|
|
|
"always",
|
|
|
|
{
|
|
|
|
"ignorePattern": "noinspection|pragma",
|
|
|
|
"ignoreInlineComments": true
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"one-var": ["warn", "never"],
|
|
|
|
"sort-imports": [
|
|
|
|
"warn",
|
|
|
|
{
|
|
|
|
"allowSeparatedGroups": true,
|
|
|
|
"ignoreDeclarationSort": true
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"no-undefined": "off",
|
|
|
|
"require-unicode-regexp": "off",
|
|
|
|
"no-ternary": "off",
|
|
|
|
"no-negated-condition": "off",
|
|
|
|
"prefer-named-capture-group": "off"
|
|
|
|
},
|
2022-07-30 14:50:45 +00:00
|
|
|
"overrides": [
|
2022-07-31 19:31:54 +00:00
|
|
|
{
|
|
|
|
"files": ["**/*.ts"],
|
|
|
|
"plugins": ["@typescript-eslint"],
|
|
|
|
"extends": ["plugin:@typescript-eslint/all"],
|
|
|
|
"parser": "@typescript-eslint/parser",
|
|
|
|
"parserOptions": {
|
|
|
|
"project": "./tsconfig.eslint.json"
|
|
|
|
},
|
|
|
|
"rules": {
|
|
|
|
"func-style": [
|
|
|
|
"error",
|
|
|
|
"declaration",
|
|
|
|
{
|
|
|
|
"allowArrowFunctions": true
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"@typescript-eslint/no-implicit-any-catch": "off",
|
|
|
|
"@typescript-eslint/no-magic-numbers": [
|
|
|
|
"warn",
|
|
|
|
{
|
|
|
|
"ignore": [0, 1],
|
|
|
|
"ignoreArrayIndexes": true
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"@typescript-eslint/strict-boolean-expressions": [
|
|
|
|
"error",
|
|
|
|
{
|
|
|
|
"allowNullableString": true
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2022-07-30 14:50:45 +00:00
|
|
|
{
|
|
|
|
"files": ["**/*.test.ts"],
|
|
|
|
"env": {
|
|
|
|
"jest/globals": true
|
|
|
|
},
|
|
|
|
"plugins": ["jest"],
|
|
|
|
"extends": ["plugin:jest/all"],
|
|
|
|
"rules": {
|
2022-08-04 07:02:51 +00:00
|
|
|
"max-lines-per-function": ["warn", 120],
|
2022-07-31 19:31:54 +00:00
|
|
|
"jest/no-hooks": "off",
|
2022-07-30 14:50:45 +00:00
|
|
|
"jest/prefer-expect-assertions": "off"
|
|
|
|
}
|
2022-07-31 19:31:54 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"files": ["**/*"],
|
|
|
|
"extends": ["prettier"]
|
2022-07-30 14:50:45 +00:00
|
|
|
}
|
2022-07-31 19:31:54 +00:00
|
|
|
]
|
2022-07-30 14:50:45 +00:00
|
|
|
}
|