mirror of
https://github.com/hensm/fx_cast.git
synced 2026-06-08 08:39:59 +00:00
49 lines
1.4 KiB
JSON
49 lines
1.4 KiB
JSON
{
|
|
"root": true,
|
|
"parser": "@typescript-eslint/parser",
|
|
"plugins": ["@typescript-eslint"],
|
|
"extends": ["eslint:recommended", "prettier"],
|
|
"rules": {
|
|
"no-useless-escape": "off",
|
|
"no-prototype-builtins": "off",
|
|
"no-async-promise-executor": "off",
|
|
"semi": ["error", "always"],
|
|
"no-multiple-empty-lines": ["error", { "max": 2 }],
|
|
"no-console": [
|
|
"error",
|
|
{
|
|
"allow": ["info", "warn", "error"]
|
|
}
|
|
]
|
|
},
|
|
|
|
"overrides": [
|
|
{
|
|
"files": ["*/bin/**/*.js"],
|
|
"env": {
|
|
"node": true
|
|
}
|
|
},
|
|
{
|
|
"files": ["**/*.ts", "**/*.tsx"],
|
|
"extends": "plugin:@typescript-eslint/recommended",
|
|
"rules": {
|
|
"@typescript-eslint/no-empty-interface": "off",
|
|
"@typescript-eslint/no-explicit-any": "off",
|
|
"@typescript-eslint/explicit-module-boundary-types": "off",
|
|
"@typescript-eslint/no-unused-vars": [
|
|
"error",
|
|
{ "argsIgnorePattern": "^_" }
|
|
],
|
|
"@typescript-eslint/ban-ts-comment": "off",
|
|
"@typescript-eslint/no-this-alias": [
|
|
"error",
|
|
{
|
|
"allowedNames": ["this_"]
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|