@danielwaltz/eslint-config 0.1.2 → 0.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 +20 -0
- package/dist/index.d.mts +3 -2
- package/dist/index.d.ts +3 -2
- package/dist/index.mjs +3 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,26 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
3
|
|
|
4
|
+
## v0.2.0
|
|
5
|
+
|
|
6
|
+
[compare changes](https://github.com/danielwaltz/eslint-config/compare/v0.1.2...v0.2.0)
|
|
7
|
+
|
|
8
|
+
### 🚀 Enhancements
|
|
9
|
+
|
|
10
|
+
- ⚠️ Forward options to sxzz config ([a76b765](https://github.com/danielwaltz/eslint-config/commit/a76b765))
|
|
11
|
+
|
|
12
|
+
### 🏡 Chore
|
|
13
|
+
|
|
14
|
+
- Refresh lockfile ([1e25978](https://github.com/danielwaltz/eslint-config/commit/1e25978))
|
|
15
|
+
|
|
16
|
+
#### ⚠️ Breaking Changes
|
|
17
|
+
|
|
18
|
+
- ⚠️ Forward options to sxzz config ([a76b765](https://github.com/danielwaltz/eslint-config/commit/a76b765))
|
|
19
|
+
|
|
20
|
+
### ❤️ Contributors
|
|
21
|
+
|
|
22
|
+
- Daniel Waltz ([@danielwaltz](https://github.com/danielwaltz))
|
|
23
|
+
|
|
4
24
|
## v0.1.2
|
|
5
25
|
|
|
6
26
|
[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>(...
|
|
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>(...
|
|
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
|
@@ -108,9 +108,9 @@ function defineFlatConfigs(...configs) {
|
|
|
108
108
|
return composer(...configs);
|
|
109
109
|
}
|
|
110
110
|
|
|
111
|
-
async function danielwaltz(...
|
|
112
|
-
const composer = defineFlatConfigs(
|
|
113
|
-
composer.prepend(await sxzz());
|
|
111
|
+
async function danielwaltz(...params) {
|
|
112
|
+
const composer = defineFlatConfigs();
|
|
113
|
+
composer.prepend(await sxzz(...params));
|
|
114
114
|
composer.append(unicornConfigs());
|
|
115
115
|
if (hasVue()) composer.append(vueConfigs());
|
|
116
116
|
return composer;
|