2024-11-12 12:15:06 +08:00
|
|
|
{
|
2026-05-05 19:17:44 +08:00
|
|
|
"parser": "@typescript-eslint/parser",
|
|
|
|
|
"parserOptions": {
|
|
|
|
|
"ecmaVersion": 2022,
|
|
|
|
|
"sourceType": "module"
|
|
|
|
|
},
|
|
|
|
|
"ignorePatterns": [
|
|
|
|
|
"dist",
|
|
|
|
|
"node_modules"
|
|
|
|
|
],
|
2024-11-12 12:15:06 +08:00
|
|
|
"extends": [
|
|
|
|
|
"plugin:prettier/recommended",
|
|
|
|
|
"prettier"
|
|
|
|
|
],
|
|
|
|
|
"plugins": [
|
|
|
|
|
"eslint-plugin-import"
|
|
|
|
|
],
|
|
|
|
|
"env": {
|
2026-05-05 19:17:44 +08:00
|
|
|
"node": true,
|
|
|
|
|
"es2022": true,
|
2024-11-12 12:15:06 +08:00
|
|
|
"mocha": true
|
|
|
|
|
},
|
|
|
|
|
"rules": {
|
2026-05-05 19:17:44 +08:00
|
|
|
"prettier/prettier": "off",
|
2024-11-12 12:15:06 +08:00
|
|
|
"@typescript-eslint/no-var-requires": "off",
|
|
|
|
|
"@typescript-eslint/ban-ts-comment": "off",
|
|
|
|
|
"@typescript-eslint/ban-ts-ignore": "off",
|
|
|
|
|
"@typescript-eslint/no-explicit-any": "off",
|
|
|
|
|
"@typescript-eslint/no-empty-function": "off",
|
|
|
|
|
// "no-unused-expressions": "off",
|
|
|
|
|
"max-len": [
|
|
|
|
|
0,
|
|
|
|
|
160,
|
|
|
|
|
2,
|
|
|
|
|
{
|
|
|
|
|
"ignoreUrls": true
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|