@danielwaltz/eslint-config 0.0.3 → 0.0.4

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,18 @@
1
1
  # Changelog
2
2
 
3
3
 
4
+ ## v0.0.4
5
+
6
+ [compare changes](https://github.com/danielwaltz/eslint-config/compare/v0.0.3...v0.0.4)
7
+
8
+ ### 🩹 Fixes
9
+
10
+ - Make main config fn synchronous ([aa1682c](https://github.com/danielwaltz/eslint-config/commit/aa1682c))
11
+
12
+ ### ❤️ Contributors
13
+
14
+ - Daniel Waltz ([@danielwaltz](http://github.com/danielwaltz))
15
+
4
16
  ## v0.0.3
5
17
 
6
18
  [compare changes](https://github.com/danielwaltz/eslint-config/compare/v0.0.2...v0.0.3)
package/dist/index.d.mts CHANGED
@@ -1,8 +1,9 @@
1
- import * as eslint from 'eslint';
1
+ import * as eslint_flat_config_utils from 'eslint-flat-config-utils';
2
2
  import { ResolvableFlatConfig, FlatConfigComposer } from 'eslint-flat-config-utils';
3
+ import * as eslint from 'eslint';
3
4
 
4
5
  declare function defineFlatConfigs(...configs: ResolvableFlatConfig[]): FlatConfigComposer;
5
6
 
6
- declare function danielwaltz(...userConfigs: ResolvableFlatConfig[]): Promise<eslint.Linter.Config<eslint.Linter.RulesRecord>[]>;
7
+ declare function danielwaltz(...userConfigs: ResolvableFlatConfig[]): eslint_flat_config_utils.FlatConfigComposer<eslint.Linter.Config<eslint.Linter.RulesRecord>, never>;
7
8
 
8
9
  export { danielwaltz, defineFlatConfigs };
package/dist/index.d.ts CHANGED
@@ -1,8 +1,9 @@
1
- import * as eslint from 'eslint';
1
+ import * as eslint_flat_config_utils from 'eslint-flat-config-utils';
2
2
  import { ResolvableFlatConfig, FlatConfigComposer } from 'eslint-flat-config-utils';
3
+ import * as eslint from 'eslint';
3
4
 
4
5
  declare function defineFlatConfigs(...configs: ResolvableFlatConfig[]): FlatConfigComposer;
5
6
 
6
- declare function danielwaltz(...userConfigs: ResolvableFlatConfig[]): Promise<eslint.Linter.Config<eslint.Linter.RulesRecord>[]>;
7
+ declare function danielwaltz(...userConfigs: ResolvableFlatConfig[]): eslint_flat_config_utils.FlatConfigComposer<eslint.Linter.Config<eslint.Linter.RulesRecord>, never>;
7
8
 
8
9
  export { danielwaltz, defineFlatConfigs };
package/dist/index.mjs CHANGED
@@ -97,12 +97,12 @@ function defineFlatConfigs(...configs) {
97
97
  return composer(...configs);
98
98
  }
99
99
 
100
- async function danielwaltz(...userConfigs) {
100
+ function danielwaltz(...userConfigs) {
101
101
  const composer = defineFlatConfigs(...userConfigs);
102
- await composer.prepend(globalConfigs());
103
- await composer.append(typescriptConfigs());
104
- await composer.append(importConfigs());
105
- await composer.append(formattingConfigs());
102
+ composer.prepend(globalConfigs());
103
+ composer.append(typescriptConfigs());
104
+ composer.append(importConfigs());
105
+ composer.append(formattingConfigs());
106
106
  return composer;
107
107
  }
108
108
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@danielwaltz/eslint-config",
3
- "version": "0.0.3",
3
+ "version": "0.0.4",
4
4
  "license": "MIT",
5
5
  "author": "Daniel Waltz",
6
6
  "repository": {