@rootreeweb/linting 5.2.0 → 5.3.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/CHANGELOG.md +6 -0
- package/dist/esm/eslint/index.d.ts +2 -1
- package/dist/esm/eslint/index.d.ts.map +1 -1
- package/dist/esm/eslint/index.js +2 -0
- package/dist/esm/eslint/index.js.map +1 -1
- package/dist/esm/eslint/nodeTS.d.ts +3 -0
- package/dist/esm/eslint/nodeTS.d.ts.map +1 -0
- package/dist/esm/eslint/nodeTS.js +6 -0
- package/dist/esm/eslint/nodeTS.js.map +1 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -10,7 +10,8 @@ export * from "./tailwind.js";
|
|
|
10
10
|
export * from "./turbo.js";
|
|
11
11
|
export { composeConfig } from "./utils.js";
|
|
12
12
|
export declare const presetBase: Linter.Config[];
|
|
13
|
-
export declare const
|
|
13
|
+
export declare const presetNode: Linter.Config<import("@eslint/core").RulesConfig>[];
|
|
14
|
+
export declare const presetReactLite: Linter.Config<import("@eslint/core").RulesConfig>[];
|
|
14
15
|
export declare const getPresetReact: (options: TailwindOptions) => Linter.Config[];
|
|
15
16
|
export declare const getPresetNext: (options: TailwindOptions) => Linter.Config[];
|
|
16
17
|
export declare const getPresetAstro: (options: TailwindOptions) => Linter.Config[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/eslint/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/eslint/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAQrC,OAAO,EAAe,KAAK,eAAe,EAAE,MAAM,eAAe,CAAC;AAGlE,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,kBAAkB,CAAC;AACjC,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAE3C,eAAO,MAAM,UAAU,EAAE,MAAM,CAAC,MAAM,EAAyB,CAAC;AAChE,eAAO,MAAM,UAAU,qDAAoC,CAAC;AAC5D,eAAO,MAAM,eAAe,qDAAmC,CAAC;AAChE,eAAO,MAAM,cAAc,YAAa,eAAe,KAAG,MAAM,CAAC,MAAM,EAChB,CAAC;AACxD,eAAO,MAAM,aAAa,YAAa,eAAe,KAAG,MAAM,CAAC,MAAM,EACzB,CAAC;AAC9C,eAAO,MAAM,cAAc,YAAa,eAAe,KAAG,MAAM,CAAC,MAAM,EACzB,CAAC"}
|
package/dist/esm/eslint/index.js
CHANGED
|
@@ -2,6 +2,7 @@ import { astro } from "./astro.js";
|
|
|
2
2
|
import { basic } from "./basic.js";
|
|
3
3
|
import { jsdoc } from "./jsdoc.js";
|
|
4
4
|
import { next } from "./next.js";
|
|
5
|
+
import { nodeTS } from "./nodeTS.js";
|
|
5
6
|
import { react } from "./react.js";
|
|
6
7
|
import { getTailwind } from "./tailwind.js";
|
|
7
8
|
import { composeConfig } from "./utils.js";
|
|
@@ -15,6 +16,7 @@ export * from "./tailwind.js";
|
|
|
15
16
|
export * from "./turbo.js";
|
|
16
17
|
export { composeConfig } from "./utils.js";
|
|
17
18
|
export const presetBase = [...basic, ...jsdoc];
|
|
19
|
+
export const presetNode = composeConfig(presetBase, nodeTS);
|
|
18
20
|
export const presetReactLite = composeConfig(presetBase, react);
|
|
19
21
|
export const getPresetReact = (options) => composeConfig(presetBase, react, getTailwind(options));
|
|
20
22
|
export const getPresetNext = (options) => composeConfig(getPresetReact(options), next);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/eslint/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,WAAW,EAAwB,MAAM,eAAe,CAAC;AAClE,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAE3C,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,kBAAkB,CAAC;AACjC,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAE3C,MAAM,CAAC,MAAM,UAAU,GAAoB,CAAC,GAAG,KAAK,EAAE,GAAG,KAAK,CAAC,CAAC;AAChE,MAAM,CAAC,MAAM,eAAe,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/eslint/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,WAAW,EAAwB,MAAM,eAAe,CAAC;AAClE,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAE3C,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,kBAAkB,CAAC;AACjC,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAE3C,MAAM,CAAC,MAAM,UAAU,GAAoB,CAAC,GAAG,KAAK,EAAE,GAAG,KAAK,CAAC,CAAC;AAChE,MAAM,CAAC,MAAM,UAAU,GAAG,aAAa,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC;AAC5D,MAAM,CAAC,MAAM,eAAe,GAAG,aAAa,CAAC,UAAU,EAAE,KAAK,CAAC,CAAC;AAChE,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,OAAwB,EAAmB,EAAE,CAC3E,aAAa,CAAC,UAAU,EAAE,KAAK,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC,CAAC;AACxD,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,OAAwB,EAAmB,EAAE,CAC1E,aAAa,CAAC,cAAc,CAAC,OAAO,CAAC,EAAE,IAAI,CAAC,CAAC;AAC9C,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,OAAwB,EAAmB,EAAE,CAC3E,aAAa,CAAC,cAAc,CAAC,OAAO,CAAC,EAAE,KAAK,CAAC,CAAC","sourcesContent":["import type { Linter } from \"eslint\";\n\nimport { astro } from \"./astro.js\";\nimport { basic } from \"./basic.js\";\nimport { jsdoc } from \"./jsdoc.js\";\nimport { next } from \"./next.js\";\nimport { nodeTS } from \"./nodeTS.js\";\nimport { react } from \"./react.js\";\nimport { getTailwind, type TailwindOptions } from \"./tailwind.js\";\nimport { composeConfig } from \"./utils.js\";\n\nexport * from \"./astro.js\";\nexport * from \"./basic.js\";\nexport * from \"./jsdoc.js\";\nexport * from \"./next.js\";\nexport * from \"./packageJson.js\";\nexport * from \"./react.js\";\nexport * from \"./tailwind.js\";\nexport * from \"./turbo.js\";\nexport { composeConfig } from \"./utils.js\";\n\nexport const presetBase: Linter.Config[] = [...basic, ...jsdoc];\nexport const presetNode = composeConfig(presetBase, nodeTS);\nexport const presetReactLite = composeConfig(presetBase, react);\nexport const getPresetReact = (options: TailwindOptions): Linter.Config[] =>\n\tcomposeConfig(presetBase, react, getTailwind(options));\nexport const getPresetNext = (options: TailwindOptions): Linter.Config[] =>\n\tcomposeConfig(getPresetReact(options), next);\nexport const getPresetAstro = (options: TailwindOptions): Linter.Config[] =>\n\tcomposeConfig(getPresetReact(options), astro);\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nodeTS.d.ts","sourceRoot":"","sources":["../../../src/eslint/nodeTS.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAErC,eAAO,MAAM,MAAM,EAAE,MAAM,CAAC,MAI3B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nodeTS.js","sourceRoot":"","sources":["../../../src/eslint/nodeTS.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,MAAM,GAAkB;IACpC,KAAK,EAAE;QACN,mBAAmB,EAAE,CAAC,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,EAAE,QAAQ,EAAE,CAAC;KAC1D;CACD,CAAC","sourcesContent":["import type { Linter } from \"eslint\";\n\nexport const nodeTS: Linter.Config = {\n\trules: {\n\t\t\"import/extensions\": [\"error\", \"always\", { ts: \"always\" }],\n\t},\n};\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rootreeweb/linting",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.3.0",
|
|
4
4
|
"description": "Shared configurations for ESLint and Stylelint",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"repository": "github:rootreeweb/meta-tools",
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
"typescript-eslint": "^8.71.2"
|
|
81
81
|
},
|
|
82
82
|
"devDependencies": {
|
|
83
|
-
"@rootreeweb/tsconfigs": "^3.
|
|
83
|
+
"@rootreeweb/tsconfigs": "^3.4.0",
|
|
84
84
|
"@types/eslint-plugin-jsx-a11y": "^6.10.1",
|
|
85
85
|
"@types/eslint-plugin-security": "^3.0.1",
|
|
86
86
|
"@types/node": "^26.6.5",
|