chore: tune frontend lint and type target
This commit is contained in:
@@ -107,6 +107,72 @@
|
||||
"unicorn/prefer-string-replace-all": "error"
|
||||
},
|
||||
"overrides": [
|
||||
{
|
||||
"files": ["static/**/*.ts"],
|
||||
"rules": {
|
||||
"curly": "off",
|
||||
"eqeqeq": "off",
|
||||
"import/first": "off",
|
||||
"import/max-dependencies": "off",
|
||||
"import/no-duplicates": "off",
|
||||
"import/no-named-as-default-member": "off",
|
||||
"import/prefer-default-export": "off",
|
||||
"init-declarations": "off",
|
||||
"max-params": "off",
|
||||
"no-console": "off",
|
||||
"no-continue": "off",
|
||||
"no-duplicate-imports": "off",
|
||||
"no-useless-assignment": "off",
|
||||
"no-inline-comments": "off",
|
||||
"no-negated-condition": "off",
|
||||
"no-underscore-dangle": "off",
|
||||
"no-useless-return": "off",
|
||||
"prefer-const": "off",
|
||||
"prefer-destructuring": "off",
|
||||
"require-await": "off",
|
||||
"require-unicode-regexp": "off",
|
||||
"promise/always-return": "off",
|
||||
"promise/avoid-new": "off",
|
||||
"promise/param-names": "off",
|
||||
"promise/prefer-await-to-callbacks": "off",
|
||||
"promise/prefer-await-to-then": "off",
|
||||
"oxc/no-map-spread": "off",
|
||||
"typescript/consistent-type-definitions": "off",
|
||||
"typescript/explicit-member-accessibility": "off",
|
||||
"typescript/no-base-to-string": "off",
|
||||
"typescript/no-floating-promises": "off",
|
||||
"typescript/no-inferrable-types": "off",
|
||||
"typescript/no-misused-promises": "off",
|
||||
"typescript/no-unnecessary-condition": "off",
|
||||
"typescript/no-unnecessary-type-assertion": "off",
|
||||
"typescript/no-unnecessary-type-conversion": "off",
|
||||
"typescript/no-unnecessary-type-parameters": "off",
|
||||
"typescript/no-unsafe-argument": "off",
|
||||
"typescript/no-unsafe-assignment": "off",
|
||||
"typescript/no-unsafe-call": "off",
|
||||
"typescript/no-unsafe-member-access": "off",
|
||||
"typescript/no-unsafe-return": "off",
|
||||
"typescript/prefer-nullish-coalescing": "off",
|
||||
"typescript/prefer-optional-chain": "off",
|
||||
"typescript/strict-boolean-expressions": "off",
|
||||
"typescript/unbound-method": "off",
|
||||
"unicorn/consistent-function-scoping": "off",
|
||||
"unicorn/no-array-callback-reference": "off",
|
||||
"unicorn/no-lonely-if": "off",
|
||||
"unicorn/no-negated-condition": "off",
|
||||
"unicorn/prefer-at": "off",
|
||||
"unicorn/prefer-dom-node-append": "off",
|
||||
"unicorn/prefer-query-selector": "off",
|
||||
"unicorn/prefer-spread": "off",
|
||||
"unicorn/prefer-string-replace-all": "off",
|
||||
"unicorn/require-module-specifiers": "off"
|
||||
}
|
||||
},
|
||||
{
|
||||
"files": ["static/**/*.test.ts", "static/**/*.spec.ts"],
|
||||
"env": { "node": true },
|
||||
"rules": { "import/no-nodejs-modules": "off" }
|
||||
},
|
||||
{
|
||||
"files": ["**/*.test.ts", "**/*.spec.ts"],
|
||||
"env": { "vitest": true },
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"target": "ES2020",
|
||||
"module": "ES2020",
|
||||
"target": "ES2023",
|
||||
"module": "ES2022",
|
||||
"lib": ["ES2023", "DOM", "DOM.Iterable"],
|
||||
"moduleResolution": "Bundler",
|
||||
"strict": true,
|
||||
"noEmitOnError": true,
|
||||
|
||||
Reference in New Issue
Block a user