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": {
|
|
|
|
"ecmaVersion": 2021
|
|
|
|
},
|
2019-02-10 15:26:50 +03:00
|
|
|
"globals": {
|
2019-06-07 21:09:48 +03:00
|
|
|
"io": true
|
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": {
|
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 19:01:03 +03:00
|
|
|
"@typescript-eslint/explicit-function-return-type": "off",
|
2022-09-26 23:10:27 +03:00
|
|
|
"unicorn/prefer-node-protocol": "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": [
|
|
|
|
{
|
|
|
|
"files": ["*.ts"],
|
|
|
|
"rules": {
|
|
|
|
"@typescript-eslint/explicit-function-return-type": "error"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
2019-02-10 15:26:50 +03:00
|
|
|
}
|