@danielwaltz/eslint-config 0.1.2 → 1.2.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,6 +1,38 @@
1
1
  # Changelog
2
2
 
3
3
 
4
+ ## v1.2.0
5
+
6
+ [compare changes](https://github.com/danielwaltz/eslint-config/compare/v0.2.0...v1.2.0)
7
+
8
+ ### 🚀 Enhancements
9
+
10
+ - Add and enable erasable syntax only plugin and config ([f515da7](https://github.com/danielwaltz/eslint-config/commit/f515da7))
11
+
12
+ ### ❤️ Contributors
13
+
14
+ - Daniel Waltz ([@danielwaltz](https://github.com/danielwaltz))
15
+
16
+ ## v0.2.0
17
+
18
+ [compare changes](https://github.com/danielwaltz/eslint-config/compare/v0.1.2...v0.2.0)
19
+
20
+ ### 🚀 Enhancements
21
+
22
+ - ⚠️ Forward options to sxzz config ([a76b765](https://github.com/danielwaltz/eslint-config/commit/a76b765))
23
+
24
+ ### 🏡 Chore
25
+
26
+ - Refresh lockfile ([1e25978](https://github.com/danielwaltz/eslint-config/commit/1e25978))
27
+
28
+ #### ⚠️ Breaking Changes
29
+
30
+ - ⚠️ Forward options to sxzz config ([a76b765](https://github.com/danielwaltz/eslint-config/commit/a76b765))
31
+
32
+ ### ❤️ Contributors
33
+
34
+ - Daniel Waltz ([@danielwaltz](https://github.com/danielwaltz))
35
+
4
36
  ## v0.1.2
5
37
 
6
38
  [compare changes](https://github.com/danielwaltz/eslint-config/compare/v0.1.1...v0.1.2)
package/dist/index.d.mts CHANGED
@@ -1,15 +1,16 @@
1
1
  import * as eslint from 'eslint';
2
2
  import { Linter } from 'eslint';
3
+ import { sxzz } from '@sxzz/eslint-config';
4
+ export * from '@sxzz/eslint-config';
3
5
  import * as eslint_flat_config_utils from 'eslint-flat-config-utils';
4
6
  import { DefaultConfigNamesMap, ResolvableFlatConfig } from 'eslint-flat-config-utils';
5
7
  export { DefaultConfigNamesMap, defineFlatConfig } from 'eslint-flat-config-utils';
6
- export * from '@sxzz/eslint-config';
7
8
 
8
9
  type BaseConfig = Linter.Config;
9
10
  type BaseConfigNames = keyof DefaultConfigNamesMap;
10
11
 
11
12
  declare function defineFlatConfigs<const TConfig extends BaseConfig = BaseConfig, const TConfigNames extends string = BaseConfigNames>(...configs: ResolvableFlatConfig<TConfig>[]): eslint_flat_config_utils.FlatConfigComposer<eslint.Linter.Config<eslint.Linter.RulesRecord> extends TConfig ? TConfig : eslint.Linter.Config<eslint.Linter.RulesRecord>, TConfigNames>;
12
13
 
13
- declare function danielwaltz<const TConfig extends BaseConfig = BaseConfig, const TConfigNames extends string = BaseConfigNames>(...userConfigs: ResolvableFlatConfig<TConfig>[]): Promise<(eslint.Linter.Config<eslint.Linter.RulesRecord> extends TConfig ? TConfig : eslint.Linter.Config<eslint.Linter.RulesRecord>)[]>;
14
+ declare function danielwaltz<const TConfig extends BaseConfig = BaseConfig, const TConfigNames extends string = BaseConfigNames>(...params: Parameters<typeof sxzz>): Promise<(eslint.Linter.Config<eslint.Linter.RulesRecord> extends TConfig ? TConfig : eslint.Linter.Config<eslint.Linter.RulesRecord>)[]>;
14
15
 
15
16
  export { danielwaltz, defineFlatConfigs };
package/dist/index.d.ts CHANGED
@@ -1,15 +1,16 @@
1
1
  import * as eslint from 'eslint';
2
2
  import { Linter } from 'eslint';
3
+ import { sxzz } from '@sxzz/eslint-config';
4
+ export * from '@sxzz/eslint-config';
3
5
  import * as eslint_flat_config_utils from 'eslint-flat-config-utils';
4
6
  import { DefaultConfigNamesMap, ResolvableFlatConfig } from 'eslint-flat-config-utils';
5
7
  export { DefaultConfigNamesMap, defineFlatConfig } from 'eslint-flat-config-utils';
6
- export * from '@sxzz/eslint-config';
7
8
 
8
9
  type BaseConfig = Linter.Config;
9
10
  type BaseConfigNames = keyof DefaultConfigNamesMap;
10
11
 
11
12
  declare function defineFlatConfigs<const TConfig extends BaseConfig = BaseConfig, const TConfigNames extends string = BaseConfigNames>(...configs: ResolvableFlatConfig<TConfig>[]): eslint_flat_config_utils.FlatConfigComposer<eslint.Linter.Config<eslint.Linter.RulesRecord> extends TConfig ? TConfig : eslint.Linter.Config<eslint.Linter.RulesRecord>, TConfigNames>;
12
13
 
13
- declare function danielwaltz<const TConfig extends BaseConfig = BaseConfig, const TConfigNames extends string = BaseConfigNames>(...userConfigs: ResolvableFlatConfig<TConfig>[]): Promise<(eslint.Linter.Config<eslint.Linter.RulesRecord> extends TConfig ? TConfig : eslint.Linter.Config<eslint.Linter.RulesRecord>)[]>;
14
+ declare function danielwaltz<const TConfig extends BaseConfig = BaseConfig, const TConfigNames extends string = BaseConfigNames>(...params: Parameters<typeof sxzz>): Promise<(eslint.Linter.Config<eslint.Linter.RulesRecord> extends TConfig ? TConfig : eslint.Linter.Config<eslint.Linter.RulesRecord>)[]>;
14
15
 
15
16
  export { danielwaltz, defineFlatConfigs };
package/dist/index.mjs CHANGED
@@ -1,8 +1,18 @@
1
1
  import { sxzz, hasVue } from '@sxzz/eslint-config';
2
2
  export * from '@sxzz/eslint-config';
3
+ import erasableSyntaxOnlyPlugin from 'eslint-plugin-erasable-syntax-only';
3
4
  import { composer } from 'eslint-flat-config-utils';
4
5
  export { defineFlatConfig } from 'eslint-flat-config-utils';
5
6
 
7
+ function typescriptConfigs() {
8
+ return [
9
+ {
10
+ name: "danielwaltz/erasable-syntax-only",
11
+ ...erasableSyntaxOnlyPlugin.configs.recommended
12
+ }
13
+ ];
14
+ }
15
+
6
16
  function unicornConfigs() {
7
17
  return [
8
18
  {
@@ -108,9 +118,10 @@ function defineFlatConfigs(...configs) {
108
118
  return composer(...configs);
109
119
  }
110
120
 
111
- async function danielwaltz(...userConfigs) {
112
- const composer = defineFlatConfigs(...userConfigs);
113
- composer.prepend(await sxzz());
121
+ async function danielwaltz(...params) {
122
+ const composer = defineFlatConfigs();
123
+ composer.prepend(await sxzz(...params));
124
+ composer.append(typescriptConfigs());
114
125
  composer.append(unicornConfigs());
115
126
  if (hasVue()) composer.append(vueConfigs());
116
127
  return composer;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@danielwaltz/eslint-config",
3
- "version": "0.1.2",
3
+ "version": "1.2.0",
4
4
  "packageManager": "pnpm@10.6.1",
5
5
  "type": "module",
6
6
  "keywords": [
@@ -33,7 +33,7 @@
33
33
  "type-check": "tsc --noEmit",
34
34
  "prepack": "pnpm build",
35
35
  "test": "pnpm prepack && pnpm lint && pnpm type-check && pnpx publint@latest && pnpx @arethetypeswrong/cli@latest --pack --profile esm-only",
36
- "release": "pnpm test && changelogen --release --push --publish && changelogen gh release"
36
+ "release": "pnpm test && changelogen --release --push --publish"
37
37
  },
38
38
  "peerDependencies": {
39
39
  "eslint": ">=9",
@@ -41,7 +41,8 @@
41
41
  },
42
42
  "dependencies": {
43
43
  "@sxzz/eslint-config": "^5.3.0",
44
- "eslint-flat-config-utils": "^2.0.1"
44
+ "eslint-flat-config-utils": "^2.0.1",
45
+ "eslint-plugin-erasable-syntax-only": "^0.3.0"
45
46
  },
46
47
  "devDependencies": {
47
48
  "@tsconfig/node22": "^22.0.0",