@rootreeweb/linting 5.1.9 → 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 CHANGED
@@ -1,5 +1,21 @@
1
1
  # @rootreeweb/linting
2
2
 
3
+ ## 5.3.0
4
+
5
+ ### Minor Changes
6
+
7
+ - Add a preset for packages run directly by node.
8
+
9
+ ## 5.2.0
10
+
11
+ ### Minor Changes
12
+
13
+ - New package and security rules
14
+
15
+ ### Patch Changes
16
+
17
+ - Chore: Dependency updates
18
+
3
19
  ## 5.1.9
4
20
 
5
21
  ### Patch Changes
@@ -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 presetReactLite: Linter.Config[];
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;AAOrC,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,eAAe,EAAE,MAAM,CAAC,MAAM,EAG1C,CAAC;AACF,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"}
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"}
@@ -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,GAAoB,aAAa,CAC5D,UAAU,EACV,KAAK,CACL,CAAC;AACF,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 { 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 presetReactLite: Linter.Config[] = composeConfig(\n\tpresetBase,\n\treact,\n);\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"]}
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,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\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,3 @@
1
+ import type { Linter } from "eslint";
2
+ export declare const nodeTS: Linter.Config;
3
+ //# sourceMappingURL=nodeTS.d.ts.map
@@ -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,6 @@
1
+ export const nodeTS = {
2
+ rules: {
3
+ "import/extensions": ["error", "always", { ts: "always" }],
4
+ },
5
+ };
6
+ //# sourceMappingURL=nodeTS.js.map
@@ -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.1.9",
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",
@@ -23,13 +23,13 @@
23
23
  },
24
24
  "scripts": {
25
25
  "build": "yarn run clean && yarn run build:esm",
26
- "build:esm": "tsgo -p ./configs/tsconfig.esm.json",
26
+ "build:esm": "tsgo --project ./configs/tsconfig.esm.json",
27
27
  "check": "tsgo --noEmit",
28
28
  "clean": "del-cli ./dist",
29
29
  "format": "prettier . --write --cache",
30
30
  "lint": "eslint --fix --cache",
31
31
  "prepare": "husky",
32
- "release": "yarn dlx -p @rootreeweb/rt-node-lib release ${0}",
32
+ "release": "yarn dlx --package @rootreeweb/rt-node-lib release ${0}",
33
33
  "test": "vitest run --coverage",
34
34
  "test:watch": "vitest --coverage --ui"
35
35
  },
@@ -46,30 +46,30 @@
46
46
  "dependencies": {
47
47
  "@eslint/js": "^10.0.1",
48
48
  "@ianvs/prettier-plugin-sort-imports": "^4.7.1",
49
- "@next/eslint-plugin-next": "^16.3.5",
49
+ "@next/eslint-plugin-next": "^16.4.0",
50
50
  "@rootreeweb/js-lib": "^4.0.19",
51
- "@tanstack/eslint-plugin-query": "^5.103.2",
51
+ "@tanstack/eslint-plugin-query": "^5.104.2",
52
52
  "@vitest/eslint-plugin": "^1.6.27",
53
53
  "eslint-import-resolver-typescript": "^4.4.5",
54
- "eslint-package-json": "^1.0.0",
54
+ "eslint-package-json": "^3.0.0",
55
55
  "eslint-plugin-astro": "^3.2.1",
56
56
  "eslint-plugin-import": "^2.32.0",
57
- "eslint-plugin-jsdoc": "^64.5.4",
57
+ "eslint-plugin-jsdoc": "^65.3.2",
58
58
  "eslint-plugin-jsx-a11y": "^6.10.2",
59
- "eslint-plugin-perfectionist": "^5.11.1",
59
+ "eslint-plugin-perfectionist": "^5.12.1",
60
60
  "eslint-plugin-promise": "^7.3.0",
61
61
  "eslint-plugin-react": "^7.37.5",
62
62
  "eslint-plugin-react-compiler": "^19.1.0-rc.2",
63
63
  "eslint-plugin-react-hooks": "^7.1.1",
64
64
  "eslint-plugin-react-you-might-not-need-an-effect": "^1.0.2",
65
- "eslint-plugin-security": "^4.0.1",
66
- "eslint-plugin-sonarjs": "^4.2.1",
65
+ "eslint-plugin-security": "^4.2.0",
66
+ "eslint-plugin-sonarjs": "^4.2.2",
67
67
  "eslint-plugin-tailwindcss": "^4.4.0",
68
68
  "eslint-plugin-testing-library": "^7.16.2",
69
- "eslint-plugin-turbo": "^2.11.2",
70
- "globals": "^17.12.0",
71
- "postcss": "^8.5.28",
72
- "prettier-plugin-astro": "^1.0.1",
69
+ "eslint-plugin-turbo": "^2.11.7",
70
+ "globals": "^17.13.0",
71
+ "postcss": "^8.5.30",
72
+ "prettier-plugin-astro": "^1.1.1",
73
73
  "prettier-plugin-jsdoc": "^1.8.1",
74
74
  "prettier-plugin-tailwindcss": "^0.8.1",
75
75
  "stylelint-config-standard": "^40.0.0",
@@ -77,36 +77,36 @@
77
77
  "stylelint-config-tailwindcss": "^1.0.1",
78
78
  "stylelint-prettier": "^5.0.3",
79
79
  "tailwindcss": "^4.3.3",
80
- "typescript-eslint": "^8.70.0"
80
+ "typescript-eslint": "^8.71.2"
81
81
  },
82
82
  "devDependencies": {
83
- "@rootreeweb/tsconfigs": "^3.3.23",
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
- "@types/node": "^26.6.2",
86
+ "@types/node": "^26.6.5",
87
87
  "@types/react": "^19.3.0",
88
88
  "@typescript/native-preview": "^7.0.0-dev.20260707.2",
89
- "@vitest/coverage-v8": "^5.0.1",
90
- "@vitest/ui": "^5.0.1",
91
- "del-cli": "^7.0.0",
92
- "eslint": "^10.11.0",
89
+ "@vitest/coverage-v8": "^5.0.4",
90
+ "@vitest/ui": "^5.0.4",
91
+ "del-cli": "^8.0.1",
92
+ "eslint": "^10.12.0",
93
93
  "husky": "^9.1.7",
94
- "knip": "^6.37.0",
95
- "lint-staged": "^17.5.1",
94
+ "knip": "^6.41.0",
95
+ "lint-staged": "^17.6.0",
96
96
  "prettier": "~3.8.5",
97
97
  "react": "^19.3.0",
98
- "stylelint": "~17.15.0",
99
- "turbo": "~2.11.2",
98
+ "stylelint": "~17.16.0",
99
+ "turbo": "~2.11.7",
100
100
  "typescript": "^6.0.3",
101
- "vite": "^8.3.0",
102
- "vitest": "^5.0.1"
101
+ "vite": "^8.3.4",
102
+ "vitest": "^5.0.4"
103
103
  },
104
104
  "peerDependencies": {
105
105
  "eslint": "^10",
106
106
  "husky": "^9.1.7",
107
107
  "lint-staged": "^17.2.0",
108
108
  "prettier": "~3.8.0",
109
- "stylelint": "~17.15.0",
109
+ "stylelint": "~17.16.0",
110
110
  "turbo": "~2.11.2"
111
111
  },
112
112
  "peerDependenciesMeta": {