ultracite 3.9.8 → 3.9.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/eslint.config.d.mts
CHANGED
|
@@ -104,13 +104,7 @@ const baseRules$e = Object.fromEntries(
|
|
|
104
104
|
);
|
|
105
105
|
|
|
106
106
|
const overrideRules$e = {
|
|
107
|
-
'react-hooks/exhaustive-deps':
|
|
108
|
-
'error',
|
|
109
|
-
{
|
|
110
|
-
// Add support for useAsync by react-use
|
|
111
|
-
additionalHooks: '(useAsync)',
|
|
112
|
-
},
|
|
113
|
-
],
|
|
107
|
+
'react-hooks/exhaustive-deps': 'error',
|
|
114
108
|
};
|
|
115
109
|
|
|
116
110
|
const config$i = Object.assign(baseRules$e, overrideRules$e);
|
|
@@ -474,6 +468,9 @@ const config$1 = Object.assign(baseRules, overrideRules);
|
|
|
474
468
|
|
|
475
469
|
const config = [
|
|
476
470
|
importPlugin.configs.typescript,
|
|
471
|
+
{
|
|
472
|
+
ignores: ['**/dist/', '**/build/', '**/.next/', '**/.turbo/'],
|
|
473
|
+
},
|
|
477
474
|
{
|
|
478
475
|
languageOptions: {
|
|
479
476
|
sourceType: 'module',
|
package/dist/eslint.config.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import dt from"eslint-plugin-react";import bt from"eslint-plugin-react-hooks";import yt from"@typescript-eslint/eslint-plugin";import gt from"eslint-plugin-jsx-a11y";import*as o from"eslint-plugin-import";import jt from"eslint-plugin-jest";import xt from"eslint-plugin-promise";import Ot from"eslint-plugin-n";import Rt from"@next/eslint-plugin-next";import t from"globals";import vt from"eslint-plugin-prettier";import kt from"eslint-plugin-cypress";import ht from"eslint-plugin-storybook";import wt from"eslint-plugin-unused-imports";import*as Et from"eslint-import-resolver-typescript";import Kt from"eslint-plugin-html";import $t from"eslint-plugin-compat";import Pt from"eslint-config-prettier";import*as qt from"@typescript-eslint/parser";import St from"eslint-plugin-sonarjs";import Ct from"eslint-plugin-unicorn";import Tt from"eslint-plugin-github";import*as It from"@tanstack/eslint-plugin-query";import F from"@eslint/js";var Q={"no-unused-private-class-members":"off","capitalized-comments":"off",complexity:"off","id-length":["error",{exceptions:["x","y","z"]}],"max-lines":"off","max-lines-per-function":"off","max-params":"off","max-statements":"off","no-ternary":"off","no-undefined":"off","one-var":"off","prefer-destructuring":["error",{array:!1,object:!0}],"sort-imports":"off","sort-keys":"off","sort-vars":"off"},V=Object.assign(F.configs.all.rules,Q),r=V;import _ from"eslint-plugin-react";var{rules:s}=_,B=Object.keys(s).filter(e=>!s[e].meta.deprecated),D=Object.fromEntries(B.map(e=>[`react/${e}`,"error"])),G={"react/forbid-component-props":"off","react/function-component-definition":["error",{namedComponents:"arrow-function"}],"react/no-array-index-key":"off","react/no-arrow-function-lifecycle":"off","react/no-invalid-html-attribute":"off","react/no-multi-comp":"off","react/no-unused-class-component-methods":"off","react/react-in-jsx-scope":"off","react/require-default-props":"off","react/jsx-filename-extension":["error",{extensions:[".tsx"]}],"react/jsx-max-depth":"off","react/jsx-max-props-per-line":"off","react/jsx-newline":"off","react/jsx-no-bind":"off","react/jsx-no-literals":"off","react/jsx-one-expression-per-line":"off","react/jsx-props-no-spreading":"off","react/jsx-sort-props":"off"},J=Object.assign(D,G),n=J;import{rules as i}from"eslint-plugin-react-hooks";var M=Object.keys(i).filter(e=>!i[e].meta.deprecated),N=Object.fromEntries(M.map(e=>[`react-hooks/${e}`,"error"])),U={"react-hooks/exhaustive-deps":["error",{additionalHooks:"(useAsync)"}]},W=Object.assign(N,U),f=W;import X from"@typescript-eslint/eslint-plugin";var{rules:a}=X,Y=Object.keys(a).filter(e=>!a[e].meta.deprecated),Z=Object.fromEntries(Y.map(e=>[`@typescript-eslint/${e}`,"error"])),ee={"@typescript-eslint/consistent-type-definitions":["error","type"],"@typescript-eslint/explicit-function-return-type":"off","@typescript-eslint/naming-convention":["error",{selector:"default",format:["camelCase","PascalCase","snake_case"]},{selector:"objectLiteralProperty",format:null,modifiers:["requiresQuotes"]}],"@typescript-eslint/no-confusing-void-expression":"off","@typescript-eslint/no-misused-promises":"off","@typescript-eslint/no-type-alias":"off","@typescript-eslint/prefer-readonly":"off","@typescript-eslint/prefer-readonly-parameter-types":"off","@typescript-eslint/sort-type-union-intersection-members":"off","@typescript-eslint/strict-boolean-expressions":"off","@typescript-eslint/no-magic-numbers":"off","@typescript-eslint/block-spacing":"off","@typescript-eslint/brace-style":"off","@typescript-eslint/comma-dangle":"off","@typescript-eslint/comma-spacing":"off","@typescript-eslint/func-call-spacing":"off","@typescript-eslint/indent":"off","@typescript-eslint/key-spacing":"off","@typescript-eslint/keyword-spacing":"off","@typescript-eslint/lines-around-comment":"off","@typescript-eslint/lines-between-class-members":"off","@typescript-eslint/member-delimiter-style":"off","@typescript-eslint/no-extra-parens":"off","@typescript-eslint/object-curly-spacing":"off","@typescript-eslint/padding-line-between-statements":"off","@typescript-eslint/quotes":"off","@typescript-eslint/semi":"off","@typescript-eslint/space-before-blocks":"off","@typescript-eslint/space-before-function-paren":"off","@typescript-eslint/space-infix-ops":"off","@typescript-eslint/type-annotation-spacing":"off"},te=Object.assign(Z,ee),p=te;import oe from"eslint-plugin-jsx-a11y";var{rules:c}=oe,re=Object.keys(c).filter(e=>!c[e].meta.deprecated),se=Object.fromEntries(re.map(e=>[`jsx-a11y/${e}`,"error"])),ne={"jsx-a11y/no-autofocus":"off","jsx-a11y/label-has-associated-control":["error",{labelComponents:["Label"],controlComponents:["Input","Select","Textarea","Checkbox","Radio"],depth:3}]},ie=Object.assign(se,ne),l=ie;import{rules as m}from"eslint-plugin-import";var fe=Object.keys(m).filter(e=>!m[e].meta.deprecated),ae=Object.fromEntries(fe.map(e=>[`import/${e}`,"error"])),pe={"import/no-unresolved":"off","import/no-internal-modules":"off","import/no-relative-parent-imports":"off","import/no-named-as-default":"off","import/exports-last":"off","import/no-namespace":"off","import/extensions":"off","import/order":["error",{groups:["builtin","external","internal","parent","sibling","index","object","type"]}],"import/prefer-default-export":"off","import/max-dependencies":"off","import/no-unassigned-import":"off","import/no-default-export":"off","import/no-named-export":"off","import/group-exports":"off"},ce=Object.assign(ae,pe),u=ce;import le from"eslint-plugin-jest";var{rules:d}=le,me=Object.keys(d).filter(e=>!d[e].meta.deprecated),ue=Object.fromEntries(me.map(e=>[`jest/${e}`,"error"])),de={},be=Object.assign(ue,de),b=be;import ye from"eslint-plugin-promise";var{rules:y}=ye,ge=Object.keys(y).filter(e=>!y[e].meta.deprecated),je=Object.fromEntries(ge.map(e=>[`promise/${e}`,"error"])),xe={"promise/catch-or-return":["error",{allowFinally:!0}],"promise/no-native":"off"},Oe=Object.assign(je,xe),g=Oe;import Re from"eslint-plugin-n";var{rules:j}=Re,ve=Object.keys(j).filter(e=>!j[e].meta.deprecated),ke=Object.fromEntries(ve.map(e=>[`n/${e}`,"error"])),he={"n/no-missing-import":"off","n/no-unsupported-features/es-builtins":"off","n/no-unsupported-features/es-syntax":"off","n/no-unsupported-features/node-builtins":"off","n/file-extension-in-import":"off","n/no-process-env":"off"},we=Object.assign(ke,he),x=we;import Ee from"@next/eslint-plugin-next";var{rules:O}=Ee,Ke=Object.keys(O).filter(e=>!O[e].meta.deprecated),$e=Object.fromEntries(Ke.map(e=>[`@next/next/${e}`,"error"])),Pe={},qe=Object.assign($e,Pe),R=qe;var Se={"prettier/prettier":"error"},v=Se;var Ce={"brace-style":"off",camelcase:"off","comma-dangle":"off","comma-spacing":"off","default-param-last":"off","dot-notation":"off","func-call-spacing":"off",indent:"off","init-declarations":"off","keyword-spacing":"off","lines-between-class-members":"off","no-array-constructor":"off","no-dupe-class-members":"off","no-duplicate-imports":"off","no-empty-function":"off","no-extra-parens":"off","no-extra-semi":"off","no-implied-eval":"off","no-invalid-this":"off","no-loop-func":"off","no-loss-of-precision":"off","no-magic-numbers":"off","no-redeclare":"off","no-restricted-imports":"off","no-shadow":"off","no-throw-literal":"off","no-unused-expressions":"off","no-unused-vars":"off","no-use-before-define":"off","no-useless-constructor":"off","object-curly-spacing":"off","padding-line-between-statements":"off",quotes:"off","require-await":"off","no-return-await":"off",semi:"off","space-before-function-paren":"off","space-infix-ops":"off"},k=Ce;import Te from"eslint-plugin-cypress";var{rules:h}=Te,Ie=Object.keys(h).filter(e=>!h[e].meta.deprecated),Ae=Object.fromEntries(Ie.map(e=>[`cypress/${e}`,"error"])),He={},Le=Object.assign(Ae,He),w=Le;import ze from"eslint-plugin-storybook";var{rules:E}=ze,Fe=Object.keys(E).filter(e=>!E[e].meta.deprecated),Qe=Object.fromEntries(Fe.map(e=>[`storybook/${e}`,"error"])),Ve={},_e=Object.assign(Qe,Ve),K=_e;import Be from"eslint-plugin-unused-imports";var{rules:$}=Be,De=Object.keys($).filter(e=>!$[e].meta.deprecated),Ge=Object.fromEntries(De.map(e=>[`unused-imports/${e}`,"error"])),Je={},Me=Object.assign(Ge,Je),P=Me;import Ne from"eslint-plugin-sonarjs";var{rules:q}=Ne,Ue=Object.keys(q).filter(e=>!q[e].meta.deprecated),We=Object.fromEntries(Ue.map(e=>[`sonarjs/${e}`,"error"])),Xe={"sonarjs/elseif-without-else":"off"},Ye=Object.assign(We,Xe),S=Ye;var Ze={"compat/compat":"warn"},C=Ze;import et from"eslint-plugin-unicorn";var{rules:T}=et,tt=Object.keys(T).filter(e=>!T[e].meta.deprecated),ot=Object.fromEntries(tt.map(e=>[`unicorn/${e}`,"error"])),rt={"unicorn/no-keyword-prefix":"off","unicorn/no-null":"off","unicorn/no-array-callback-reference":"off","unicorn/prevent-abbreviations":["error",{allowList:{getInitialProps:!0,getServerSideProps:!0,getStaticPaths:!0,getStaticProps:!0,generateStaticParams:!0}}]},st=Object.assign(ot,rt),I=st;import nt from"eslint-plugin-github";var{rules:A}=nt,it=Object.keys(A).filter(e=>!A[e].meta.deprecated),ft=Object.fromEntries(it.map(e=>[`github/${e}`,"error"])),at={},pt=Object.assign(ft,at),H=pt;import{rules as L}from"@tanstack/eslint-plugin-query";var ct=Object.keys(L).filter(e=>!L[e].meta.deprecated),lt=Object.fromEntries(ct.map(e=>[`@tanstack/eslint-plugin-query/${e}`,"error"])),mt={},ut=Object.assign(lt,mt),z=ut;var At=[o.configs.typescript,{languageOptions:{sourceType:"module",globals:{...t.browser,...t.node},parserOptions:{ecmaVersion:"latest",sourceType:"module",ecmaFeatures:{jsx:!0}}},files:["**/*.js","**/*.jsx","**/*.ts","**/*.tsx","**/*.json","**/*.mjs","**/*.cjs","**/*.html"],plugins:{prettier:vt,react:dt,"react-hooks":bt,"jsx-a11y":gt,import:o,promise:xt,n:Ot,"@next/next":Rt,"unused-imports":wt,sonarjs:St,compat:$t,unicorn:Ct,github:Tt,"@tanstack/eslint-plugin-query":It},rules:{...r,...n,...f,...l,...u,...g,...x,...R,...v,...Pt.rules,...P,...S,...C,...I,...H,...z},settings:{react:{version:"detect"},"import/parsers":{espree:[".js",".cjs",".mjs",".jsx",".ts",".tsx"]},"import/resolver":{typescript:!0,node:!0}}},{files:["**/*.ts","**/*.tsx"],languageOptions:{parser:qt,parserOptions:{project:"./tsconfig.json"}},plugins:{"@typescript-eslint":yt,"import/typescript":Et},rules:{...k,...p}},{files:["**/*.test.js","**/*.test.jsx","tests/**/*.js","tests/**/*.jsx"],languageOptions:{globals:{...t.jest}},plugins:{jest:jt},rules:{...b}},{files:["**/*.cy.js","**/*.cy.jsx"],languageOptions:{globals:{...t.cypress}},plugins:{cypress:kt},rules:{...w}},{files:["**/*.stories.js","**/*.stories.jsx","**/*.stories.ts","**/*.stories.tsx"],plugins:{storybook:ht},rules:{...K}},{files:["**/*.html"],plugins:{html:Kt},settings:{"html/javascript-tag-names":["script","Script"]}}],nr=At;export{nr as default};
|
|
1
|
+
import dt from"eslint-plugin-react";import bt from"eslint-plugin-react-hooks";import yt from"@typescript-eslint/eslint-plugin";import gt from"eslint-plugin-jsx-a11y";import*as o from"eslint-plugin-import";import jt from"eslint-plugin-jest";import xt from"eslint-plugin-promise";import Ot from"eslint-plugin-n";import Rt from"@next/eslint-plugin-next";import t from"globals";import vt from"eslint-plugin-prettier";import kt from"eslint-plugin-cypress";import ht from"eslint-plugin-storybook";import wt from"eslint-plugin-unused-imports";import*as Et from"eslint-import-resolver-typescript";import Kt from"eslint-plugin-html";import $t from"eslint-plugin-compat";import Pt from"eslint-config-prettier";import*as qt from"@typescript-eslint/parser";import St from"eslint-plugin-sonarjs";import Ct from"eslint-plugin-unicorn";import Tt from"eslint-plugin-github";import*as It from"@tanstack/eslint-plugin-query";import H from"@eslint/js";var Q={"no-unused-private-class-members":"off","capitalized-comments":"off",complexity:"off","id-length":["error",{exceptions:["x","y","z"]}],"max-lines":"off","max-lines-per-function":"off","max-params":"off","max-statements":"off","no-ternary":"off","no-undefined":"off","one-var":"off","prefer-destructuring":["error",{array:!1,object:!0}],"sort-imports":"off","sort-keys":"off","sort-vars":"off"},V=Object.assign(H.configs.all.rules,Q),r=V;import _ from"eslint-plugin-react";var{rules:s}=_,B=Object.keys(s).filter(e=>!s[e].meta.deprecated),D=Object.fromEntries(B.map(e=>[`react/${e}`,"error"])),G={"react/forbid-component-props":"off","react/function-component-definition":["error",{namedComponents:"arrow-function"}],"react/no-array-index-key":"off","react/no-arrow-function-lifecycle":"off","react/no-invalid-html-attribute":"off","react/no-multi-comp":"off","react/no-unused-class-component-methods":"off","react/react-in-jsx-scope":"off","react/require-default-props":"off","react/jsx-filename-extension":["error",{extensions:[".tsx"]}],"react/jsx-max-depth":"off","react/jsx-max-props-per-line":"off","react/jsx-newline":"off","react/jsx-no-bind":"off","react/jsx-no-literals":"off","react/jsx-one-expression-per-line":"off","react/jsx-props-no-spreading":"off","react/jsx-sort-props":"off"},J=Object.assign(D,G),n=J;import{rules as i}from"eslint-plugin-react-hooks";var M=Object.keys(i).filter(e=>!i[e].meta.deprecated),N=Object.fromEntries(M.map(e=>[`react-hooks/${e}`,"error"])),U={"react-hooks/exhaustive-deps":"error"},W=Object.assign(N,U),f=W;import X from"@typescript-eslint/eslint-plugin";var{rules:a}=X,Y=Object.keys(a).filter(e=>!a[e].meta.deprecated),Z=Object.fromEntries(Y.map(e=>[`@typescript-eslint/${e}`,"error"])),ee={"@typescript-eslint/consistent-type-definitions":["error","type"],"@typescript-eslint/explicit-function-return-type":"off","@typescript-eslint/naming-convention":["error",{selector:"default",format:["camelCase","PascalCase","snake_case"]},{selector:"objectLiteralProperty",format:null,modifiers:["requiresQuotes"]}],"@typescript-eslint/no-confusing-void-expression":"off","@typescript-eslint/no-misused-promises":"off","@typescript-eslint/no-type-alias":"off","@typescript-eslint/prefer-readonly":"off","@typescript-eslint/prefer-readonly-parameter-types":"off","@typescript-eslint/sort-type-union-intersection-members":"off","@typescript-eslint/strict-boolean-expressions":"off","@typescript-eslint/no-magic-numbers":"off","@typescript-eslint/block-spacing":"off","@typescript-eslint/brace-style":"off","@typescript-eslint/comma-dangle":"off","@typescript-eslint/comma-spacing":"off","@typescript-eslint/func-call-spacing":"off","@typescript-eslint/indent":"off","@typescript-eslint/key-spacing":"off","@typescript-eslint/keyword-spacing":"off","@typescript-eslint/lines-around-comment":"off","@typescript-eslint/lines-between-class-members":"off","@typescript-eslint/member-delimiter-style":"off","@typescript-eslint/no-extra-parens":"off","@typescript-eslint/object-curly-spacing":"off","@typescript-eslint/padding-line-between-statements":"off","@typescript-eslint/quotes":"off","@typescript-eslint/semi":"off","@typescript-eslint/space-before-blocks":"off","@typescript-eslint/space-before-function-paren":"off","@typescript-eslint/space-infix-ops":"off","@typescript-eslint/type-annotation-spacing":"off"},te=Object.assign(Z,ee),p=te;import oe from"eslint-plugin-jsx-a11y";var{rules:c}=oe,re=Object.keys(c).filter(e=>!c[e].meta.deprecated),se=Object.fromEntries(re.map(e=>[`jsx-a11y/${e}`,"error"])),ne={"jsx-a11y/no-autofocus":"off","jsx-a11y/label-has-associated-control":["error",{labelComponents:["Label"],controlComponents:["Input","Select","Textarea","Checkbox","Radio"],depth:3}]},ie=Object.assign(se,ne),l=ie;import{rules as m}from"eslint-plugin-import";var fe=Object.keys(m).filter(e=>!m[e].meta.deprecated),ae=Object.fromEntries(fe.map(e=>[`import/${e}`,"error"])),pe={"import/no-unresolved":"off","import/no-internal-modules":"off","import/no-relative-parent-imports":"off","import/no-named-as-default":"off","import/exports-last":"off","import/no-namespace":"off","import/extensions":"off","import/order":["error",{groups:["builtin","external","internal","parent","sibling","index","object","type"]}],"import/prefer-default-export":"off","import/max-dependencies":"off","import/no-unassigned-import":"off","import/no-default-export":"off","import/no-named-export":"off","import/group-exports":"off"},ce=Object.assign(ae,pe),u=ce;import le from"eslint-plugin-jest";var{rules:d}=le,me=Object.keys(d).filter(e=>!d[e].meta.deprecated),ue=Object.fromEntries(me.map(e=>[`jest/${e}`,"error"])),de={},be=Object.assign(ue,de),b=be;import ye from"eslint-plugin-promise";var{rules:y}=ye,ge=Object.keys(y).filter(e=>!y[e].meta.deprecated),je=Object.fromEntries(ge.map(e=>[`promise/${e}`,"error"])),xe={"promise/catch-or-return":["error",{allowFinally:!0}],"promise/no-native":"off"},Oe=Object.assign(je,xe),g=Oe;import Re from"eslint-plugin-n";var{rules:j}=Re,ve=Object.keys(j).filter(e=>!j[e].meta.deprecated),ke=Object.fromEntries(ve.map(e=>[`n/${e}`,"error"])),he={"n/no-missing-import":"off","n/no-unsupported-features/es-builtins":"off","n/no-unsupported-features/es-syntax":"off","n/no-unsupported-features/node-builtins":"off","n/file-extension-in-import":"off","n/no-process-env":"off"},we=Object.assign(ke,he),x=we;import Ee from"@next/eslint-plugin-next";var{rules:O}=Ee,Ke=Object.keys(O).filter(e=>!O[e].meta.deprecated),$e=Object.fromEntries(Ke.map(e=>[`@next/next/${e}`,"error"])),Pe={},qe=Object.assign($e,Pe),R=qe;var Se={"prettier/prettier":"error"},v=Se;var Ce={"brace-style":"off",camelcase:"off","comma-dangle":"off","comma-spacing":"off","default-param-last":"off","dot-notation":"off","func-call-spacing":"off",indent:"off","init-declarations":"off","keyword-spacing":"off","lines-between-class-members":"off","no-array-constructor":"off","no-dupe-class-members":"off","no-duplicate-imports":"off","no-empty-function":"off","no-extra-parens":"off","no-extra-semi":"off","no-implied-eval":"off","no-invalid-this":"off","no-loop-func":"off","no-loss-of-precision":"off","no-magic-numbers":"off","no-redeclare":"off","no-restricted-imports":"off","no-shadow":"off","no-throw-literal":"off","no-unused-expressions":"off","no-unused-vars":"off","no-use-before-define":"off","no-useless-constructor":"off","object-curly-spacing":"off","padding-line-between-statements":"off",quotes:"off","require-await":"off","no-return-await":"off",semi:"off","space-before-function-paren":"off","space-infix-ops":"off"},k=Ce;import Te from"eslint-plugin-cypress";var{rules:h}=Te,Ie=Object.keys(h).filter(e=>!h[e].meta.deprecated),Le=Object.fromEntries(Ie.map(e=>[`cypress/${e}`,"error"])),ze={},Ae=Object.assign(Le,ze),w=Ae;import Fe from"eslint-plugin-storybook";var{rules:E}=Fe,He=Object.keys(E).filter(e=>!E[e].meta.deprecated),Qe=Object.fromEntries(He.map(e=>[`storybook/${e}`,"error"])),Ve={},_e=Object.assign(Qe,Ve),K=_e;import Be from"eslint-plugin-unused-imports";var{rules:$}=Be,De=Object.keys($).filter(e=>!$[e].meta.deprecated),Ge=Object.fromEntries(De.map(e=>[`unused-imports/${e}`,"error"])),Je={},Me=Object.assign(Ge,Je),P=Me;import Ne from"eslint-plugin-sonarjs";var{rules:q}=Ne,Ue=Object.keys(q).filter(e=>!q[e].meta.deprecated),We=Object.fromEntries(Ue.map(e=>[`sonarjs/${e}`,"error"])),Xe={"sonarjs/elseif-without-else":"off"},Ye=Object.assign(We,Xe),S=Ye;var Ze={"compat/compat":"warn"},C=Ze;import et from"eslint-plugin-unicorn";var{rules:T}=et,tt=Object.keys(T).filter(e=>!T[e].meta.deprecated),ot=Object.fromEntries(tt.map(e=>[`unicorn/${e}`,"error"])),rt={"unicorn/no-keyword-prefix":"off","unicorn/no-null":"off","unicorn/no-array-callback-reference":"off","unicorn/prevent-abbreviations":["error",{allowList:{getInitialProps:!0,getServerSideProps:!0,getStaticPaths:!0,getStaticProps:!0,generateStaticParams:!0}}]},st=Object.assign(ot,rt),I=st;import nt from"eslint-plugin-github";var{rules:L}=nt,it=Object.keys(L).filter(e=>!L[e].meta.deprecated),ft=Object.fromEntries(it.map(e=>[`github/${e}`,"error"])),at={},pt=Object.assign(ft,at),z=pt;import{rules as A}from"@tanstack/eslint-plugin-query";var ct=Object.keys(A).filter(e=>!A[e].meta.deprecated),lt=Object.fromEntries(ct.map(e=>[`@tanstack/eslint-plugin-query/${e}`,"error"])),mt={},ut=Object.assign(lt,mt),F=ut;var Lt=[o.configs.typescript,{ignores:["**/dist/","**/build/","**/.next/","**/.turbo/"]},{languageOptions:{sourceType:"module",globals:{...t.browser,...t.node},parserOptions:{ecmaVersion:"latest",sourceType:"module",ecmaFeatures:{jsx:!0}}},files:["**/*.js","**/*.jsx","**/*.ts","**/*.tsx","**/*.json","**/*.mjs","**/*.cjs","**/*.html"],plugins:{prettier:vt,react:dt,"react-hooks":bt,"jsx-a11y":gt,import:o,promise:xt,n:Ot,"@next/next":Rt,"unused-imports":wt,sonarjs:St,compat:$t,unicorn:Ct,github:Tt,"@tanstack/eslint-plugin-query":It},rules:{...r,...n,...f,...l,...u,...g,...x,...R,...v,...Pt.rules,...P,...S,...C,...I,...z,...F},settings:{react:{version:"detect"},"import/parsers":{espree:[".js",".cjs",".mjs",".jsx",".ts",".tsx"]},"import/resolver":{typescript:!0,node:!0}}},{files:["**/*.ts","**/*.tsx"],languageOptions:{parser:qt,parserOptions:{project:"./tsconfig.json"}},plugins:{"@typescript-eslint":yt,"import/typescript":Et},rules:{...k,...p}},{files:["**/*.test.js","**/*.test.jsx","tests/**/*.js","tests/**/*.jsx"],languageOptions:{globals:{...t.jest}},plugins:{jest:jt},rules:{...b}},{files:["**/*.cy.js","**/*.cy.jsx"],languageOptions:{globals:{...t.cypress}},plugins:{cypress:kt},rules:{...w}},{files:["**/*.stories.js","**/*.stories.jsx","**/*.stories.ts","**/*.stories.tsx"],plugins:{storybook:ht},rules:{...K}},{files:["**/*.html"],plugins:{html:Kt},settings:{"html/javascript-tag-names":["script","Script"]}}],nr=Lt;export{nr as default};
|
package/package.json
CHANGED