@danielwaltz/eslint-config 0.1.0 → 0.1.2

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,44 @@
1
1
  # Changelog
2
2
 
3
3
 
4
+ ## v0.1.2
5
+
6
+ [compare changes](https://github.com/danielwaltz/eslint-config/compare/v0.1.1...v0.1.2)
7
+
8
+ ### 🚀 Enhancements
9
+
10
+ - Await sxzz config ([24e910a](https://github.com/danielwaltz/eslint-config/commit/24e910a))
11
+ - Update sxzz config ([5682511](https://github.com/danielwaltz/eslint-config/commit/5682511))
12
+
13
+ ### 🩹 Fixes
14
+
15
+ - Strip `@types/eslint` ([6e77ce8](https://github.com/danielwaltz/eslint-config/commit/6e77ce8))
16
+
17
+ ### 🏡 Chore
18
+
19
+ - Bump node version ([8361f8c](https://github.com/danielwaltz/eslint-config/commit/8361f8c))
20
+ - Update dev deps ([5671593](https://github.com/danielwaltz/eslint-config/commit/5671593))
21
+
22
+ ### ❤️ Contributors
23
+
24
+ - Daniel Waltz ([@danielwaltz](https://github.com/danielwaltz))
25
+
26
+ ## v0.1.1
27
+
28
+ [compare changes](https://github.com/danielwaltz/eslint-config/compare/v0.1.0...v0.1.1)
29
+
30
+ ### 🚀 Enhancements
31
+
32
+ - Update sxzz config ([edfb1a8](https://github.com/danielwaltz/eslint-config/commit/edfb1a8))
33
+
34
+ ### 🏡 Chore
35
+
36
+ - Update exports defs ([ebf7d0e](https://github.com/danielwaltz/eslint-config/commit/ebf7d0e))
37
+
38
+ ### ❤️ Contributors
39
+
40
+ - Daniel Waltz ([@danielwaltz](http://github.com/danielwaltz))
41
+
4
42
  ## v0.1.0
5
43
 
6
44
  [compare changes](https://github.com/danielwaltz/eslint-config/compare/v0.0.14...v0.1.0)
package/dist/index.d.mts CHANGED
@@ -1,8 +1,8 @@
1
+ import * as eslint from 'eslint';
2
+ import { Linter } from 'eslint';
1
3
  import * as eslint_flat_config_utils from 'eslint-flat-config-utils';
2
4
  import { DefaultConfigNamesMap, ResolvableFlatConfig } from 'eslint-flat-config-utils';
3
5
  export { DefaultConfigNamesMap, defineFlatConfig } from 'eslint-flat-config-utils';
4
- import * as eslint from 'eslint';
5
- import { Linter } from 'eslint';
6
6
  export * from '@sxzz/eslint-config';
7
7
 
8
8
  type BaseConfig = Linter.Config;
@@ -10,6 +10,6 @@ type BaseConfigNames = keyof DefaultConfigNamesMap;
10
10
 
11
11
  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
12
 
13
- declare function danielwaltz<const TConfig extends BaseConfig = BaseConfig, const TConfigNames extends string = BaseConfigNames>(...userConfigs: ResolvableFlatConfig<TConfig>[]): eslint_flat_config_utils.FlatConfigComposer<eslint.Linter.Config<eslint.Linter.RulesRecord> extends TConfig ? TConfig : eslint.Linter.Config<eslint.Linter.RulesRecord>, TConfigNames>;
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
14
 
15
15
  export { danielwaltz, defineFlatConfigs };
package/dist/index.d.ts CHANGED
@@ -1,8 +1,8 @@
1
+ import * as eslint from 'eslint';
2
+ import { Linter } from 'eslint';
1
3
  import * as eslint_flat_config_utils from 'eslint-flat-config-utils';
2
4
  import { DefaultConfigNamesMap, ResolvableFlatConfig } from 'eslint-flat-config-utils';
3
5
  export { DefaultConfigNamesMap, defineFlatConfig } from 'eslint-flat-config-utils';
4
- import * as eslint from 'eslint';
5
- import { Linter } from 'eslint';
6
6
  export * from '@sxzz/eslint-config';
7
7
 
8
8
  type BaseConfig = Linter.Config;
@@ -10,6 +10,6 @@ type BaseConfigNames = keyof DefaultConfigNamesMap;
10
10
 
11
11
  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
12
 
13
- declare function danielwaltz<const TConfig extends BaseConfig = BaseConfig, const TConfigNames extends string = BaseConfigNames>(...userConfigs: ResolvableFlatConfig<TConfig>[]): eslint_flat_config_utils.FlatConfigComposer<eslint.Linter.Config<eslint.Linter.RulesRecord> extends TConfig ? TConfig : eslint.Linter.Config<eslint.Linter.RulesRecord>, TConfigNames>;
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
14
 
15
15
  export { danielwaltz, defineFlatConfigs };
package/dist/index.mjs CHANGED
@@ -108,9 +108,9 @@ function defineFlatConfigs(...configs) {
108
108
  return composer(...configs);
109
109
  }
110
110
 
111
- function danielwaltz(...userConfigs) {
111
+ async function danielwaltz(...userConfigs) {
112
112
  const composer = defineFlatConfigs(...userConfigs);
113
- composer.prepend(sxzz());
113
+ composer.prepend(await sxzz());
114
114
  composer.append(unicornConfigs());
115
115
  if (hasVue()) composer.append(vueConfigs());
116
116
  return composer;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@danielwaltz/eslint-config",
3
- "version": "0.1.0",
4
- "packageManager": "pnpm@9.15.4",
3
+ "version": "0.1.2",
4
+ "packageManager": "pnpm@10.6.1",
5
5
  "type": "module",
6
6
  "keywords": [
7
7
  "eslint-config"
@@ -17,11 +17,13 @@
17
17
  "README.md",
18
18
  "dist"
19
19
  ],
20
+ "main": "./dist/index.mjs",
20
21
  "module": "./dist/index.mjs",
22
+ "types": "./dist/index.d.mts",
21
23
  "exports": {
22
24
  ".": {
23
25
  "types": "./dist/index.d.mts",
24
- "import": "./dist/index.mjs"
26
+ "default": "./dist/index.mjs"
25
27
  }
26
28
  },
27
29
  "scripts": {
@@ -38,14 +40,14 @@
38
40
  "prettier": ">=3"
39
41
  },
40
42
  "dependencies": {
41
- "@sxzz/eslint-config": "^5.0.1",
43
+ "@sxzz/eslint-config": "^5.3.0",
42
44
  "eslint-flat-config-utils": "^2.0.1"
43
45
  },
44
46
  "devDependencies": {
45
47
  "@tsconfig/node22": "^22.0.0",
46
- "@types/node": "~22.10.10",
47
- "changelogen": "^0.5.7",
48
- "typescript": "~5.7.3",
49
- "unbuild": "^3.3.1"
48
+ "@types/node": "~22.13.10",
49
+ "changelogen": "^0.6.1",
50
+ "typescript": "~5.8.2",
51
+ "unbuild": "^3.5.0"
50
52
  }
51
53
  }