2019-12-23 10:04:12 +03:00
|
|
|
{
|
|
|
|
"extends": [
|
|
|
|
"eslint:recommended",
|
2020-02-25 03:52:23 +03:00
|
|
|
"prettier",
|
2019-12-23 10:04:12 +03:00
|
|
|
"plugin:@typescript-eslint/recommended"
|
|
|
|
],
|
|
|
|
"env": {
|
2020-08-29 05:46:48 +03:00
|
|
|
"node": true
|
2019-12-23 10:04:12 +03:00
|
|
|
},
|
|
|
|
"parser": "@typescript-eslint/parser",
|
|
|
|
"parserOptions": {
|
2021-06-11 23:03:39 +03:00
|
|
|
"ecmaVersion": 2019,
|
2019-12-23 10:04:12 +03:00
|
|
|
"sourceType": "module"
|
|
|
|
},
|
|
|
|
"plugins": [
|
2020-02-15 12:00:51 +03:00
|
|
|
"@typescript-eslint/eslint-plugin",
|
|
|
|
"simple-import-sort"
|
2019-12-23 10:04:12 +03:00
|
|
|
],
|
2020-06-21 19:28:53 +03:00
|
|
|
"root": true,
|
2019-12-23 10:04:12 +03:00
|
|
|
"rules": {
|
2020-05-08 02:52:53 +03:00
|
|
|
"eqeqeq": "error",
|
2019-12-23 10:04:12 +03:00
|
|
|
"no-constant-condition": 0,
|
|
|
|
"no-inner-declarations": 0,
|
2020-12-09 08:21:39 +03:00
|
|
|
"no-unused-vars": "off",
|
2019-12-23 10:04:12 +03:00
|
|
|
"no-undef": 0,
|
2020-12-15 02:13:10 +03:00
|
|
|
"simple-import-sort/exports": "error",
|
2019-12-23 10:04:12 +03:00
|
|
|
"@typescript-eslint/explicit-function-return-type": 0,
|
2020-06-21 19:28:53 +03:00
|
|
|
"@typescript-eslint/explicit-module-boundary-types": 0,
|
2019-12-23 10:04:12 +03:00
|
|
|
"@typescript-eslint/ban-types": 0,
|
|
|
|
"@typescript-eslint/camelcase": 0,
|
2023-04-26 03:24:33 +03:00
|
|
|
"@typescript-eslint/member-ordering": [
|
|
|
|
"error",
|
|
|
|
{
|
|
|
|
"classes": ["field", "constructor", ["public-get", "public-set"], "public-method", ["protected-get", "protected-set"], "protected-method", ["private-get", "private-set"], "private-method"],
|
|
|
|
"interfaces": []
|
|
|
|
}
|
|
|
|
],
|
2019-12-23 10:04:12 +03:00
|
|
|
"@typescript-eslint/no-empty-interface": 0,
|
|
|
|
"@typescript-eslint/no-explicit-any": 0,
|
|
|
|
"@typescript-eslint/no-namespace": 0,
|
|
|
|
"@typescript-eslint/no-non-null-assertion": 0,
|
|
|
|
"@typescript-eslint/no-this-alias": 0,
|
2023-04-26 03:39:31 +03:00
|
|
|
"@typescript-eslint/explicit-member-accessibility": ["error", { "accessibility": "no-public" }],
|
2020-12-09 08:21:39 +03:00
|
|
|
"@typescript-eslint/no-unused-vars": [
|
|
|
|
"error",
|
|
|
|
{
|
|
|
|
"args": "none"
|
|
|
|
}
|
|
|
|
],
|
2021-11-10 23:41:56 +03:00
|
|
|
"@typescript-eslint/no-use-before-define": 0,
|
|
|
|
"@typescript-eslint/naming-convention": [
|
|
|
|
"error",
|
|
|
|
{
|
|
|
|
"selector": [
|
|
|
|
"classProperty",
|
|
|
|
"typeProperty",
|
|
|
|
"parameterProperty",
|
|
|
|
"classMethod",
|
|
|
|
"typeMethod",
|
|
|
|
"accessor"
|
|
|
|
],
|
|
|
|
"modifiers": ["private"],
|
|
|
|
"leadingUnderscore": "require",
|
|
|
|
"format": ["camelCase"],
|
|
|
|
"filter": {
|
|
|
|
"regex": "^(test_| )",
|
|
|
|
"match": false
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"selector": [
|
|
|
|
"classProperty",
|
|
|
|
"typeProperty",
|
|
|
|
"parameterProperty",
|
|
|
|
"classMethod",
|
|
|
|
"typeMethod",
|
|
|
|
"accessor"
|
|
|
|
],
|
|
|
|
"modifiers": ["protected"],
|
2023-04-27 02:09:58 +03:00
|
|
|
"leadingUnderscore": "forbid",
|
2021-11-10 23:41:56 +03:00
|
|
|
"format": ["camelCase"],
|
|
|
|
"filter": {
|
|
|
|
"regex": "^(test_| )",
|
|
|
|
"match": false
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"selector": [
|
|
|
|
"classProperty",
|
|
|
|
"typeProperty",
|
|
|
|
"parameterProperty",
|
|
|
|
"classMethod",
|
|
|
|
"typeMethod",
|
|
|
|
"accessor"
|
|
|
|
],
|
|
|
|
"modifiers": ["public"],
|
|
|
|
"leadingUnderscore": "forbid",
|
|
|
|
"format": ["camelCase"],
|
|
|
|
"filter": {
|
|
|
|
"regex": "^(test_| )",
|
|
|
|
"match": false
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
2021-06-02 22:18:10 +03:00
|
|
|
},
|
|
|
|
"overrides": [
|
|
|
|
{
|
|
|
|
"files": ["**/*.js"],
|
|
|
|
"rules": {
|
|
|
|
"@typescript-eslint/no-var-requires": 0
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
2020-12-15 02:13:10 +03:00
|
|
|
}
|