2023-09-26 12:10:32 +00:00
|
|
|
module.exports = {
|
2023-10-20 03:43:26 +00:00
|
|
|
"parser": "@typescript-eslint/parser",
|
|
|
|
"plugins": [
|
2023-11-16 03:55:40 +00:00
|
|
|
"@typescript-eslint",
|
|
|
|
"eslint-plugin-import"
|
2023-10-20 03:43:26 +00:00
|
|
|
],
|
2023-09-25 03:16:04 +00:00
|
|
|
"extends": [
|
|
|
|
"plugin:@typescript-eslint/recommended",
|
|
|
|
"prettier"
|
|
|
|
],
|
2023-10-20 03:43:26 +00:00
|
|
|
"ignorePatterns": ["lib/", "dist/", "umd/", "coverage/", "docs/"],
|
2023-09-25 03:16:04 +00:00
|
|
|
"rules": {
|
|
|
|
"import/no-anonymous-default-export": "off",
|
2023-10-20 17:59:10 +00:00
|
|
|
"@typescript-eslint/no-unused-vars": "warn",
|
2023-09-25 03:16:04 +00:00
|
|
|
"@typescript-eslint/ban-ts-comment": "off",
|
|
|
|
"@typescript-eslint/no-explicit-any": "off",
|
2023-09-26 11:43:45 +00:00
|
|
|
"@typescript-eslint/no-var-requires": "off",
|
2023-09-25 03:16:04 +00:00
|
|
|
"@typescript-eslint/no-non-null-assertion": "off",
|
|
|
|
"lines-around-comment": [
|
2023-11-16 03:55:40 +00:00
|
|
|
"warn",
|
2023-09-25 03:16:04 +00:00
|
|
|
{
|
|
|
|
"beforeLineComment": false,
|
|
|
|
"beforeBlockComment": true,
|
|
|
|
"allowBlockStart": true,
|
|
|
|
"allowClassStart": true,
|
|
|
|
"allowObjectStart": true,
|
|
|
|
"allowArrayStart": true
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"newline-before-return": "off",
|
|
|
|
"import/newline-after-import": [
|
2023-11-16 03:55:40 +00:00
|
|
|
"warn",
|
2023-09-25 03:16:04 +00:00
|
|
|
{
|
|
|
|
"count": 1
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"@typescript-eslint/ban-types": [
|
|
|
|
"error",
|
|
|
|
{
|
|
|
|
"extendDefaults": true,
|
|
|
|
"types": {
|
|
|
|
"{}": false
|
|
|
|
}
|
|
|
|
}
|
2023-11-13 05:07:28 +00:00
|
|
|
],
|
2023-11-16 02:14:14 +00:00
|
|
|
// "brace-style": ["error", "1tbs", { "allowSingleLine": true }],
|
|
|
|
"object-curly-spacing": ["warn", "always"]
|
2023-09-25 03:16:04 +00:00
|
|
|
},
|
|
|
|
"settings": {
|
|
|
|
"import/parsers": {
|
|
|
|
"@typescript-eslint/parser": [
|
|
|
|
".ts"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"import/resolver": {
|
|
|
|
"typescript": {
|
|
|
|
"alwaysTryTypes": true,
|
|
|
|
"project": [
|
|
|
|
"./tsconfig.json"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|