Skip to content

Commit

Permalink
feat(oxlint): bump oxlint rules (#50)
Browse files Browse the repository at this point in the history
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
  • Loading branch information
dependabot[bot] authored Apr 9, 2024
1 parent d07fbe9 commit 71e052d
Show file tree
Hide file tree
Showing 5 changed files with 89 additions and 29 deletions.
30 changes: 30 additions & 0 deletions __snapshots__/rules.spec.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ exports[`contains all the oxlint rules 1`] = `
"@typescript-eslint/prefer-as-const": [
"off",
],
"@typescript-eslint/prefer-for-of": [
"off",
],
"@typescript-eslint/prefer-function-type": [
"off",
],
Expand All @@ -71,6 +74,9 @@ exports[`contains all the oxlint rules 1`] = `
"default-case-last": [
"off",
],
"default-param-last": [
"off",
],
"eqeqeq": [
"off",
],
Expand Down Expand Up @@ -188,15 +194,24 @@ exports[`contains all the oxlint rules 1`] = `
"jest/no-test-return-statement": [
"off",
],
"jest/no-untyped-mock-factory": [
"off",
],
"jest/prefer-called-with": [
"off",
],
"jest/prefer-comparison-matcher": [
"off",
],
"jest/prefer-equality-matcher": [
"off",
],
"jest/prefer-expect-resolves": [
"off",
],
"jest/prefer-mock-promise-shorthand": [
"off",
],
"jest/prefer-spy-on": [
"off",
],
Expand Down Expand Up @@ -227,6 +242,12 @@ exports[`contains all the oxlint rules 1`] = `
"jest/valid-title": [
"off",
],
"jsdoc/check-access": [
"off",
],
"jsdoc/empty-tags": [
"off",
],
"jsx-a11y/alt-text": [
"off",
],
Expand Down Expand Up @@ -464,6 +485,9 @@ exports[`contains all the oxlint rules 1`] = `
"no-irregular-whitespace": [
"off",
],
"no-iterator": [
"off",
],
"no-loss-of-precision": [
"off",
],
Expand Down Expand Up @@ -497,6 +521,9 @@ exports[`contains all the oxlint rules 1`] = `
"no-return-await": [
"off",
],
"no-script-url": [
"off",
],
"no-self-assign": [
"off",
],
Expand Down Expand Up @@ -572,6 +599,9 @@ exports[`contains all the oxlint rules 1`] = `
"react/button-has-type": [
"off",
],
"react/checked-requires-onchange-or-readonly": [
"off",
],
"react/jsx-key": [
"off",
],
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"eslint-plugin-unicorn": "^51.0.1",
"husky": "^9.0.11",
"lint-staged": "^15.2.0",
"oxlint": "^0.2.8",
"oxlint": "^0.2.16",
"prettier": "^3.2.4",
"tsx": "^4.7.0",
"typescript": "^5.3.3",
Expand Down
56 changes: 28 additions & 28 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions rules.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ const eslintRules = {
"array-callback-return": "off",
"constructor-super": "off",
"default-case-last": "off",
"default-param-last": "off",
"eqeqeq": "off",
"for-direction": "off",
"getter-return": "off",
Expand Down Expand Up @@ -48,6 +49,7 @@ const eslintRules = {
"no-import-assign": "off",
"no-inner-declarations": "off",
"no-irregular-whitespace": "off",
"no-iterator": "off",
"no-loss-of-precision": "off",
"no-mixed-operators": "off",
"no-new-symbol": "off",
Expand All @@ -59,6 +61,7 @@ const eslintRules = {
"no-redeclare": "off",
"no-regex-spaces": "off",
"no-return-await": "off",
"no-script-url": "off",
"no-self-assign": "off",
"no-self-compare": "off",
"no-setter-return": "off",
Expand Down Expand Up @@ -100,6 +103,7 @@ const typescriptRules = {
"@typescript-eslint/no-unsafe-declaration-merging": "off",
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/prefer-as-const": "off",
"@typescript-eslint/prefer-for-of": "off",
"@typescript-eslint/prefer-function-type": "off",
"@typescript-eslint/prefer-ts-expect-error": "off",
"@typescript-eslint/triple-slash-reference": "off"
Expand Down Expand Up @@ -128,9 +132,12 @@ const jestRules = {
"jest/no-standalone-expect": "off",
"jest/no-test-prefixes": "off",
"jest/no-test-return-statement": "off",
"jest/no-untyped-mock-factory": "off",
"jest/prefer-called-with": "off",
"jest/prefer-comparison-matcher": "off",
"jest/prefer-equality-matcher": "off",
"jest/prefer-expect-resolves": "off",
"jest/prefer-mock-promise-shorthand": "off",
"jest/prefer-spy-on": "off",
"jest/prefer-strict-equal": "off",
"jest/prefer-to-be": "off",
Expand Down Expand Up @@ -227,6 +234,7 @@ const unicornRules = {

const reactRules = {
"react/button-has-type": "off",
"react/checked-requires-onchange-or-readonly": "off",
"react/jsx-no-target-blank": "off",
"react/jsx-key": "off",
"react/jsx-no-comment-textnodes": "off",
Expand Down Expand Up @@ -325,6 +333,12 @@ const nextjsRules = {
}


const jsdocRules = {
"jsdoc/check-access": "off",
"jsdoc/empty-tags": "off"
}


const treeShakingRules = {
"tree-shaking/no-side-effects-in-initialization": "off"
}
Expand All @@ -339,5 +353,6 @@ module.exports = {
importRules,
jsxA11yRules,
nextjsRules,
jsdocRules,
treeShakingRules
}
15 changes: 15 additions & 0 deletions rules.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ const eslintRules = {
"array-callback-return": "off",
"constructor-super": "off",
"default-case-last": "off",
"default-param-last": "off",
"eqeqeq": "off",
"for-direction": "off",
"getter-return": "off",
Expand Down Expand Up @@ -48,6 +49,7 @@ const eslintRules = {
"no-import-assign": "off",
"no-inner-declarations": "off",
"no-irregular-whitespace": "off",
"no-iterator": "off",
"no-loss-of-precision": "off",
"no-mixed-operators": "off",
"no-new-symbol": "off",
Expand All @@ -59,6 +61,7 @@ const eslintRules = {
"no-redeclare": "off",
"no-regex-spaces": "off",
"no-return-await": "off",
"no-script-url": "off",
"no-self-assign": "off",
"no-self-compare": "off",
"no-setter-return": "off",
Expand Down Expand Up @@ -100,6 +103,7 @@ const typescriptRules = {
"@typescript-eslint/no-unsafe-declaration-merging": "off",
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/prefer-as-const": "off",
"@typescript-eslint/prefer-for-of": "off",
"@typescript-eslint/prefer-function-type": "off",
"@typescript-eslint/prefer-ts-expect-error": "off",
"@typescript-eslint/triple-slash-reference": "off"
Expand Down Expand Up @@ -128,9 +132,12 @@ const jestRules = {
"jest/no-standalone-expect": "off",
"jest/no-test-prefixes": "off",
"jest/no-test-return-statement": "off",
"jest/no-untyped-mock-factory": "off",
"jest/prefer-called-with": "off",
"jest/prefer-comparison-matcher": "off",
"jest/prefer-equality-matcher": "off",
"jest/prefer-expect-resolves": "off",
"jest/prefer-mock-promise-shorthand": "off",
"jest/prefer-spy-on": "off",
"jest/prefer-strict-equal": "off",
"jest/prefer-to-be": "off",
Expand Down Expand Up @@ -227,6 +234,7 @@ const unicornRules = {

const reactRules = {
"react/button-has-type": "off",
"react/checked-requires-onchange-or-readonly": "off",
"react/jsx-no-target-blank": "off",
"react/jsx-key": "off",
"react/jsx-no-comment-textnodes": "off",
Expand Down Expand Up @@ -325,6 +333,12 @@ const nextjsRules = {
}


const jsdocRules = {
"jsdoc/check-access": "off",
"jsdoc/empty-tags": "off"
}


const treeShakingRules = {
"tree-shaking/no-side-effects-in-initialization": "off"
}
Expand All @@ -339,5 +353,6 @@ export {
importRules,
jsxA11yRules,
nextjsRules,
jsdocRules,
treeShakingRules
}

0 comments on commit 71e052d

Please sign in to comment.