diff --git a/package.json b/package.json index d138813..3dd701a 100644 --- a/package.json +++ b/package.json @@ -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" } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index e7dcbd4..3b8d7ca 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -30,8 +30,8 @@ devDependencies: specifier: ^50.0.1 version: 50.0.1(eslint@8.56.0) oxlint: - specifier: ^0.0.22 - version: 0.0.22 + specifier: ^0.1.2 + version: 0.1.2 tsx: specifier: ^4.7.0 version: 4.7.0 @@ -380,48 +380,48 @@ packages: fastq: 1.16.0 dev: true - /@oxlint/darwin-arm64@0.0.22: - resolution: {integrity: sha512-n8ZsnApsKKxho00fYR+EzOEt6dVcuMfwdOwoAwpWwdIwrJRUyjWDzZhauX1VGEmgf4Hzm2y53aJMSZAWnIbr7g==} + /@oxlint/darwin-arm64@0.1.2: + resolution: {integrity: sha512-bOYzbxJEXogwulAhGVNq3vSvp6KEwHaaW1G/3xqFKGxuifaa6YeWfCqqguVLh8N0Ma57LfA93/jzBcnW7XHHTQ==} cpu: [arm64] os: [darwin] requiresBuild: true dev: true optional: true - /@oxlint/darwin-x64@0.0.22: - resolution: {integrity: sha512-glVFfh5OtpeqfW2xGf47LPZxByvoodQKQF9Y3ql6HVNHzpUNSDsacO/5hyQ585FiKG3OtFlOP8TaeeDCcj+pXQ==} + /@oxlint/darwin-x64@0.1.2: + resolution: {integrity: sha512-Z6Djz/3csdxHnHgmV+OEl9he1MX+qstDGWsLNAwKLsvixTXYlDoIvdlazysemmBFgVbpUzKbx6cW4HqS31DdAg==} cpu: [x64] os: [darwin] requiresBuild: true dev: true optional: true - /@oxlint/linux-arm64@0.0.22: - resolution: {integrity: sha512-01B8IEMQBFXGabcqLJXxiaT5eTqjO6eNJTl9HwaGJsTlDIxfbE0wPGWJz1POuvTDHDp+IjAR+NjuCwgikWpzbg==} + /@oxlint/linux-arm64@0.1.2: + resolution: {integrity: sha512-ZjmJVasx0ogX3xG0qhsp9LGliDbS4lzzh9WNZxs76QJOXdulRs5Tk+B+8bYVsZyoo3VXjIofUwRpx11An9hEoA==} cpu: [arm64] os: [linux] requiresBuild: true dev: true optional: true - /@oxlint/linux-x64@0.0.22: - resolution: {integrity: sha512-pR9G7yt6RuZMgahe/fAl+TN4hgKZ60qfktwgMn5aLZAufE3fVEg83KncJtFwE++gTiG+xZ8qReYPjEWlI7a7cQ==} + /@oxlint/linux-x64@0.1.2: + resolution: {integrity: sha512-HFCJzqKm5PSjB2uVwy5zVzuVILYwvNgjhQyL3NIJEKF8dpCjn9lxbkJXg1xBJUTCVkuhW/jBdbUipIAFbu7VCg==} cpu: [x64] os: [linux] requiresBuild: true dev: true optional: true - /@oxlint/win32-arm64@0.0.22: - resolution: {integrity: sha512-R/uejrBLO4uQw+jbyusn1LwNTHasZCeiFa/zmP31CRlgD/tUwTYGpERLkpGRmvlzwf8UeFOxyRibNLzz4pXpxA==} + /@oxlint/win32-arm64@0.1.2: + resolution: {integrity: sha512-NDjeYzu2RqI2Nn/MhKy9MayPw3I2tuIGWZsn27emv/C6s1KW7P3khRgYJE9hX2Zo6pCVXzDRQdcmtJflH9wDlg==} cpu: [arm64] os: [win32] requiresBuild: true dev: true optional: true - /@oxlint/win32-x64@0.0.22: - resolution: {integrity: sha512-g4mY10w/oFJUE6lc8F0IiU5LTEKcqxmY4vdmPLQZa2FoM8d2Rf+lLdbiaL9xouF8Zlp8mUyEgWHasKgN/wzLxw==} + /@oxlint/win32-x64@0.1.2: + resolution: {integrity: sha512-zQpQIBAEclJ8tNQKPmGAOKt2ZYNGRWhucfU3mcUr8YPMy1Tf6GPDZUhXNX9icAMRk83n24EtnQb4lR1ipiStmA==} cpu: [x64] os: [win32] requiresBuild: true @@ -1659,17 +1659,17 @@ packages: type-check: 0.4.0 dev: true - /oxlint@0.0.22: - resolution: {integrity: sha512-ZV9pmXiNdY9CHkDcceJ8bpo05HfgLb2nC6wlGcQeUktHpX8ASHgWM2fuw4fEPhhWsydy2lmdiNkw55CCw6S2+g==} + /oxlint@0.1.2: + resolution: {integrity: sha512-hy/pmCx0zgZr1sLZjQeKYoBc0JbFbvd6r9I8CdNjd3bOH100A3JVSjOkClMq6sMG5+mN7TztZzHnpmVKY+jdjw==} engines: {node: '>=14.*'} hasBin: true optionalDependencies: - '@oxlint/darwin-arm64': 0.0.22 - '@oxlint/darwin-x64': 0.0.22 - '@oxlint/linux-arm64': 0.0.22 - '@oxlint/linux-x64': 0.0.22 - '@oxlint/win32-arm64': 0.0.22 - '@oxlint/win32-x64': 0.0.22 + '@oxlint/darwin-arm64': 0.1.2 + '@oxlint/darwin-x64': 0.1.2 + '@oxlint/linux-arm64': 0.1.2 + '@oxlint/linux-x64': 0.1.2 + '@oxlint/win32-arm64': 0.1.2 + '@oxlint/win32-x64': 0.1.2 dev: true /p-limit@2.3.0: diff --git a/rules.cjs b/rules.cjs index e161b5b..d70191f 100644 --- a/rules.cjs +++ b/rules.cjs @@ -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" } @@ -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 = { @@ -252,5 +270,6 @@ module.exports = { unicornRules, reactRules, importRules, - jsxA11yRules + jsxA11yRules, + nextjsRules } \ No newline at end of file diff --git a/rules.js b/rules.js index 7b469e5..0a6c46a 100644 --- a/rules.js +++ b/rules.js @@ -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" } @@ -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 { @@ -252,5 +270,6 @@ export { unicornRules, reactRules, importRules, - jsxA11yRules + jsxA11yRules, + nextjsRules } \ No newline at end of file