1
1
mirror of https://github.com/leon-ai/leon.git synced 2024-12-26 10:14:57 +03:00
leon/.eslintrc.json

63 lines
1.4 KiB
JSON
Raw Normal View History

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",
"plugin:import/recommended",
"plugin:import/typescript",
2022-09-03 14:12:41 +03:00
"prettier"
2022-09-03 13:17:16 +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
},
"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"],
"object-curly-spacing": ["error", "always"],
"@typescript-eslint/explicit-function-return-type": "off",
"unicorn/prefer-node-protocol": "error",
"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"
}
]
},
"overrides": [
{
"files": ["*.ts"],
"rules": {
"@typescript-eslint/explicit-function-return-type": "error"
}
}
]
2019-02-10 15:26:50 +03:00
}