1
1
mirror of https://github.com/leon-ai/leon.git synced 2024-12-11 09:12:40 +03:00
leon/.eslintrc.json

81 lines
1.9 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": "latest"
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": {
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"],
"object-curly-spacing": ["error", "always"],
"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",
"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": ["skills/**/*.ts"],
"rules": {
"import/order": "off"
}
},
{
"files": ["*.ts"],
"rules": {
"@typescript-eslint/explicit-function-return-type": "error"
}
}
]
2019-02-10 15:26:50 +03:00
}