@danielwaltz/eslint-config 1.2.0 → 2.0.1
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 +4 -4
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,35 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
3
|
|
|
4
|
+
## v2.0.1
|
|
5
|
+
|
|
6
|
+
[compare changes](https://github.com/danielwaltz/eslint-config/compare/v2.0.0...v2.0.1)
|
|
7
|
+
|
|
8
|
+
### 🩹 Fixes
|
|
9
|
+
|
|
10
|
+
- Update deprecated vue rule ([0a81e29](https://github.com/danielwaltz/eslint-config/commit/0a81e29))
|
|
11
|
+
|
|
12
|
+
### ❤️ Contributors
|
|
13
|
+
|
|
14
|
+
- Daniel Waltz ([@danielwaltz](https://github.com/danielwaltz))
|
|
15
|
+
|
|
16
|
+
## v2.0.0
|
|
17
|
+
|
|
18
|
+
[compare changes](https://github.com/danielwaltz/eslint-config/compare/v1.2.0...v2.0.0)
|
|
19
|
+
|
|
20
|
+
### 🚀 Enhancements
|
|
21
|
+
|
|
22
|
+
- ⚠️ Update sxzz config ([ca86c04](https://github.com/danielwaltz/eslint-config/commit/ca86c04))
|
|
23
|
+
- Add new rule to vue config ([fbbb2d8](https://github.com/danielwaltz/eslint-config/commit/fbbb2d8))
|
|
24
|
+
|
|
25
|
+
#### ⚠️ Breaking Changes
|
|
26
|
+
|
|
27
|
+
- ⚠️ Update sxzz config ([ca86c04](https://github.com/danielwaltz/eslint-config/commit/ca86c04))
|
|
28
|
+
|
|
29
|
+
### ❤️ Contributors
|
|
30
|
+
|
|
31
|
+
- Daniel Waltz ([@danielwaltz](https://github.com/danielwaltz))
|
|
32
|
+
|
|
4
33
|
## v1.2.0
|
|
5
34
|
|
|
6
35
|
[compare changes](https://github.com/danielwaltz/eslint-config/compare/v0.2.0...v1.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
|
@@ -76,6 +76,7 @@ function vueConfigs() {
|
|
|
76
76
|
"vue/no-boolean-default": "error",
|
|
77
77
|
"vue/no-duplicate-attr-inheritance": "error",
|
|
78
78
|
"vue/no-empty-component-block": "error",
|
|
79
|
+
"vue/no-import-compiler-macros": "error",
|
|
79
80
|
"vue/no-multiple-objects-in-class": "error",
|
|
80
81
|
"vue/no-ref-object-reactivity-loss": "error",
|
|
81
82
|
"vue/no-required-prop-with-default": ["error", { autofix: true }],
|
|
@@ -107,8 +108,7 @@ function vueConfigs() {
|
|
|
107
108
|
{ sameNameShorthand: "always" }
|
|
108
109
|
],
|
|
109
110
|
"vue/v-for-delimiter-style": "error",
|
|
110
|
-
"vue/v-on-
|
|
111
|
-
"vue/valid-define-options": "error"
|
|
111
|
+
"vue/v-on-handler-style": "error"
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
114
|
];
|
|
@@ -118,9 +118,9 @@ function defineFlatConfigs(...configs) {
|
|
|
118
118
|
return composer(...configs);
|
|
119
119
|
}
|
|
120
120
|
|
|
121
|
-
|
|
121
|
+
function danielwaltz(...params) {
|
|
122
122
|
const composer = defineFlatConfigs();
|
|
123
|
-
composer.prepend(
|
|
123
|
+
composer.prepend(sxzz(...params));
|
|
124
124
|
composer.append(typescriptConfigs());
|
|
125
125
|
composer.append(unicornConfigs());
|
|
126
126
|
if (hasVue()) composer.append(vueConfigs());
|
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.1",
|
|
4
|
+
"packageManager": "pnpm@10.6.2",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"eslint-config"
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"prettier": ">=3"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@sxzz/eslint-config": "^
|
|
43
|
+
"@sxzz/eslint-config": "^6.0.2",
|
|
44
44
|
"eslint-flat-config-utils": "^2.0.1",
|
|
45
45
|
"eslint-plugin-erasable-syntax-only": "^0.3.0"
|
|
46
46
|
},
|