eslint-config-typed 5.5.0 → 5.6.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.
@@ -1,3 +1,29 @@
1
1
  import { type FlatConfig } from '../types/index.mjs';
2
+ /**
3
+ * @deprecated Use the standalone
4
+ * [`eslint-plugin-ts-data-forge`](https://www.npmjs.com/package/eslint-plugin-ts-data-forge)
5
+ * package instead. It contains the same rules but is versioned and released
6
+ * together with `ts-data-forge`, so the rules always match the `ts-data-forge`
7
+ * version you use. Register the plugin and enable the rules directly:
8
+ *
9
+ * ```js
10
+ * // eslint.config.mjs
11
+ * import tsDataForge from 'eslint-plugin-ts-data-forge';
12
+ *
13
+ * export default [
14
+ * {
15
+ * plugins: { 'ts-data-forge': tsDataForge },
16
+ * rules: {
17
+ * 'ts-data-forge/prefer-arr-is-non-empty': 'error',
18
+ * 'ts-data-forge/prefer-is-record-and-has-key': 'error',
19
+ * // ...enable the rules you want
20
+ * },
21
+ * },
22
+ * ];
23
+ * ```
24
+ *
25
+ * This helper (and the bundled `ts-data-forge` rules) will be removed from
26
+ * `eslint-config-typed` in the next major version.
27
+ */
2
28
  export declare const eslintConfigForTsDataForge: (files?: readonly string[]) => FlatConfig;
3
29
  //# sourceMappingURL=ts-data-forge.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ts-data-forge.d.mts","sourceRoot":"","sources":["../../src/configs/ts-data-forge.mts"],"names":[],"mappings":"AACA,OAAO,EAAoB,KAAK,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAEvE,eAAO,MAAM,0BAA0B,GACrC,QAAQ,SAAS,MAAM,EAAE,KACxB,UAKU,CAAC"}
1
+ {"version":3,"file":"ts-data-forge.d.mts","sourceRoot":"","sources":["../../src/configs/ts-data-forge.mts"],"names":[],"mappings":"AACA,OAAO,EAAoB,KAAK,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAEvE;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,eAAO,MAAM,0BAA0B,GACrC,QAAQ,SAAS,MAAM,EAAE,KACxB,UAKU,CAAC"}
@@ -2,6 +2,32 @@ import { defineKnownRules } from '../types/define-known-rules.mjs';
2
2
  import '../rules/eslint-rules.mjs';
3
3
  import { eslintTsDataForgeRules } from '../rules/eslint-ts-data-forge-rules.mjs';
4
4
 
5
+ /**
6
+ * @deprecated Use the standalone
7
+ * [`eslint-plugin-ts-data-forge`](https://www.npmjs.com/package/eslint-plugin-ts-data-forge)
8
+ * package instead. It contains the same rules but is versioned and released
9
+ * together with `ts-data-forge`, so the rules always match the `ts-data-forge`
10
+ * version you use. Register the plugin and enable the rules directly:
11
+ *
12
+ * ```js
13
+ * // eslint.config.mjs
14
+ * import tsDataForge from 'eslint-plugin-ts-data-forge';
15
+ *
16
+ * export default [
17
+ * {
18
+ * plugins: { 'ts-data-forge': tsDataForge },
19
+ * rules: {
20
+ * 'ts-data-forge/prefer-arr-is-non-empty': 'error',
21
+ * 'ts-data-forge/prefer-is-record-and-has-key': 'error',
22
+ * // ...enable the rules you want
23
+ * },
24
+ * },
25
+ * ];
26
+ * ```
27
+ *
28
+ * This helper (and the bundled `ts-data-forge` rules) will be removed from
29
+ * `eslint-config-typed` in the next major version.
30
+ */
5
31
  const eslintConfigForTsDataForge = (files) => ({
6
32
  ...(files === undefined ? {} : { files }),
7
33
  rules: defineKnownRules({ ...eslintTsDataForgeRules }),
@@ -1 +1 @@
1
- {"version":3,"file":"ts-data-forge.mjs","sources":["../../src/configs/ts-data-forge.mts"],"sourcesContent":[null],"names":[],"mappings":";;;;MAGa,0BAA0B,GAAG,CACxC,KAAyB,MAExB;AACC,IAAA,IAAI,KAAK,KAAK,SAAS,GAAG,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC;AAEzC,IAAA,KAAK,EAAE,gBAAgB,CAAC,EAAE,GAAG,sBAAsB,EAAE,CAAC;AACvD,CAAA;;;;"}
1
+ {"version":3,"file":"ts-data-forge.mjs","sources":["../../src/configs/ts-data-forge.mts"],"sourcesContent":[null],"names":[],"mappings":";;;;AAGA;;;;;;;;;;;;;;;;;;;;;;;;;AAyBG;MACU,0BAA0B,GAAG,CACxC,KAAyB,MAExB;AACC,IAAA,IAAI,KAAK,KAAK,SAAS,GAAG,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC;AAEzC,IAAA,KAAK,EAAE,gBAAgB,CAAC,EAAE,GAAG,sBAAsB,EAAE,CAAC;AACvD,CAAA;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-typed",
3
- "version": "5.5.0",
3
+ "version": "5.6.0",
4
4
  "private": false,
5
5
  "keywords": [
6
6
  "typescript"
@@ -18,6 +18,10 @@
18
18
  "import": {
19
19
  "types": "./dist/types.d.mts",
20
20
  "default": "./dist/entry-point.mjs"
21
+ },
22
+ "default": {
23
+ "types": "./dist/types.d.mts",
24
+ "default": "./dist/entry-point.mjs"
21
25
  }
22
26
  },
23
27
  "./vitest-globals": {
@@ -34,6 +38,8 @@
34
38
  "vitest-globals.d.ts"
35
39
  ],
36
40
  "scripts": {
41
+ "agents:gen": "tsx ./scripts/cmd/gen-agents-md.mts",
42
+ "agents:sync": "tsx ./scripts/cmd/sync-agent-config.mts",
37
43
  "apply-type-transformations": "tsx ./scripts/gen-eslint-rules/codemod/apply-type-transformations.mts",
38
44
  "build": "tsx ./scripts/cmd/build.mts",
39
45
  "build:min": "tsx ./scripts/cmd/build.mts --skip-check",
@@ -107,7 +113,7 @@
107
113
  "eslint-plugin-jest": "^29.15.2",
108
114
  "eslint-plugin-jsx-a11y": "^6.10.2",
109
115
  "eslint-plugin-math": "^0.13.1",
110
- "eslint-plugin-n": "^18.2.1",
116
+ "eslint-plugin-n": "^18.2.2",
111
117
  "eslint-plugin-playwright": "^2.10.4",
112
118
  "eslint-plugin-prefer-arrow-functions": "^3.9.1",
113
119
  "eslint-plugin-promise": "^7.3.0",
@@ -187,5 +193,9 @@
187
193
  },
188
194
  "volta": {
189
195
  "node": "26.3.1"
196
+ },
197
+ "publishConfig": {
198
+ "access": "public",
199
+ "provenance": true
190
200
  }
191
201
  }
@@ -1,6 +1,32 @@
1
1
  import { eslintTsDataForgeRules } from '../rules/index.mjs';
2
2
  import { defineKnownRules, type FlatConfig } from '../types/index.mjs';
3
3
 
4
+ /**
5
+ * @deprecated Use the standalone
6
+ * [`eslint-plugin-ts-data-forge`](https://www.npmjs.com/package/eslint-plugin-ts-data-forge)
7
+ * package instead. It contains the same rules but is versioned and released
8
+ * together with `ts-data-forge`, so the rules always match the `ts-data-forge`
9
+ * version you use. Register the plugin and enable the rules directly:
10
+ *
11
+ * ```js
12
+ * // eslint.config.mjs
13
+ * import tsDataForge from 'eslint-plugin-ts-data-forge';
14
+ *
15
+ * export default [
16
+ * {
17
+ * plugins: { 'ts-data-forge': tsDataForge },
18
+ * rules: {
19
+ * 'ts-data-forge/prefer-arr-is-non-empty': 'error',
20
+ * 'ts-data-forge/prefer-is-record-and-has-key': 'error',
21
+ * // ...enable the rules you want
22
+ * },
23
+ * },
24
+ * ];
25
+ * ```
26
+ *
27
+ * This helper (and the bundled `ts-data-forge` rules) will be removed from
28
+ * `eslint-config-typed` in the next major version.
29
+ */
4
30
  export const eslintConfigForTsDataForge = (
5
31
  files?: readonly string[],
6
32
  ): FlatConfig =>