2019-02-10 15:26:50 +03:00
|
|
|
{
|
2022-09-03 13:17:16 +03:00
|
|
|
"extends": [
|
|
|
|
"eslint:recommended",
|
2022-09-03 14:12:41 +03:00
|
|
|
"plugin:@typescript-eslint/recommended",
|
2022-09-26 19:01:03 +03:00
|
|
|
"plugin:import/recommended",
|
|
|
|
"plugin:import/typescript",
|
2022-09-03 14:12:41 +03:00
|
|
|
"prettier"
|
2022-09-03 13:17:16 +03:00
|
|
|
],
|
2022-09-26 19:01:03 +03:00
|
|
|
"settings": {
|
|
|
|
"import/resolver": {
|
|
|
|
"typescript": true,
|
|
|
|
"node": true
|
|
|
|
}
|
|
|
|
},
|
2022-09-03 13:17:16 +03:00
|
|
|
"parser": "@typescript-eslint/parser",
|
2019-02-10 15:26:50 +03:00
|
|
|
"env": {
|
|
|
|
"node": true,
|
2022-09-03 13:17:16 +03:00
|
|
|
"browser": true
|
2019-02-10 15:26:50 +03:00
|
|
|
},
|
2021-03-15 20:39:52 +03:00
|
|
|
"parserOptions": {
|
2023-11-15 03:10:06 +03:00
|
|
|
"ecmaVersion": "latest"
|
2019-02-10 15:26:50 +03:00
|
|
|
},
|
2022-09-26 23:10:27 +03:00
|
|
|
"plugins": ["@typescript-eslint", "unicorn", "import"],
|
2022-09-03 13:17:16 +03:00
|
|
|
"ignorePatterns": "*.spec.js",
|
2019-02-10 15:26:50 +03:00
|
|
|
"rules": {
|
2023-03-22 18:34:39 +03:00
|
|
|
"@typescript-eslint/no-non-null-assertion": ["off"],
|
2021-03-15 20:39:52 +03:00
|
|
|
"no-async-promise-executor": ["off"],
|
2019-02-10 15:26:50 +03:00
|
|
|
"no-underscore-dangle": ["error", { "allowAfterThis": true }],
|
2022-09-03 13:17:16 +03:00
|
|
|
"prefer-destructuring": ["error"],
|
2019-02-10 15:26:50 +03:00
|
|
|
"comma-dangle": ["error", "never"],
|
2022-09-03 14:12:41 +03:00
|
|
|
"semi": ["error", "never"],
|
2022-09-26 17:46:12 +03:00
|
|
|
"object-curly-spacing": ["error", "always"],
|
2022-09-26 23:10:27 +03:00
|
|
|
"unicorn/prefer-node-protocol": "error",
|
2023-02-18 19:02:15 +03:00
|
|
|
"@typescript-eslint/member-delimiter-style": [
|
|
|
|
"error",
|
|
|
|
{
|
|
|
|
"multiline": {
|
|
|
|
"delimiter": "none",
|
|
|
|
"requireLast": true
|
|
|
|
},
|
|
|
|
"singleline": {
|
|
|
|
"delimiter": "comma",
|
|
|
|
"requireLast": false
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"@typescript-eslint/explicit-function-return-type": "off",
|
|
|
|
"@typescript-eslint/consistent-type-definitions": "error",
|
2022-09-26 19:01:03 +03:00
|
|
|
"import/no-named-as-default": "off",
|
|
|
|
"import/no-named-as-default-member": "off",
|
|
|
|
"import/order": [
|
|
|
|
"error",
|
|
|
|
{
|
|
|
|
"groups": [
|
|
|
|
"builtin",
|
|
|
|
"external",
|
|
|
|
"internal",
|
|
|
|
"parent",
|
|
|
|
"sibling",
|
|
|
|
"index"
|
|
|
|
],
|
|
|
|
"newlines-between": "always"
|
|
|
|
}
|
|
|
|
]
|
2022-09-26 17:46:12 +03:00
|
|
|
},
|
|
|
|
"overrides": [
|
2023-05-18 16:06:04 +03:00
|
|
|
{
|
|
|
|
"files": ["skills/**/*.ts"],
|
|
|
|
"rules": {
|
|
|
|
"import/order": "off"
|
|
|
|
}
|
|
|
|
},
|
2022-09-26 17:46:12 +03:00
|
|
|
{
|
|
|
|
"files": ["*.ts"],
|
|
|
|
"rules": {
|
|
|
|
"@typescript-eslint/explicit-function-return-type": "error"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
2019-02-10 15:26:50 +03:00
|
|
|
}
|