Skip to content

Commit

Permalink
Merge pull request #2 from jgeurts/update-oxlint-0_1
Browse files Browse the repository at this point in the history
Update oxlint version to v0.1.2
  • Loading branch information
Dunqing authored Jan 11, 2024
2 parents 9e12a93 + 6466228 commit 9d4105f
Show file tree
Hide file tree
Showing 4 changed files with 67 additions and 29 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"bumpp": "^9.2.1",
"eslint": "^8.56.0",
"eslint-plugin-unicorn": "^50.0.1",
"oxlint": "^0.0.22",
"oxlint": "^0.1.2",
"tsx": "^4.7.0",
"typescript": "^5.3.3"
}
Expand Down
44 changes: 22 additions & 22 deletions pnpm-lock.yaml

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

25 changes: 22 additions & 3 deletions rules.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,8 @@ const reactRules = {
"react/no-render-return-value": "off",
"react/no-string-refs": "off",
"react/no-unescaped-entities": "off",
"react/no-is-mounted": "off"
"react/no-is-mounted": "off",
"react/no-unknown-property": "off"
}


Expand Down Expand Up @@ -242,7 +243,24 @@ const jsxA11yRules = {
"jsx-a11y/scope": "off",
"jsx-a11y/tab-index-no-positive": "off",
"jsx-a11y/aria-role": "off",
"jsx-a11y/no-distracting-elements": "off"
"jsx-a11y/no-distracting-elements": "off",
"jsx-a11y/role-support-aria-props": "off"
}


const nextjsRules = {
"nextjs/google-font-display": "off",
"nextjs/google-font-preconnect": "off",
"nextjs/inline-script-id": "off",
"nextjs/next-script-for-ga": "off",
"nextjs/no-assign-module-variable": "off",
"nextjs/no-async-client-component": "off",
"nextjs/no-css-tags": "off",
"nextjs/no-head-import-in-document": "off",
"nextjs/no-img-element": "off",
"nextjs/no-script-component-in-head": "off",
"nextjs/no-sync-scripts": "off",
"nextjs/no-title-in-document-head": "off"
}

module.exports = {
Expand All @@ -252,5 +270,6 @@ module.exports = {
unicornRules,
reactRules,
importRules,
jsxA11yRules
jsxA11yRules,
nextjsRules
}
25 changes: 22 additions & 3 deletions rules.js
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,8 @@ const reactRules = {
"react/no-render-return-value": "off",
"react/no-string-refs": "off",
"react/no-unescaped-entities": "off",
"react/no-is-mounted": "off"
"react/no-is-mounted": "off",
"react/no-unknown-property": "off"
}


Expand Down Expand Up @@ -242,7 +243,24 @@ const jsxA11yRules = {
"jsx-a11y/scope": "off",
"jsx-a11y/tab-index-no-positive": "off",
"jsx-a11y/aria-role": "off",
"jsx-a11y/no-distracting-elements": "off"
"jsx-a11y/no-distracting-elements": "off",
"jsx-a11y/role-support-aria-props": "off"
}


const nextjsRules = {
"nextjs/google-font-display": "off",
"nextjs/google-font-preconnect": "off",
"nextjs/inline-script-id": "off",
"nextjs/next-script-for-ga": "off",
"nextjs/no-assign-module-variable": "off",
"nextjs/no-async-client-component": "off",
"nextjs/no-css-tags": "off",
"nextjs/no-head-import-in-document": "off",
"nextjs/no-img-element": "off",
"nextjs/no-script-component-in-head": "off",
"nextjs/no-sync-scripts": "off",
"nextjs/no-title-in-document-head": "off"
}

export {
Expand All @@ -252,5 +270,6 @@ export {
unicornRules,
reactRules,
importRules,
jsxA11yRules
jsxA11yRules,
nextjsRules
}

0 comments on commit 9d4105f

Please sign in to comment.