@danielwaltz/eslint-config 0.2.0 → 2.0.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 +29 -0
- package/dist/index.d.mts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.mjs +15 -4
- package/package.json +6 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,35 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
3
|
|
|
4
|
+
## v2.0.0
|
|
5
|
+
|
|
6
|
+
[compare changes](https://github.com/danielwaltz/eslint-config/compare/v1.2.0...v2.0.0)
|
|
7
|
+
|
|
8
|
+
### 🚀 Enhancements
|
|
9
|
+
|
|
10
|
+
- ⚠️ Update sxzz config ([ca86c04](https://github.com/danielwaltz/eslint-config/commit/ca86c04))
|
|
11
|
+
- Add new rule to vue config ([fbbb2d8](https://github.com/danielwaltz/eslint-config/commit/fbbb2d8))
|
|
12
|
+
|
|
13
|
+
#### ⚠️ Breaking Changes
|
|
14
|
+
|
|
15
|
+
- ⚠️ Update sxzz config ([ca86c04](https://github.com/danielwaltz/eslint-config/commit/ca86c04))
|
|
16
|
+
|
|
17
|
+
### ❤️ Contributors
|
|
18
|
+
|
|
19
|
+
- Daniel Waltz ([@danielwaltz](https://github.com/danielwaltz))
|
|
20
|
+
|
|
21
|
+
## v1.2.0
|
|
22
|
+
|
|
23
|
+
[compare changes](https://github.com/danielwaltz/eslint-config/compare/v0.2.0...v1.2.0)
|
|
24
|
+
|
|
25
|
+
### 🚀 Enhancements
|
|
26
|
+
|
|
27
|
+
- Add and enable erasable syntax only plugin and config ([f515da7](https://github.com/danielwaltz/eslint-config/commit/f515da7))
|
|
28
|
+
|
|
29
|
+
### ❤️ Contributors
|
|
30
|
+
|
|
31
|
+
- Daniel Waltz ([@danielwaltz](https://github.com/danielwaltz))
|
|
32
|
+
|
|
4
33
|
## v0.2.0
|
|
5
34
|
|
|
6
35
|
[compare changes](https://github.com/danielwaltz/eslint-config/compare/v0.1.2...v0.2.0)
|
package/dist/index.d.mts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
+
import * as eslint_flat_config_utils from 'eslint-flat-config-utils';
|
|
2
|
+
import { DefaultConfigNamesMap, ResolvableFlatConfig } from 'eslint-flat-config-utils';
|
|
3
|
+
export { DefaultConfigNamesMap, defineFlatConfig } from 'eslint-flat-config-utils';
|
|
1
4
|
import * as eslint from 'eslint';
|
|
2
5
|
import { Linter } from 'eslint';
|
|
3
6
|
import { sxzz } from '@sxzz/eslint-config';
|
|
4
7
|
export * from '@sxzz/eslint-config';
|
|
5
|
-
import * as eslint_flat_config_utils from 'eslint-flat-config-utils';
|
|
6
|
-
import { DefaultConfigNamesMap, ResolvableFlatConfig } from 'eslint-flat-config-utils';
|
|
7
|
-
export { DefaultConfigNamesMap, defineFlatConfig } from 'eslint-flat-config-utils';
|
|
8
8
|
|
|
9
9
|
type BaseConfig = Linter.Config;
|
|
10
10
|
type BaseConfigNames = keyof DefaultConfigNamesMap;
|
|
11
11
|
|
|
12
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>;
|
|
13
13
|
|
|
14
|
-
declare function danielwaltz<const TConfig extends BaseConfig = BaseConfig, const TConfigNames extends string = BaseConfigNames>(...params: Parameters<typeof sxzz>):
|
|
14
|
+
declare function danielwaltz<const TConfig extends BaseConfig = BaseConfig, const TConfigNames extends string = BaseConfigNames>(...params: Parameters<typeof sxzz>): eslint_flat_config_utils.FlatConfigComposer<eslint.Linter.Config<eslint.Linter.RulesRecord> extends TConfig ? TConfig : eslint.Linter.Config<eslint.Linter.RulesRecord>, TConfigNames>;
|
|
15
15
|
|
|
16
16
|
export { danielwaltz, defineFlatConfigs };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
+
import * as eslint_flat_config_utils from 'eslint-flat-config-utils';
|
|
2
|
+
import { DefaultConfigNamesMap, ResolvableFlatConfig } from 'eslint-flat-config-utils';
|
|
3
|
+
export { DefaultConfigNamesMap, defineFlatConfig } from 'eslint-flat-config-utils';
|
|
1
4
|
import * as eslint from 'eslint';
|
|
2
5
|
import { Linter } from 'eslint';
|
|
3
6
|
import { sxzz } from '@sxzz/eslint-config';
|
|
4
7
|
export * from '@sxzz/eslint-config';
|
|
5
|
-
import * as eslint_flat_config_utils from 'eslint-flat-config-utils';
|
|
6
|
-
import { DefaultConfigNamesMap, ResolvableFlatConfig } from 'eslint-flat-config-utils';
|
|
7
|
-
export { DefaultConfigNamesMap, defineFlatConfig } from 'eslint-flat-config-utils';
|
|
8
8
|
|
|
9
9
|
type BaseConfig = Linter.Config;
|
|
10
10
|
type BaseConfigNames = keyof DefaultConfigNamesMap;
|
|
11
11
|
|
|
12
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>;
|
|
13
13
|
|
|
14
|
-
declare function danielwaltz<const TConfig extends BaseConfig = BaseConfig, const TConfigNames extends string = BaseConfigNames>(...params: Parameters<typeof sxzz>):
|
|
14
|
+
declare function danielwaltz<const TConfig extends BaseConfig = BaseConfig, const TConfigNames extends string = BaseConfigNames>(...params: Parameters<typeof sxzz>): eslint_flat_config_utils.FlatConfigComposer<eslint.Linter.Config<eslint.Linter.RulesRecord> extends TConfig ? TConfig : eslint.Linter.Config<eslint.Linter.RulesRecord>, TConfigNames>;
|
|
15
15
|
|
|
16
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
|
{
|
|
@@ -66,6 +76,7 @@ function vueConfigs() {
|
|
|
66
76
|
"vue/no-boolean-default": "error",
|
|
67
77
|
"vue/no-duplicate-attr-inheritance": "error",
|
|
68
78
|
"vue/no-empty-component-block": "error",
|
|
79
|
+
"vue/no-import-compiler-macros": "error",
|
|
69
80
|
"vue/no-multiple-objects-in-class": "error",
|
|
70
81
|
"vue/no-ref-object-reactivity-loss": "error",
|
|
71
82
|
"vue/no-required-prop-with-default": ["error", { autofix: true }],
|
|
@@ -97,8 +108,7 @@ function vueConfigs() {
|
|
|
97
108
|
{ sameNameShorthand: "always" }
|
|
98
109
|
],
|
|
99
110
|
"vue/v-for-delimiter-style": "error",
|
|
100
|
-
"vue/v-on-function-call": "error"
|
|
101
|
-
"vue/valid-define-options": "error"
|
|
111
|
+
"vue/v-on-function-call": "error"
|
|
102
112
|
}
|
|
103
113
|
}
|
|
104
114
|
];
|
|
@@ -108,9 +118,10 @@ function defineFlatConfigs(...configs) {
|
|
|
108
118
|
return composer(...configs);
|
|
109
119
|
}
|
|
110
120
|
|
|
111
|
-
|
|
121
|
+
function danielwaltz(...params) {
|
|
112
122
|
const composer = defineFlatConfigs();
|
|
113
|
-
composer.prepend(
|
|
123
|
+
composer.prepend(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,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@danielwaltz/eslint-config",
|
|
3
|
-
"version": "
|
|
4
|
-
"packageManager": "pnpm@10.6.
|
|
3
|
+
"version": "2.0.0",
|
|
4
|
+
"packageManager": "pnpm@10.6.2",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"eslint-config"
|
|
@@ -33,15 +33,16 @@
|
|
|
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
|
|
36
|
+
"release": "pnpm test && changelogen --release --push --publish"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
39
|
"eslint": ">=9",
|
|
40
40
|
"prettier": ">=3"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@sxzz/eslint-config": "^
|
|
44
|
-
"eslint-flat-config-utils": "^2.0.1"
|
|
43
|
+
"@sxzz/eslint-config": "^6.0.2",
|
|
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",
|