@ivanmaxlogiudice/eslint-config 1.0.6 → 1.0.7
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/dist/cli.cjs +3 -3
- package/dist/cli.d.cts +1 -1
- package/dist/cli.d.ts +1 -1
- package/dist/cli.js +3 -3
- package/dist/index.cjs +6 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +6 -1
- package/package.json +5 -5
package/dist/cli.cjs
CHANGED
|
@@ -35,12 +35,12 @@ var import_picocolors4 = __toESM(require("picocolors"), 1);
|
|
|
35
35
|
var import_picocolors = __toESM(require("picocolors"), 1);
|
|
36
36
|
|
|
37
37
|
// package.json
|
|
38
|
-
var version = "1.0.
|
|
38
|
+
var version = "1.0.7";
|
|
39
39
|
var devDependencies = {
|
|
40
40
|
"@stylistic/eslint-plugin-migrate": "^1.2.0",
|
|
41
41
|
"@types/eslint": "^8.44.7",
|
|
42
42
|
"@types/fs-extra": "^11.0.4",
|
|
43
|
-
"@types/node": "^20.9.
|
|
43
|
+
"@types/node": "^20.9.1",
|
|
44
44
|
"@types/prompts": "^2.4.8",
|
|
45
45
|
bumpp: "^9.2.0",
|
|
46
46
|
eslint: "^8.53.0",
|
|
@@ -50,7 +50,7 @@ var devDependencies = {
|
|
|
50
50
|
"fs-extra": "^11.1.1",
|
|
51
51
|
"lint-staged": "^15.1.0",
|
|
52
52
|
"simple-git-hooks": "^2.9.0",
|
|
53
|
-
tsup: "^7.
|
|
53
|
+
tsup: "^7.3.0",
|
|
54
54
|
typescript: "^5.2.2",
|
|
55
55
|
vitest: "^0.34.6"
|
|
56
56
|
};
|
package/dist/cli.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
export {
|
|
2
|
+
export { }
|
package/dist/cli.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
export {
|
|
2
|
+
export { }
|
package/dist/cli.js
CHANGED
|
@@ -6,12 +6,12 @@ import c4 from "picocolors";
|
|
|
6
6
|
import c from "picocolors";
|
|
7
7
|
|
|
8
8
|
// package.json
|
|
9
|
-
var version = "1.0.
|
|
9
|
+
var version = "1.0.7";
|
|
10
10
|
var devDependencies = {
|
|
11
11
|
"@stylistic/eslint-plugin-migrate": "^1.2.0",
|
|
12
12
|
"@types/eslint": "^8.44.7",
|
|
13
13
|
"@types/fs-extra": "^11.0.4",
|
|
14
|
-
"@types/node": "^20.9.
|
|
14
|
+
"@types/node": "^20.9.1",
|
|
15
15
|
"@types/prompts": "^2.4.8",
|
|
16
16
|
bumpp: "^9.2.0",
|
|
17
17
|
eslint: "^8.53.0",
|
|
@@ -21,7 +21,7 @@ var devDependencies = {
|
|
|
21
21
|
"fs-extra": "^11.1.1",
|
|
22
22
|
"lint-staged": "^15.1.0",
|
|
23
23
|
"simple-git-hooks": "^2.9.0",
|
|
24
|
-
tsup: "^7.
|
|
24
|
+
tsup: "^7.3.0",
|
|
25
25
|
typescript: "^5.2.2",
|
|
26
26
|
vitest: "^0.34.6"
|
|
27
27
|
};
|
package/dist/index.cjs
CHANGED
|
@@ -1060,6 +1060,9 @@ function stylistic(options) {
|
|
|
1060
1060
|
rules: {
|
|
1061
1061
|
"antfu/consistent-list-newline": "error",
|
|
1062
1062
|
"antfu/if-newline": "error",
|
|
1063
|
+
"antfu/indent-binary-ops": ["error", {
|
|
1064
|
+
indent
|
|
1065
|
+
}],
|
|
1063
1066
|
"antfu/top-level-function": "error",
|
|
1064
1067
|
"curly": ["error", "multi-or-nest", "consistent"],
|
|
1065
1068
|
"style/array-bracket-spacing": ["error", "never"],
|
|
@@ -1085,7 +1088,7 @@ function stylistic(options) {
|
|
|
1085
1088
|
}],
|
|
1086
1089
|
"style/dot-location": ["error", "property"],
|
|
1087
1090
|
"style/eol-last": "error",
|
|
1088
|
-
"style/
|
|
1091
|
+
"style/function-call-spacing": ["error", "never"],
|
|
1089
1092
|
"style/indent": ["error", indent, {
|
|
1090
1093
|
ArrayExpression: 1,
|
|
1091
1094
|
CallExpression: { arguments: 1 },
|
|
@@ -1116,6 +1119,8 @@ function stylistic(options) {
|
|
|
1116
1119
|
"JSXText",
|
|
1117
1120
|
"JSXEmptyExpression",
|
|
1118
1121
|
"JSXSpreadChild",
|
|
1122
|
+
"TSUnionType",
|
|
1123
|
+
"TSIntersectionType",
|
|
1119
1124
|
"TSTypeParameterInstantiation",
|
|
1120
1125
|
"FunctionExpression > .params[decorators.length > 0]",
|
|
1121
1126
|
"FunctionExpression > .params > :matches(Decorator, :not(:first-child))",
|
package/dist/index.d.cts
CHANGED
|
@@ -264,4 +264,4 @@ declare function renameRules(rules: Record<string, any>, from: string, to: strin
|
|
|
264
264
|
};
|
|
265
265
|
declare function toArray<T>(value: T | T[]): T[];
|
|
266
266
|
|
|
267
|
-
export { ConfigItem, GLOB_ALL_SRC, GLOB_CSS, GLOB_DIST, GLOB_EXCLUDE, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_LOCKFILE, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_NODE_MODULES, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_TESTS, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_YAML, OptionsComponentExts, OptionsConfig, OptionsHasTypeScript, OptionsIsInEditor, OptionsOverrides, OptionsStylistic, OptionsTypeScriptParserOptions, OptionsTypeScriptWithTypes, Rules, StylisticConfig, WrapRuleConfig, combine, comments, config, config as default, ignores, imports, javascript, jsdoc, jsonc, markdown, node, perfectionist, renameRules, sortPackageJson, sortTsconfig, stylistic, test, toArray, typescript, unicorn, unocss, vue, yaml };
|
|
267
|
+
export { type ConfigItem, GLOB_ALL_SRC, GLOB_CSS, GLOB_DIST, GLOB_EXCLUDE, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_LOCKFILE, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_NODE_MODULES, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_TESTS, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_YAML, type OptionsComponentExts, type OptionsConfig, type OptionsHasTypeScript, type OptionsIsInEditor, type OptionsOverrides, type OptionsStylistic, type OptionsTypeScriptParserOptions, type OptionsTypeScriptWithTypes, type Rules, type StylisticConfig, type WrapRuleConfig, combine, comments, config, config as default, ignores, imports, javascript, jsdoc, jsonc, markdown, node, perfectionist, renameRules, sortPackageJson, sortTsconfig, stylistic, test, toArray, typescript, unicorn, unocss, vue, yaml };
|
package/dist/index.d.ts
CHANGED
|
@@ -264,4 +264,4 @@ declare function renameRules(rules: Record<string, any>, from: string, to: strin
|
|
|
264
264
|
};
|
|
265
265
|
declare function toArray<T>(value: T | T[]): T[];
|
|
266
266
|
|
|
267
|
-
export { ConfigItem, GLOB_ALL_SRC, GLOB_CSS, GLOB_DIST, GLOB_EXCLUDE, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_LOCKFILE, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_NODE_MODULES, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_TESTS, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_YAML, OptionsComponentExts, OptionsConfig, OptionsHasTypeScript, OptionsIsInEditor, OptionsOverrides, OptionsStylistic, OptionsTypeScriptParserOptions, OptionsTypeScriptWithTypes, Rules, StylisticConfig, WrapRuleConfig, combine, comments, config, config as default, ignores, imports, javascript, jsdoc, jsonc, markdown, node, perfectionist, renameRules, sortPackageJson, sortTsconfig, stylistic, test, toArray, typescript, unicorn, unocss, vue, yaml };
|
|
267
|
+
export { type ConfigItem, GLOB_ALL_SRC, GLOB_CSS, GLOB_DIST, GLOB_EXCLUDE, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_LOCKFILE, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_NODE_MODULES, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_TESTS, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_YAML, type OptionsComponentExts, type OptionsConfig, type OptionsHasTypeScript, type OptionsIsInEditor, type OptionsOverrides, type OptionsStylistic, type OptionsTypeScriptParserOptions, type OptionsTypeScriptWithTypes, type Rules, type StylisticConfig, type WrapRuleConfig, combine, comments, config, config as default, ignores, imports, javascript, jsdoc, jsonc, markdown, node, perfectionist, renameRules, sortPackageJson, sortTsconfig, stylistic, test, toArray, typescript, unicorn, unocss, vue, yaml };
|
package/dist/index.js
CHANGED
|
@@ -956,6 +956,9 @@ function stylistic(options) {
|
|
|
956
956
|
rules: {
|
|
957
957
|
"antfu/consistent-list-newline": "error",
|
|
958
958
|
"antfu/if-newline": "error",
|
|
959
|
+
"antfu/indent-binary-ops": ["error", {
|
|
960
|
+
indent
|
|
961
|
+
}],
|
|
959
962
|
"antfu/top-level-function": "error",
|
|
960
963
|
"curly": ["error", "multi-or-nest", "consistent"],
|
|
961
964
|
"style/array-bracket-spacing": ["error", "never"],
|
|
@@ -981,7 +984,7 @@ function stylistic(options) {
|
|
|
981
984
|
}],
|
|
982
985
|
"style/dot-location": ["error", "property"],
|
|
983
986
|
"style/eol-last": "error",
|
|
984
|
-
"style/
|
|
987
|
+
"style/function-call-spacing": ["error", "never"],
|
|
985
988
|
"style/indent": ["error", indent, {
|
|
986
989
|
ArrayExpression: 1,
|
|
987
990
|
CallExpression: { arguments: 1 },
|
|
@@ -1012,6 +1015,8 @@ function stylistic(options) {
|
|
|
1012
1015
|
"JSXText",
|
|
1013
1016
|
"JSXEmptyExpression",
|
|
1014
1017
|
"JSXSpreadChild",
|
|
1018
|
+
"TSUnionType",
|
|
1019
|
+
"TSIntersectionType",
|
|
1015
1020
|
"TSTypeParameterInstantiation",
|
|
1016
1021
|
"FunctionExpression > .params[decorators.length > 0]",
|
|
1017
1022
|
"FunctionExpression > .params > :matches(Decorator, :not(:first-child))",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ivanmaxlogiudice/eslint-config",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.7",
|
|
4
4
|
"packageManager": "pnpm@8.10.5",
|
|
5
5
|
"description": "Personal ESLint config",
|
|
6
6
|
"type": "module",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"cac": "^6.7.14",
|
|
49
49
|
"detect-indent": "^7.0.1",
|
|
50
50
|
"eslint-config-flat-gitignore": "^0.1.1",
|
|
51
|
-
"eslint-plugin-antfu": "^1.0.
|
|
51
|
+
"eslint-plugin-antfu": "^1.0.9",
|
|
52
52
|
"eslint-plugin-eslint-comments": "^3.2.0",
|
|
53
53
|
"eslint-plugin-i": "^2.29.0",
|
|
54
54
|
"eslint-plugin-jsdoc": "^46.9.0",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"eslint-plugin-markdown": "^3.0.1",
|
|
57
57
|
"eslint-plugin-n": "^16.3.1",
|
|
58
58
|
"eslint-plugin-no-only-tests": "^3.1.0",
|
|
59
|
-
"eslint-plugin-perfectionist": "^2.
|
|
59
|
+
"eslint-plugin-perfectionist": "^2.4.0",
|
|
60
60
|
"eslint-plugin-promise": "^6.1.1",
|
|
61
61
|
"eslint-plugin-unicorn": "^49.0.0",
|
|
62
62
|
"eslint-plugin-unused-imports": "^3.0.0",
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
"@stylistic/eslint-plugin-migrate": "^1.2.0",
|
|
77
77
|
"@types/eslint": "^8.44.7",
|
|
78
78
|
"@types/fs-extra": "^11.0.4",
|
|
79
|
-
"@types/node": "^20.9.
|
|
79
|
+
"@types/node": "^20.9.1",
|
|
80
80
|
"@types/prompts": "^2.4.8",
|
|
81
81
|
"bumpp": "^9.2.0",
|
|
82
82
|
"eslint": "^8.53.0",
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
"fs-extra": "^11.1.1",
|
|
87
87
|
"lint-staged": "^15.1.0",
|
|
88
88
|
"simple-git-hooks": "^2.9.0",
|
|
89
|
-
"tsup": "^7.
|
|
89
|
+
"tsup": "^7.3.0",
|
|
90
90
|
"typescript": "^5.2.2",
|
|
91
91
|
"vitest": "^0.34.6"
|
|
92
92
|
},
|