Skip to content

Commit

Permalink
Merge pull request #421 from dreamit-de/420-oxlint
Browse files Browse the repository at this point in the history
#420 Switch to oxlint
  • Loading branch information
sgohlke authored Dec 9, 2024
2 parents 8e7dd4d + 69a6f7f commit c109938
Show file tree
Hide file tree
Showing 38 changed files with 5,202 additions and 8,412 deletions.
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
tsup.config.ts
vitest.config.ts
75 changes: 0 additions & 75 deletions .eslintrc.json

This file was deleted.

19 changes: 13 additions & 6 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
/.github/
/.idea/
/test-report/
/build/tests/
/coverage/
.eslintrc.json
/.github/
vitest.config.js
tsconfig.json
/reports/
/src/
/tests/
/build/tests/
/test-report/
.eslintignore
.oxlintrc.json
.prettierignore
.prettierrc.json
stryker-incremental.json
stryker.config.json
tsconfig.json
tsup.config.ts
vitest.config.ts
81 changes: 81 additions & 0 deletions .oxlintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"plugins": ["import", "typescript", "unicorn", "oxc", "oxc-security"],
"env": {
"node": true,
"commonjs": true,
"es6": true
},
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"settings": {},
"categories": {
"correctness": "error",
"pedantic": "error",
"perf": "error",
"style": "error",
"suspicious": "error"
},
"rules": {
"eqeqeq": "warn",
"eslint/default-case": "error",
"eslint/no-console": "error",
"eslint/no-div-regex": "error",
"eslint/no-else-return": "off",
"eslint/no-empty": "error",
"eslint/no-empty-function": "error",
"eslint/no-eq-null": "error",
"eslint/no-eval": "error",
"eslint/no-regex-spaces": "error",
"eslint/no-restricted-globals": "error",
"eslint/no-var": "error",
"eslint/no-void": "error",
"eslint/require-await": "off",
"eslint/max-lines": ["error", 550],
"eslint/max-params": "off",
"eslint/no-magic-numbers": "off",
"eslint/no-ternary": "off",
"eslint/sort-imports": "off",
"eslint/yoda": "off",
"import/max-dependencies": "off",
"import/no-amd": "error",
"import/no-commonjs": "error",
"import/no-cycle": "error",
"import/no-default-export": "error",
"import/no-dynamic-require": "error",
"import/unambiguous": "error",
"jsdoc/empty-tags": "error",
"oxc/bad-bitwise-operator": "error",
"oxc/no-barrel-file": "error",
"oxc/no-const-enum": "error",
"promise/catch-or-return": "error",
"promise/spec-only": "error",
"typescript/consistent-generic-constructors": "off",
"typescript/consistent-indexed-object-style": "off",
"typescript/explicit-function-return-type": "error",
"typescript/no-dynamic-delete": "error",
"typescript/no-empty-object-type": "error",
"typescript/no-explicit-any": "error",
"typescript/no-import-type-side-effects": "error",
"typescript/no-namespace": "error",
"typescript/no-non-null-asserted-nullish-coalescing": "error",
"typescript/no-non-null-assertion": "error",
"typescript/no-require-imports": "error",
"typescript/prefer-literal-enum-member": "error",
"unicorn/catch-error-name": "off",
"unicorn/filename-case": "off",
"unicorn/no-abusive-eslint-disable": "error",
"unicorn/no-anonymous-default-export": "error",
"unicorn/no-array-for-each": "error",
"unicorn/no-array-reduce": "error",
"unicorn/no-length-as-slice-end": "error",
"unicorn/no-magic-array-flat-depth": "error",
"unicorn/no-null": "off",
"unicorn/no-process-exit": "error",
"unicorn/prefer-modern-math-apis": "error",
"unicorn/prefer-node-protocol": "error",
"unicorn/prefer-number-properties": "error"
}
}
Loading

0 comments on commit c109938

Please sign in to comment.