feat: add tsgolint
This commit is contained in:
@@ -3,9 +3,25 @@ import type { OxlintConfig } from 'oxlint';
|
||||
const typescript: OxlintConfig = {
|
||||
rules: {
|
||||
'typescript/ban-ts-comment': 'error',
|
||||
// Keep the first type-aware rollout conservative. These rules currently
|
||||
// produce high-volume diagnostics and need file-by-file cleanup later.
|
||||
'typescript/await-thenable': 'off',
|
||||
'typescript/no-base-to-string': 'off',
|
||||
'typescript/no-duplicate-type-constituents': 'off',
|
||||
'typescript/no-floating-promises': 'off',
|
||||
'typescript/no-misused-spread': 'off',
|
||||
'typescript/no-non-null-assertion': 'error',
|
||||
'typescript/no-redundant-type-constituents': 'off',
|
||||
'typescript/no-unnecessary-boolean-literal-compare': 'off',
|
||||
'typescript/no-unnecessary-type-assertion': 'off',
|
||||
'typescript/no-unnecessary-type-arguments': 'off',
|
||||
'typescript/no-unnecessary-template-expression': 'off',
|
||||
'typescript/no-unsafe-enum-comparison': 'off',
|
||||
'typescript/no-unsafe-type-assertion': 'off',
|
||||
'typescript/no-var-requires': 'error',
|
||||
'typescript/restrict-template-expressions': 'off',
|
||||
'typescript/triple-slash-reference': 'error',
|
||||
'typescript/unbound-method': 'off',
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
@@ -8,7 +8,6 @@
|
||||
"moduleDetection": "force",
|
||||
"experimentalDecorators": true,
|
||||
|
||||
"baseUrl": ".",
|
||||
"module": "ESNext",
|
||||
|
||||
"moduleResolution": "node",
|
||||
|
||||
@@ -5,7 +5,6 @@
|
||||
"compilerOptions": {
|
||||
"composite": false,
|
||||
"lib": ["ESNext"],
|
||||
"baseUrl": "./",
|
||||
"moduleResolution": "bundler",
|
||||
"types": ["node"],
|
||||
"noImplicitAny": true
|
||||
|
||||
Reference in New Issue
Block a user