@zemd/eslint-rock-stack 1.1.46 → 2.0.0
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/index.d.mts +52 -0
- package/dist/index.d.mts.map +1 -0
- package/dist/index.mjs +2 -0
- package/dist/index.mjs.map +1 -0
- package/dist/tailwind.d.mts +12 -0
- package/dist/tailwind.d.mts.map +1 -0
- package/dist/tailwind.mjs +2 -0
- package/dist/tailwind.mjs.map +1 -0
- package/package.json +11 -14
- package/dist/index.cjs +0 -1
- package/dist/index.d.cts +0 -33
- package/dist/index.d.ts +0 -33
- package/dist/index.js +0 -1
- package/dist/tailwind.cjs +0 -1
- package/dist/tailwind.d.cts +0 -8
- package/dist/tailwind.d.ts +0 -8
- package/dist/tailwind.js +0 -1
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { Linter } from "eslint";
|
|
2
|
+
export * from "@zemd/eslint-react";
|
|
3
|
+
|
|
4
|
+
//#region src/graphql.d.ts
|
|
5
|
+
type GraphQlOptions = {
|
|
6
|
+
files: string[];
|
|
7
|
+
};
|
|
8
|
+
declare function graphql({
|
|
9
|
+
files
|
|
10
|
+
}?: Partial<GraphQlOptions>): Array<Linter.Config>;
|
|
11
|
+
//#endregion
|
|
12
|
+
//#region src/playwright.d.ts
|
|
13
|
+
type PlaywrightConfig = {
|
|
14
|
+
files: string[];
|
|
15
|
+
};
|
|
16
|
+
declare function playwright({
|
|
17
|
+
files
|
|
18
|
+
}?: Partial<PlaywrightConfig>): Array<Linter.Config>;
|
|
19
|
+
//#endregion
|
|
20
|
+
//#region src/turbo.d.ts
|
|
21
|
+
type TurboOptions = {
|
|
22
|
+
allowList: string[];
|
|
23
|
+
};
|
|
24
|
+
declare function turbo({
|
|
25
|
+
allowList
|
|
26
|
+
}?: Partial<TurboOptions>): Array<Linter.Config>;
|
|
27
|
+
//#endregion
|
|
28
|
+
//#region src/vitest.d.ts
|
|
29
|
+
type VitestConfig = {
|
|
30
|
+
files: string[];
|
|
31
|
+
enableTypeChecking: boolean;
|
|
32
|
+
};
|
|
33
|
+
declare function vitest({
|
|
34
|
+
files,
|
|
35
|
+
enableTypeChecking
|
|
36
|
+
}?: Partial<VitestConfig>): Array<Linter.Config>;
|
|
37
|
+
//#endregion
|
|
38
|
+
//#region src/storybook.d.ts
|
|
39
|
+
type StorybookOptions = {
|
|
40
|
+
filesMain: string[];
|
|
41
|
+
filesStories: string[];
|
|
42
|
+
};
|
|
43
|
+
declare function storybook({
|
|
44
|
+
filesMain,
|
|
45
|
+
filesStories
|
|
46
|
+
}?: Partial<StorybookOptions>): Array<Linter.Config>;
|
|
47
|
+
//#endregion
|
|
48
|
+
//#region src/index.d.ts
|
|
49
|
+
declare function fullstack(): Array<Linter.Config>;
|
|
50
|
+
//#endregion
|
|
51
|
+
export { fullstack as default, graphql, playwright, storybook, turbo, vitest };
|
|
52
|
+
//# sourceMappingURL=index.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/graphql.ts","../src/playwright.ts","../src/turbo.ts","../src/vitest.ts","../src/storybook.ts","../src/index.ts"],"mappings":";;;;KAIK,cAAA;EACH,KAAA;AAAA;AAAA,iBAGsB,OAAA,CAAA;EACtB;AAAA,IACC,OAAA,CAAQ,cAAA,IAAuB,KAAA,CAAM,MAAA,CAAO,MAAA;;;KCN1C,gBAAA;EACH,KAAA;AAAA;AAAA,iBAGsB,UAAA,CAAA;EACtB;AAAA,IACC,OAAA,CAAQ,gBAAA,IAAyB,KAAA,CAAM,MAAA,CAAO,MAAA;;;KCP5C,YAAA;EACH,SAAA;AAAA;AAAA,iBAGsB,KAAA,CAAA;EACtB;AAAA,IACC,OAAA,CAAQ,YAAA,IAAqB,KAAA,CAAM,MAAA,CAAO,MAAA;;;KCLxC,YAAA;EACH,KAAA;EACA,kBAAA;AAAA;AAAA,iBAGsB,MAAA,CAAA;EACtB,KAAA;EACA;AAAA,IACC,OAAA,CAAQ,YAAA,IAAqB,KAAA,CAAM,MAAA,CAAO,MAAA;;;KCRxC,gBAAA;EACH,SAAA;EACA,YAAA;AAAA;AAAA,iBAGsB,SAAA,CAAA;EACtB,SAAA;EACA;AAAA,IACC,OAAA,CAAQ,gBAAA,IAAyB,KAAA,CAAM,MAAA,CAAO,MAAA;;;iBCJzB,SAAA,CAAA,GAAa,KAAA,CAAM,MAAA,CAAO,MAAA"}
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import e from"@zemd/eslint-react";import t from"@graphql-eslint/eslint-plugin";import{GLOB_GQL as n,GLOB_MAIN as r,GLOB_STORIES as i,GLOB_TEST as a}from"@zemd/eslint-common";import o from"eslint-plugin-playwright";import*as s from"eslint-plugin-turbo";import c from"@vitest/eslint-plugin";import l from"eslint-plugin-storybook";export*from"@zemd/eslint-react";function u({files:e=[n]}={}){return[{name:`zemd/graphql/setup`,files:e,plugins:{"@graphql-eslint":t},languageOptions:{parser:t.parser}},{name:`zemd/graphql/rules-schema`,files:e,rules:{...t.configs[`flat/schema-recommended`].rules}},{name:`zemd/graphql/rules-operations`,files:e,rules:{...t.configs[`flat/operations-recommended`].rules}}]}function d({files:e=[a]}={}){return[{name:`zemd/playwright/rules`,files:e,plugins:{playwright:o},rules:{...o.configs[`flat/recommended`].rules}}]}function f({allowList:e=[`^ENV_[A-Z]+$`]}={}){return[{name:`zemd/turbo/ignores`,ignores:[`**/.turbo/**`]},{name:`zemd/turbo/rules`,files:[`**/turbo.json`],plugins:{turbo:s},rules:{...s.configs[`flat/recommended`].rules,"turbo/no-undeclared-env-vars":[`error`,{allowList:e}]}}]}function p({files:e=[a],enableTypeChecking:t=!0}={}){return[{name:`zemd/vitest/rules`,files:e,plugins:{vitest:c},rules:c.configs.recommended.rules},...t?[{name:`zemd/vitest/setup`,files:e,settings:{vitest:{typecheck:!0}},languageOptions:{globals:{...c.environments.env.globals}}}]:[]]}function m({filesMain:e=[r],filesStories:t=[i]}={}){let[,n,a]=l.configs[`flat/recommended`],[,o,s,c]=l.configs[`flat/csf-strict`];return[{...a,name:`zemd/storybook/rules-main`,plugins:{storybook:l},files:e,rules:{...a?.rules,...s?.rules}},{...n,name:`zemd/storybook/rules-stories`,plugins:{storybook:l},files:t,rules:{...n?.rules,...o?.rules,...c?.rules,"storybook/csf-component":`error`,"storybook/hierarchy-separator":`error`,"storybook/no-redundant-story-name":`error`,"storybook/prefer-pascal-case":`error`}}]}function h(){return[...e(),...u(),...d(),...f(),...p()]}export{h as default,u as graphql,d as playwright,m as storybook,f as turbo,p as vitest};
|
|
2
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","names":["plugin","plugin","plugin","plugin"],"sources":["../src/graphql.ts","../src/playwright.ts","../src/turbo.ts","../src/vitest.ts","../src/storybook.ts","../src/index.ts"],"sourcesContent":["import type { Linter } from \"eslint\";\nimport plugin from \"@graphql-eslint/eslint-plugin\";\nimport { GLOB_GQL } from \"@zemd/eslint-common\";\n\ntype GraphQlOptions = {\n files: string[];\n};\n\nexport default function graphql({\n files = [GLOB_GQL],\n}: Partial<GraphQlOptions> = {}): Array<Linter.Config> {\n return [\n {\n name: \"zemd/graphql/setup\",\n files,\n plugins: {\n // @ts-ignore\n \"@graphql-eslint\": plugin,\n },\n languageOptions: {\n parser: plugin.parser,\n },\n },\n {\n name: \"zemd/graphql/rules-schema\",\n files,\n rules: {\n ...plugin.configs[\"flat/schema-recommended\"].rules,\n },\n },\n {\n name: \"zemd/graphql/rules-operations\",\n files,\n rules: {\n ...plugin.configs[\"flat/operations-recommended\"].rules,\n },\n },\n ];\n}\n","import type { Linter } from \"eslint\";\nimport { GLOB_TEST } from \"@zemd/eslint-common\";\nimport plugin from \"eslint-plugin-playwright\";\n\ntype PlaywrightConfig = {\n files: string[];\n};\n\nexport default function playwright({\n files = [GLOB_TEST],\n}: Partial<PlaywrightConfig> = {}): Array<Linter.Config> {\n return [\n {\n name: \"zemd/playwright/rules\",\n files,\n plugins: {\n playwright: plugin,\n },\n rules: {\n ...plugin.configs[\"flat/recommended\"].rules,\n },\n },\n ];\n}\n","import type { Linter } from \"eslint\";\nimport * as plugin from \"eslint-plugin-turbo\";\n\ntype TurboOptions = {\n allowList: string[];\n};\n\nexport default function turbo({\n allowList = [\"^ENV_[A-Z]+$\"],\n}: Partial<TurboOptions> = {}): Array<Linter.Config> {\n return [\n {\n name: \"zemd/turbo/ignores\",\n ignores: [\"**/.turbo/**\"],\n },\n {\n name: \"zemd/turbo/rules\",\n files: [`**/turbo.json`],\n plugins: {\n // @ts-ignore\n turbo: plugin,\n },\n rules: {\n ...plugin.configs[\"flat/recommended\"].rules,\n \"turbo/no-undeclared-env-vars\": [\n \"error\",\n {\n allowList,\n },\n ],\n },\n },\n ];\n}\n","import type { Linter } from \"eslint\";\nimport { GLOB_TEST } from \"@zemd/eslint-common\";\nimport plugin from \"@vitest/eslint-plugin\";\n\ntype VitestConfig = {\n files: string[];\n enableTypeChecking: boolean;\n};\n\nexport default function vitest({\n files = [GLOB_TEST],\n enableTypeChecking = true,\n}: Partial<VitestConfig> = {}): Array<Linter.Config> {\n return [\n {\n name: \"zemd/vitest/rules\",\n files,\n plugins: {\n // @ts-ignore see https://github.com/vitest-dev/eslint-plugin-vitest/issues/737\n vitest: plugin,\n },\n rules: plugin.configs.recommended.rules,\n },\n ...(enableTypeChecking\n ? [\n {\n name: \"zemd/vitest/setup\",\n files,\n settings: {\n vitest: {\n typecheck: true,\n },\n },\n languageOptions: {\n globals: {\n ...plugin.environments.env.globals,\n },\n },\n },\n ]\n : []),\n ];\n}\n","import { GLOB_MAIN, GLOB_STORIES } from \"@zemd/eslint-common\";\nimport type { ESLint, Linter } from \"eslint\";\nimport plugin from \"eslint-plugin-storybook\";\n\ntype StorybookOptions = {\n filesMain: string[];\n filesStories: string[];\n};\n\nexport default function storybook({\n filesMain = [GLOB_MAIN],\n filesStories = [GLOB_STORIES],\n}: Partial<StorybookOptions> = {}): Array<Linter.Config> {\n const [, recommendedStories, recommendedMain] = plugin.configs[\"flat/recommended\"];\n const [, csf, csfMain, csfStrict] = plugin.configs[\"flat/csf-strict\"]; // csf-strict includes csf rules\n return [\n {\n // enabling support for storybook main file\n ...recommendedMain,\n name: \"zemd/storybook/rules-main\",\n plugins: {\n storybook: plugin as unknown as ESLint.Plugin,\n },\n files: filesMain,\n rules: {\n ...recommendedMain?.rules,\n ...csfMain?.rules,\n },\n },\n {\n // enabling support for storybook stories\n ...recommendedStories,\n name: \"zemd/storybook/rules-stories\",\n plugins: {\n storybook: plugin as unknown as ESLint.Plugin,\n },\n files: filesStories,\n rules: {\n ...recommendedStories?.rules,\n ...csf?.rules,\n ...csfStrict?.rules,\n \"storybook/csf-component\": \"error\",\n \"storybook/hierarchy-separator\": \"error\",\n \"storybook/no-redundant-story-name\": \"error\",\n \"storybook/prefer-pascal-case\": \"error\",\n },\n },\n ];\n}\n","import type { Linter } from \"eslint\";\nimport react from \"@zemd/eslint-react\";\nimport graphql from \"./graphql.js\";\nimport playwright from \"./playwright\";\n// import tailwind from \"./tailwind\";\nimport turbo from \"./turbo\";\nimport vitest from \"./vitest\";\n\nexport default function fullstack(): Array<Linter.Config> {\n return [\n // better diff comment\n ...react(),\n ...graphql(),\n ...playwright(),\n // ...tailwind(),\n ...turbo(),\n ...vitest(),\n ];\n}\n\nexport * from \"@zemd/eslint-react\";\nexport { default as graphql } from \"./graphql\";\nexport { default as playwright } from \"./playwright\";\n// export { default as tailwind } from \"./tailwind\";\nexport { default as turbo } from \"./turbo\";\nexport { default as vitest } from \"./vitest\";\nexport { default as storybook } from \"./storybook\";\n"],"mappings":"wWAQA,SAAwB,EAAQ,CAC9B,QAAQ,CAAC,EAAS,EACS,EAAE,CAAwB,CACrD,MAAO,CACL,CACE,KAAM,qBACN,QACA,QAAS,CAEP,kBAAmB,EACpB,CACD,gBAAiB,CACf,OAAQ,EAAO,OAChB,CACF,CACD,CACE,KAAM,4BACN,QACA,MAAO,CACL,GAAG,EAAO,QAAQ,2BAA2B,MAC9C,CACF,CACD,CACE,KAAM,gCACN,QACA,MAAO,CACL,GAAG,EAAO,QAAQ,+BAA+B,MAClD,CACF,CACF,CC7BH,SAAwB,EAAW,CACjC,QAAQ,CAAC,EAAU,EACU,EAAE,CAAwB,CACvD,MAAO,CACL,CACE,KAAM,wBACN,QACA,QAAS,CACP,WAAYA,EACb,CACD,MAAO,CACL,GAAGA,EAAO,QAAQ,oBAAoB,MACvC,CACF,CACF,CCfH,SAAwB,EAAM,CAC5B,YAAY,CAAC,eAAe,EACH,EAAE,CAAwB,CACnD,MAAO,CACL,CACE,KAAM,qBACN,QAAS,CAAC,eAAe,CAC1B,CACD,CACE,KAAM,mBACN,MAAO,CAAC,gBAAgB,CACxB,QAAS,CAEP,MAAOC,EACR,CACD,MAAO,CACL,GAAGA,EAAO,QAAQ,oBAAoB,MACtC,+BAAgC,CAC9B,QACA,CACE,YACD,CACF,CACF,CACF,CACF,CCvBH,SAAwB,EAAO,CAC7B,QAAQ,CAAC,EAAU,CACnB,qBAAqB,IACI,EAAE,CAAwB,CACnD,MAAO,CACL,CACE,KAAM,oBACN,QACA,QAAS,CAEP,OAAQC,EACT,CACD,MAAOA,EAAO,QAAQ,YAAY,MACnC,CACD,GAAI,EACA,CACE,CACE,KAAM,oBACN,QACA,SAAU,CACR,OAAQ,CACN,UAAW,GACZ,CACF,CACD,gBAAiB,CACf,QAAS,CACP,GAAGA,EAAO,aAAa,IAAI,QAC5B,CACF,CACF,CACF,CACD,EAAE,CACP,CChCH,SAAwB,EAAU,CAChC,YAAY,CAAC,EAAU,CACvB,eAAe,CAAC,EAAa,EACA,EAAE,CAAwB,CACvD,GAAM,EAAG,EAAoB,GAAmBC,EAAO,QAAQ,oBACzD,EAAG,EAAK,EAAS,GAAaA,EAAO,QAAQ,mBACnD,MAAO,CACL,CAEE,GAAG,EACH,KAAM,4BACN,QAAS,CACP,UAAWA,EACZ,CACD,MAAO,EACP,MAAO,CACL,GAAG,GAAiB,MACpB,GAAG,GAAS,MACb,CACF,CACD,CAEE,GAAG,EACH,KAAM,+BACN,QAAS,CACP,UAAWA,EACZ,CACD,MAAO,EACP,MAAO,CACL,GAAG,GAAoB,MACvB,GAAG,GAAK,MACR,GAAG,GAAW,MACd,0BAA2B,QAC3B,gCAAiC,QACjC,oCAAqC,QACrC,+BAAgC,QACjC,CACF,CACF,CCvCH,SAAwB,GAAkC,CACxD,MAAO,CAEL,GAAG,GAAO,CACV,GAAG,GAAS,CACZ,GAAG,GAAY,CAEf,GAAG,GAAO,CACV,GAAG,GAAQ,CACZ"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Linter } from "eslint";
|
|
2
|
+
|
|
3
|
+
//#region src/tailwind.d.ts
|
|
4
|
+
type TailwindOptions = {
|
|
5
|
+
files: string[];
|
|
6
|
+
};
|
|
7
|
+
declare function tailwind({
|
|
8
|
+
files
|
|
9
|
+
}?: Partial<TailwindOptions>): Array<Linter.Config>;
|
|
10
|
+
//#endregion
|
|
11
|
+
export { tailwind as default };
|
|
12
|
+
//# sourceMappingURL=tailwind.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tailwind.d.mts","names":[],"sources":["../src/tailwind.ts"],"mappings":";;;KAIK,eAAA;EACH,KAAA;AAAA;AAAA,iBAGsB,QAAA,CAAA;EACtB;AAAA,IACC,OAAA,CAAQ,eAAA,IAAwB,KAAA,CAAM,MAAA,CAAO,MAAA"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{GLOB_SRC_ALL as e}from"@zemd/eslint-common";import t from"eslint-plugin-tailwindcss";function n({files:n=[e]}={}){let[,r]=t.configs[`flat/recommended`];return[{name:`zemd/tailwindcss/files`,languageOptions:{sourceType:`commonjs`},files:[`tailwind.config.js`,`postcss.config.js`]},{name:`zemd/tailwindcss/rules`,files:n,plugins:{tailwindcss:t},languageOptions:{parserOptions:{ecmaFeatures:{jsx:!0}}},rules:{...r.rules,"tailwindcss/classnames-order":`off`}}]}export{n as default};
|
|
2
|
+
//# sourceMappingURL=tailwind.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tailwind.mjs","names":[],"sources":["../src/tailwind.ts"],"sourcesContent":["import type { Linter } from \"eslint\";\nimport { GLOB_SRC_ALL } from \"@zemd/eslint-common\";\nimport tailwindcss from \"eslint-plugin-tailwindcss\";\n\ntype TailwindOptions = {\n files: string[];\n};\n\nexport default function tailwind({\n files = [GLOB_SRC_ALL],\n}: Partial<TailwindOptions> = {}): Array<Linter.Config> {\n const [, recommended] = tailwindcss.configs[\"flat/recommended\"];\n\n return [\n {\n name: \"zemd/tailwindcss/files\",\n languageOptions: {\n sourceType: \"commonjs\",\n },\n files: [\"tailwind.config.js\", \"postcss.config.js\"],\n },\n {\n name: \"zemd/tailwindcss/rules\",\n files,\n plugins: { tailwindcss },\n languageOptions: {\n parserOptions: {\n ecmaFeatures: {\n jsx: true,\n },\n },\n },\n rules: {\n ...recommended.rules,\n \"tailwindcss/classnames-order\": \"off\", // use official prettier configuration instead\n },\n },\n ];\n}\n"],"mappings":"4FAQA,SAAwB,EAAS,CAC/B,QAAQ,CAAC,EAAa,EACM,EAAE,CAAwB,CACtD,GAAM,EAAG,GAAe,EAAY,QAAQ,oBAE5C,MAAO,CACL,CACE,KAAM,yBACN,gBAAiB,CACf,WAAY,WACb,CACD,MAAO,CAAC,qBAAsB,oBAAoB,CACnD,CACD,CACE,KAAM,yBACN,QACA,QAAS,CAAE,cAAa,CACxB,gBAAiB,CACf,cAAe,CACb,aAAc,CACZ,IAAK,GACN,CACF,CACF,CACD,MAAO,CACL,GAAG,EAAY,MACf,+BAAgC,MACjC,CACF,CACF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zemd/eslint-rock-stack",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "Shared ESLint config for modern projects",
|
|
6
6
|
"keywords": [
|
|
@@ -37,17 +37,14 @@
|
|
|
37
37
|
"type": "module",
|
|
38
38
|
"exports": {
|
|
39
39
|
".": {
|
|
40
|
-
"import": "./dist/index.
|
|
41
|
-
"require": "./dist/index.cjs"
|
|
40
|
+
"import": "./dist/index.mjs"
|
|
42
41
|
},
|
|
43
42
|
"./tailwind": {
|
|
44
|
-
"import": "./dist/tailwind.
|
|
45
|
-
"require": "./dist/tailwind.cjs"
|
|
43
|
+
"import": "./dist/tailwind.mjs"
|
|
46
44
|
}
|
|
47
45
|
},
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
"types": "./dist/index.d.ts",
|
|
46
|
+
"module": "./dist/index.mjs",
|
|
47
|
+
"types": "./dist/index.d.mts",
|
|
51
48
|
"peerDependencies": {
|
|
52
49
|
"eslint": ">=9.2.0",
|
|
53
50
|
"eslint-plugin-tailwindcss": "^3.18.0",
|
|
@@ -63,20 +60,20 @@
|
|
|
63
60
|
"@vitest/eslint-plugin": "^1.6.6",
|
|
64
61
|
"eslint-plugin-playwright": "^2.5.0",
|
|
65
62
|
"eslint-plugin-storybook": "^10.1.11",
|
|
66
|
-
"eslint-plugin-turbo": "^2.7.
|
|
67
|
-
"@zemd/eslint-
|
|
68
|
-
"@zemd/eslint-
|
|
63
|
+
"eslint-plugin-turbo": "^2.7.5",
|
|
64
|
+
"@zemd/eslint-common": "2.0.0",
|
|
65
|
+
"@zemd/eslint-react": "2.0.0"
|
|
69
66
|
},
|
|
70
67
|
"devDependencies": {
|
|
71
68
|
"@types/eslint": "^9.6.1",
|
|
72
69
|
"@zemd/tsconfig": "^1.4.0",
|
|
73
70
|
"eslint": "^9.39.2",
|
|
74
|
-
"
|
|
71
|
+
"tsdown": "^0.20.0-beta.4",
|
|
75
72
|
"typescript": "^5.9.3"
|
|
76
73
|
},
|
|
77
74
|
"scripts": {
|
|
78
|
-
"build": "
|
|
79
|
-
"dev": "
|
|
75
|
+
"build": "tsdown --minify",
|
|
76
|
+
"dev": "tsdown --watch",
|
|
80
77
|
"lint": "publint"
|
|
81
78
|
}
|
|
82
79
|
}
|
package/dist/index.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var w=Object.create;var a=Object.defineProperty;var B=Object.getOwnPropertyDescriptor;var T=Object.getOwnPropertyNames;var E=Object.getPrototypeOf,M=Object.prototype.hasOwnProperty;var n=(r,e)=>a(r,"name",{value:e,configurable:!0});var A=(r,e)=>{for(var s in e)a(r,s,{get:e[s],enumerable:!0})},b=(r,e,s,m)=>{if(e&&typeof e=="object"||typeof e=="function")for(let u of T(e))!M.call(r,u)&&u!==s&&a(r,u,{get:()=>e[u],enumerable:!(m=B(e,u))||m.enumerable});return r},t=(r,e,s)=>(b(r,e,"default"),s&&b(s,e,"default")),l=(r,e,s)=>(s=r!=null?w(E(r)):{},b(e||!r||!r.__esModule?a(s,"default",{value:r,enumerable:!0}):s,r)),I=r=>b(a({},"__esModule",{value:!0}),r);var o={};A(o,{default:()=>L,graphql:()=>p,playwright:()=>f,storybook:()=>v,turbo:()=>c,vitest:()=>d});module.exports=I(o);var G=l(require("@zemd/eslint-react"),1);var i=l(require("@graphql-eslint/eslint-plugin"),1),z=require("@zemd/eslint-common");function p({files:r=[z.GLOB_GQL]}={}){return[{name:"zemd/graphql/setup",files:r,plugins:{"@graphql-eslint":i.default},languageOptions:{parser:i.default.parser}},{name:"zemd/graphql/rules-schema",files:r,rules:{...i.default.configs["flat/schema-recommended"].rules}},{name:"zemd/graphql/rules-operations",files:r,rules:{...i.default.configs["flat/operations-recommended"].rules}}]}n(p,"graphql");var O=require("@zemd/eslint-common"),k=l(require("eslint-plugin-playwright"),1);function f({files:r=[O.GLOB_TEST]}={}){return[{name:"zemd/playwright/rules",files:r,plugins:{playwright:k.default},rules:{...k.default.configs["flat/recommended"].rules}}]}n(f,"playwright");var x=l(require("eslint-plugin-turbo"),1);function c({allowList:r=["^ENV_[A-Z]+$"]}={}){return[{name:"zemd/turbo/ignores",ignores:["**/.turbo/**"]},{name:"zemd/turbo/rules",files:["**/turbo.json"],plugins:{turbo:x},rules:{...x.configs["flat/recommended"].rules,"turbo/no-undeclared-env-vars":["error",{allowList:r}]}}]}n(c,"turbo");var q=require("@zemd/eslint-common"),y=l(require("@vitest/eslint-plugin"),1);function d({files:r=[q.GLOB_TEST],enableTypeChecking:e=!0}={}){return[{name:"zemd/vitest/rules",files:r,plugins:{vitest:y.default},rules:y.default.configs.recommended.rules},...e?[{name:"zemd/vitest/setup",files:r,settings:{vitest:{typecheck:!0}},languageOptions:{globals:{...y.default.environments.env.globals}}}]:[]]}n(d,"vitest");t(o,require("@zemd/eslint-react"),module.exports);var h=require("@zemd/eslint-common"),g=l(require("eslint-plugin-storybook"),1);function v({filesMain:r=[h.GLOB_MAIN],filesStories:e=[h.GLOB_STORIES]}={}){let[,s,m]=g.default.configs["flat/recommended"],[,u,S,_]=g.default.configs["flat/csf-strict"];return[{...m,name:"zemd/storybook/rules-main",plugins:{storybook:g.default},files:r,rules:{...m?.rules,...S?.rules}},{...s,name:"zemd/storybook/rules-stories",plugins:{storybook:g.default},files:e,rules:{...s?.rules,...u?.rules,..._?.rules,"storybook/csf-component":"error","storybook/hierarchy-separator":"error","storybook/no-redundant-story-name":"error","storybook/prefer-pascal-case":"error"}}]}n(v,"storybook");function L(){return[...(0,G.default)(),...p(),...f(),...c(),...d()]}n(L,"fullstack");0&&(module.exports={graphql,playwright,storybook,turbo,vitest,...require("@zemd/eslint-react")});
|
package/dist/index.d.cts
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { Linter } from 'eslint';
|
|
2
|
-
export * from '@zemd/eslint-react';
|
|
3
|
-
|
|
4
|
-
type GraphQlOptions = {
|
|
5
|
-
files: string[];
|
|
6
|
-
};
|
|
7
|
-
declare function graphql({ files, }?: Partial<GraphQlOptions>): Array<Linter.Config>;
|
|
8
|
-
|
|
9
|
-
type PlaywrightConfig = {
|
|
10
|
-
files: string[];
|
|
11
|
-
};
|
|
12
|
-
declare function playwright({ files, }?: Partial<PlaywrightConfig>): Array<Linter.Config>;
|
|
13
|
-
|
|
14
|
-
type TurboOptions = {
|
|
15
|
-
allowList: string[];
|
|
16
|
-
};
|
|
17
|
-
declare function turbo({ allowList, }?: Partial<TurboOptions>): Array<Linter.Config>;
|
|
18
|
-
|
|
19
|
-
type VitestConfig = {
|
|
20
|
-
files: string[];
|
|
21
|
-
enableTypeChecking: boolean;
|
|
22
|
-
};
|
|
23
|
-
declare function vitest({ files, enableTypeChecking, }?: Partial<VitestConfig>): Array<Linter.Config>;
|
|
24
|
-
|
|
25
|
-
type StorybookOptions = {
|
|
26
|
-
filesMain: string[];
|
|
27
|
-
filesStories: string[];
|
|
28
|
-
};
|
|
29
|
-
declare function storybook({ filesMain, filesStories, }?: Partial<StorybookOptions>): Array<Linter.Config>;
|
|
30
|
-
|
|
31
|
-
declare function fullstack(): Array<Linter.Config>;
|
|
32
|
-
|
|
33
|
-
export { fullstack as default, graphql, playwright, storybook, turbo, vitest };
|
package/dist/index.d.ts
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { Linter } from 'eslint';
|
|
2
|
-
export * from '@zemd/eslint-react';
|
|
3
|
-
|
|
4
|
-
type GraphQlOptions = {
|
|
5
|
-
files: string[];
|
|
6
|
-
};
|
|
7
|
-
declare function graphql({ files, }?: Partial<GraphQlOptions>): Array<Linter.Config>;
|
|
8
|
-
|
|
9
|
-
type PlaywrightConfig = {
|
|
10
|
-
files: string[];
|
|
11
|
-
};
|
|
12
|
-
declare function playwright({ files, }?: Partial<PlaywrightConfig>): Array<Linter.Config>;
|
|
13
|
-
|
|
14
|
-
type TurboOptions = {
|
|
15
|
-
allowList: string[];
|
|
16
|
-
};
|
|
17
|
-
declare function turbo({ allowList, }?: Partial<TurboOptions>): Array<Linter.Config>;
|
|
18
|
-
|
|
19
|
-
type VitestConfig = {
|
|
20
|
-
files: string[];
|
|
21
|
-
enableTypeChecking: boolean;
|
|
22
|
-
};
|
|
23
|
-
declare function vitest({ files, enableTypeChecking, }?: Partial<VitestConfig>): Array<Linter.Config>;
|
|
24
|
-
|
|
25
|
-
type StorybookOptions = {
|
|
26
|
-
filesMain: string[];
|
|
27
|
-
filesStories: string[];
|
|
28
|
-
};
|
|
29
|
-
declare function storybook({ filesMain, filesStories, }?: Partial<StorybookOptions>): Array<Linter.Config>;
|
|
30
|
-
|
|
31
|
-
declare function fullstack(): Array<Linter.Config>;
|
|
32
|
-
|
|
33
|
-
export { fullstack as default, graphql, playwright, storybook, turbo, vitest };
|
package/dist/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var h=Object.defineProperty;var e=(r,o)=>h(r,"name",{value:o,configurable:!0});import q from"@zemd/eslint-react";import t from"@graphql-eslint/eslint-plugin";import{GLOB_GQL as k}from"@zemd/eslint-common";function s({files:r=[k]}={}){return[{name:"zemd/graphql/setup",files:r,plugins:{"@graphql-eslint":t},languageOptions:{parser:t.parser}},{name:"zemd/graphql/rules-schema",files:r,rules:{...t.configs["flat/schema-recommended"].rules}},{name:"zemd/graphql/rules-operations",files:r,rules:{...t.configs["flat/operations-recommended"].rules}}]}e(s,"graphql");import{GLOB_TEST as x}from"@zemd/eslint-common";import c from"eslint-plugin-playwright";function n({files:r=[x]}={}){return[{name:"zemd/playwright/rules",files:r,plugins:{playwright:c},rules:{...c.configs["flat/recommended"].rules}}]}e(n,"playwright");import*as a from"eslint-plugin-turbo";function u({allowList:r=["^ENV_[A-Z]+$"]}={}){return[{name:"zemd/turbo/ignores",ignores:["**/.turbo/**"]},{name:"zemd/turbo/rules",files:["**/turbo.json"],plugins:{turbo:a},rules:{...a.configs["flat/recommended"].rules,"turbo/no-undeclared-env-vars":["error",{allowList:r}]}}]}e(u,"turbo");import{GLOB_TEST as v}from"@zemd/eslint-common";import i from"@vitest/eslint-plugin";function l({files:r=[v],enableTypeChecking:o=!0}={}){return[{name:"zemd/vitest/rules",files:r,plugins:{vitest:i},rules:i.configs.recommended.rules},...o?[{name:"zemd/vitest/setup",files:r,settings:{vitest:{typecheck:!0}},languageOptions:{globals:{...i.environments.env.globals}}}]:[]]}e(l,"vitest");export*from"@zemd/eslint-react";import{GLOB_MAIN as z,GLOB_STORIES as O}from"@zemd/eslint-common";import m from"eslint-plugin-storybook";function d({filesMain:r=[z],filesStories:o=[O]}={}){let[,p,f]=m.configs["flat/recommended"],[,g,b,y]=m.configs["flat/csf-strict"];return[{...f,name:"zemd/storybook/rules-main",plugins:{storybook:m},files:r,rules:{...f?.rules,...b?.rules}},{...p,name:"zemd/storybook/rules-stories",plugins:{storybook:m},files:o,rules:{...p?.rules,...g?.rules,...y?.rules,"storybook/csf-component":"error","storybook/hierarchy-separator":"error","storybook/no-redundant-story-name":"error","storybook/prefer-pascal-case":"error"}}]}e(d,"storybook");function G(){return[...q(),...s(),...n(),...u(),...l()]}e(G,"fullstack");export{G as default,s as graphql,n as playwright,d as storybook,u as turbo,l as vitest};
|
package/dist/tailwind.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var d=Object.create;var o=Object.defineProperty;var f=Object.getOwnPropertyDescriptor;var u=Object.getOwnPropertyNames;var p=Object.getPrototypeOf,g=Object.prototype.hasOwnProperty;var r=(s,e)=>o(s,"name",{value:e,configurable:!0});var w=(s,e)=>{for(var n in e)o(s,n,{get:e[n],enumerable:!0})},l=(s,e,n,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of u(e))!g.call(s,i)&&i!==n&&o(s,i,{get:()=>e[i],enumerable:!(a=f(e,i))||a.enumerable});return s};var j=(s,e,n)=>(n=s!=null?d(p(s)):{},l(e||!s||!s.__esModule?o(n,"default",{value:s,enumerable:!0}):n,s)),O=s=>l(o({},"__esModule",{value:!0}),s);var L={};w(L,{default:()=>m});module.exports=O(L);var c=require("@zemd/eslint-common"),t=j(require("eslint-plugin-tailwindcss"),1);function m({files:s=[c.GLOB_SRC_ALL]}={}){let[,e]=t.default.configs["flat/recommended"];return[{name:"zemd/tailwindcss/files",languageOptions:{sourceType:"commonjs"},files:["tailwind.config.js","postcss.config.js"]},{name:"zemd/tailwindcss/rules",files:s,plugins:{tailwindcss:t.default},languageOptions:{parserOptions:{ecmaFeatures:{jsx:!0}}},rules:{...e.rules,"tailwindcss/classnames-order":"off"}}]}r(m,"tailwind");
|
package/dist/tailwind.d.cts
DELETED
package/dist/tailwind.d.ts
DELETED
package/dist/tailwind.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var o=Object.defineProperty;var n=(s,e)=>o(s,"name",{value:e,configurable:!0});import{GLOB_SRC_ALL as t}from"@zemd/eslint-common";import i from"eslint-plugin-tailwindcss";function a({files:s=[t]}={}){let[,e]=i.configs["flat/recommended"];return[{name:"zemd/tailwindcss/files",languageOptions:{sourceType:"commonjs"},files:["tailwind.config.js","postcss.config.js"]},{name:"zemd/tailwindcss/rules",files:s,plugins:{tailwindcss:i},languageOptions:{parserOptions:{ecmaFeatures:{jsx:!0}}},rules:{...e.rules,"tailwindcss/classnames-order":"off"}}]}n(a,"tailwind");export{a as default};
|