@antfu/eslint-config 1.1.2 → 1.1.3
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 +1 -1
- package/dist/cli.js +1 -1
- package/dist/index.cjs +6 -0
- package/dist/index.js +6 -0
- package/package.json +3 -3
package/dist/cli.cjs
CHANGED
|
@@ -46,7 +46,7 @@ var import_parse_gitignore = __toESM(require("parse-gitignore"), 1);
|
|
|
46
46
|
var import_picocolors = __toESM(require("picocolors"), 1);
|
|
47
47
|
|
|
48
48
|
// package.json
|
|
49
|
-
var version = "1.1.
|
|
49
|
+
var version = "1.1.3";
|
|
50
50
|
|
|
51
51
|
// src/cli/constants.ts
|
|
52
52
|
var ARROW = import_picocolors.default.cyan("\u2192");
|
package/dist/cli.js
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -188,6 +188,10 @@ var GLOB_EXCLUDE = [
|
|
|
188
188
|
"**/output",
|
|
189
189
|
"**/coverage",
|
|
190
190
|
"**/temp",
|
|
191
|
+
"**/.temp",
|
|
192
|
+
"**/tmp",
|
|
193
|
+
"**/.tmp",
|
|
194
|
+
"**/.history",
|
|
191
195
|
"**/.vitepress/cache",
|
|
192
196
|
"**/.nuxt",
|
|
193
197
|
"**/.next",
|
|
@@ -602,6 +606,7 @@ function markdown(options = {}) {
|
|
|
602
606
|
"no-alert": "off",
|
|
603
607
|
"no-console": "off",
|
|
604
608
|
"no-labels": "off",
|
|
609
|
+
"no-lone-blocks": "off",
|
|
605
610
|
"no-restricted-syntax": "off",
|
|
606
611
|
"no-undef": "off",
|
|
607
612
|
"no-unused-expressions": "off",
|
|
@@ -900,6 +905,7 @@ function stylistic(options = {}) {
|
|
|
900
905
|
rules: {
|
|
901
906
|
"antfu/consistent-list-newline": "error",
|
|
902
907
|
"antfu/if-newline": "error",
|
|
908
|
+
"antfu/indent-binary-ops": ["error", { indent }],
|
|
903
909
|
"antfu/top-level-function": "error",
|
|
904
910
|
"curly": ["error", "multi-or-nest", "consistent"],
|
|
905
911
|
"style/array-bracket-spacing": ["error", "never"],
|
package/dist/index.js
CHANGED
|
@@ -90,6 +90,10 @@ var GLOB_EXCLUDE = [
|
|
|
90
90
|
"**/output",
|
|
91
91
|
"**/coverage",
|
|
92
92
|
"**/temp",
|
|
93
|
+
"**/.temp",
|
|
94
|
+
"**/tmp",
|
|
95
|
+
"**/.tmp",
|
|
96
|
+
"**/.history",
|
|
93
97
|
"**/.vitepress/cache",
|
|
94
98
|
"**/.nuxt",
|
|
95
99
|
"**/.next",
|
|
@@ -504,6 +508,7 @@ function markdown(options = {}) {
|
|
|
504
508
|
"no-alert": "off",
|
|
505
509
|
"no-console": "off",
|
|
506
510
|
"no-labels": "off",
|
|
511
|
+
"no-lone-blocks": "off",
|
|
507
512
|
"no-restricted-syntax": "off",
|
|
508
513
|
"no-undef": "off",
|
|
509
514
|
"no-unused-expressions": "off",
|
|
@@ -802,6 +807,7 @@ function stylistic(options = {}) {
|
|
|
802
807
|
rules: {
|
|
803
808
|
"antfu/consistent-list-newline": "error",
|
|
804
809
|
"antfu/if-newline": "error",
|
|
810
|
+
"antfu/indent-binary-ops": ["error", { indent }],
|
|
805
811
|
"antfu/top-level-function": "error",
|
|
806
812
|
"curly": ["error", "multi-or-nest", "consistent"],
|
|
807
813
|
"style/array-bracket-spacing": ["error", "never"],
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@antfu/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.1.
|
|
4
|
+
"version": "1.1.3",
|
|
5
5
|
"packageManager": "pnpm@8.10.4",
|
|
6
6
|
"description": "Anthony's ESLint config",
|
|
7
7
|
"author": "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"@typescript-eslint/eslint-plugin": "^6.10.0",
|
|
37
37
|
"@typescript-eslint/parser": "^6.10.0",
|
|
38
38
|
"eslint-config-flat-gitignore": "^0.1.1",
|
|
39
|
-
"eslint-plugin-antfu": "^1.0.
|
|
39
|
+
"eslint-plugin-antfu": "^1.0.6",
|
|
40
40
|
"eslint-plugin-eslint-comments": "^3.2.0",
|
|
41
41
|
"eslint-plugin-i": "^2.29.0",
|
|
42
42
|
"eslint-plugin-jsdoc": "^46.9.0",
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
"tsup": "^7.2.0",
|
|
82
82
|
"typescript": "^5.2.2",
|
|
83
83
|
"vitest": "^0.34.6",
|
|
84
|
-
"@antfu/eslint-config": "1.1.
|
|
84
|
+
"@antfu/eslint-config": "1.1.3"
|
|
85
85
|
},
|
|
86
86
|
"simple-git-hooks": {
|
|
87
87
|
"pre-commit": "pnpm lint-staged"
|