@antfu/eslint-config 2.2.1 → 2.2.2

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/README.md CHANGED
@@ -120,7 +120,6 @@ Add the following settings to your `.vscode/settings.json`:
120
120
  // Silent the stylistic rules in you IDE, but still auto fix them
121
121
  "eslint.rules.customizations": [
122
122
  { "rule": "style/*", "severity": "off" },
123
- { "rule": "prettier/*", "severity": "off" },
124
123
  { "rule": "*-indent", "severity": "off" },
125
124
  { "rule": "*-spacing", "severity": "off" },
126
125
  { "rule": "*-spaces", "severity": "off" },
@@ -477,15 +476,9 @@ If you enjoy this code style, and would like to mention it in your project, here
477
476
 
478
477
  [Why I don't use Prettier](https://antfu.me/posts/why-not-prettier)
479
478
 
480
- Well, on the other hand, you can [use still Prettier to handle CSS and HTML formatting](#prettier), which is not yet supported by ESLint.
481
-
482
479
  ### How to format CSS?
483
480
 
484
- ~~This config does NOT lint CSS. I personally use [UnoCSS](https://github.com/unocss/unocss) so I don't write CSS.~~
485
-
486
- Yes, we do now! See [Prettier](#prettier) section for more details.
487
-
488
- For better linting, we recommend trying [stylelint](https://stylelint.io/).
481
+ This config does NOT lint CSS. I personally use [UnoCSS](https://github.com/unocss/unocss) so I don't write CSS. For better linting, we recommend trying [stylelint](https://stylelint.io/).
489
482
 
490
483
  ### I prefer XXX...
491
484
 
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 = "2.2.1";
49
+ var version = "2.2.2";
50
50
  var devDependencies = {
51
51
  "@antfu/eslint-config": "workspace:*",
52
52
  "@antfu/eslint-plugin-prettier": "^5.0.1-1",
@@ -54,16 +54,16 @@ var devDependencies = {
54
54
  "@stylistic/eslint-plugin-migrate": "^1.4.1",
55
55
  "@types/eslint": "^8.44.8",
56
56
  "@types/fs-extra": "^11.0.4",
57
- "@types/node": "^20.10.1",
57
+ "@types/node": "^20.10.2",
58
58
  "@types/prompts": "^2.4.9",
59
59
  "@types/yargs": "^17.0.32",
60
- "@unocss/eslint-plugin": "^0.57.7",
60
+ "@unocss/eslint-plugin": "^0.58.0",
61
61
  bumpp: "^9.2.0",
62
- eslint: "^8.54.0",
62
+ eslint: "^8.55.0",
63
63
  "eslint-flat-config-viewer": "^0.1.3",
64
64
  "eslint-plugin-react": "^7.33.2",
65
65
  "eslint-plugin-react-hooks": "^4.6.0",
66
- "eslint-plugin-react-refresh": "^0.4.4",
66
+ "eslint-plugin-react-refresh": "^0.4.5",
67
67
  esno: "^4.0.0",
68
68
  execa: "^8.0.1",
69
69
  "fast-glob": "^3.3.2",
package/dist/cli.js CHANGED
@@ -17,7 +17,7 @@ import parse from "parse-gitignore";
17
17
  import c from "picocolors";
18
18
 
19
19
  // package.json
20
- var version = "2.2.1";
20
+ var version = "2.2.2";
21
21
  var devDependencies = {
22
22
  "@antfu/eslint-config": "workspace:*",
23
23
  "@antfu/eslint-plugin-prettier": "^5.0.1-1",
@@ -25,16 +25,16 @@ var devDependencies = {
25
25
  "@stylistic/eslint-plugin-migrate": "^1.4.1",
26
26
  "@types/eslint": "^8.44.8",
27
27
  "@types/fs-extra": "^11.0.4",
28
- "@types/node": "^20.10.1",
28
+ "@types/node": "^20.10.2",
29
29
  "@types/prompts": "^2.4.9",
30
30
  "@types/yargs": "^17.0.32",
31
- "@unocss/eslint-plugin": "^0.57.7",
31
+ "@unocss/eslint-plugin": "^0.58.0",
32
32
  bumpp: "^9.2.0",
33
- eslint: "^8.54.0",
33
+ eslint: "^8.55.0",
34
34
  "eslint-flat-config-viewer": "^0.1.3",
35
35
  "eslint-plugin-react": "^7.33.2",
36
36
  "eslint-plugin-react-hooks": "^4.6.0",
37
- "eslint-plugin-react-refresh": "^0.4.4",
37
+ "eslint-plugin-react-refresh": "^0.4.5",
38
38
  esno: "^4.0.0",
39
39
  execa: "^8.0.1",
40
40
  "fast-glob": "^3.3.2",
package/dist/index.cjs CHANGED
@@ -629,7 +629,6 @@ async function markdown(options = {}) {
629
629
  },
630
630
  name: "antfu:markdown:disables",
631
631
  rules: {
632
- "antfu/no-ts-export-equal": "off",
633
632
  "import/newline-after-import": "off",
634
633
  "no-alert": "off",
635
634
  "no-console": "off",
@@ -749,7 +748,6 @@ async function stylistic(options = {}) {
749
748
  ...config.rules,
750
749
  "antfu/consistent-list-newline": "error",
751
750
  "antfu/if-newline": "error",
752
- "antfu/indent-binary-ops": ["error", { indent }],
753
751
  "antfu/top-level-function": "error",
754
752
  "curly": ["error", "multi-or-nest", "consistent"]
755
753
  }
@@ -1263,8 +1261,6 @@ async function typescript(options = {}) {
1263
1261
  "@typescript-eslint/",
1264
1262
  "ts/"
1265
1263
  ),
1266
- "antfu/generic-spacing": "error",
1267
- "antfu/named-tuple-spacing": "error",
1268
1264
  "no-dupe-class-members": "off",
1269
1265
  "no-loss-of-precision": "off",
1270
1266
  "no-redeclare": "off",
package/dist/index.js CHANGED
@@ -543,7 +543,6 @@ async function markdown(options = {}) {
543
543
  },
544
544
  name: "antfu:markdown:disables",
545
545
  rules: {
546
- "antfu/no-ts-export-equal": "off",
547
546
  "import/newline-after-import": "off",
548
547
  "no-alert": "off",
549
548
  "no-console": "off",
@@ -663,7 +662,6 @@ async function stylistic(options = {}) {
663
662
  ...config.rules,
664
663
  "antfu/consistent-list-newline": "error",
665
664
  "antfu/if-newline": "error",
666
- "antfu/indent-binary-ops": ["error", { indent }],
667
665
  "antfu/top-level-function": "error",
668
666
  "curly": ["error", "multi-or-nest", "consistent"]
669
667
  }
@@ -1177,8 +1175,6 @@ async function typescript(options = {}) {
1177
1175
  "@typescript-eslint/",
1178
1176
  "ts/"
1179
1177
  ),
1180
- "antfu/generic-spacing": "error",
1181
- "antfu/named-tuple-spacing": "error",
1182
1178
  "no-dupe-class-members": "off",
1183
1179
  "no-loss-of-precision": "off",
1184
1180
  "no-redeclare": "off",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@antfu/eslint-config",
3
3
  "type": "module",
4
- "version": "2.2.1",
4
+ "version": "2.2.2",
5
5
  "packageManager": "pnpm@8.11.0",
6
6
  "description": "Anthony's ESLint config",
7
7
  "author": "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)",
@@ -51,16 +51,16 @@
51
51
  },
52
52
  "dependencies": {
53
53
  "@antfu/eslint-define-config": "^1.23.0-2",
54
- "@antfu/install-pkg": "^0.3.0",
54
+ "@antfu/install-pkg": "^0.3.1",
55
55
  "@eslint-types/jsdoc": "46.8.2-1",
56
56
  "@eslint-types/typescript-eslint": "^6.12.0",
57
57
  "@eslint-types/unicorn": "^49.0.0",
58
- "@stylistic/eslint-plugin": "^1.4.1",
58
+ "@stylistic/eslint-plugin": "^1.5.0-beta.0",
59
59
  "@typescript-eslint/eslint-plugin": "^6.13.1",
60
60
  "@typescript-eslint/parser": "^6.13.1",
61
- "eslint-config-flat-gitignore": "^0.1.1",
61
+ "eslint-config-flat-gitignore": "^0.1.2",
62
62
  "eslint-parser-plain": "^0.1.0",
63
- "eslint-plugin-antfu": "^1.0.11",
63
+ "eslint-plugin-antfu": "^1.0.13",
64
64
  "eslint-plugin-eslint-comments": "^3.2.0",
65
65
  "eslint-plugin-i": "^2.29.0",
66
66
  "eslint-plugin-jsdoc": "^46.9.0",
@@ -72,7 +72,7 @@
72
72
  "eslint-plugin-unicorn": "^49.0.0",
73
73
  "eslint-plugin-unused-imports": "^3.0.0",
74
74
  "eslint-plugin-vitest": "^0.3.10",
75
- "eslint-plugin-vue": "^9.19.1",
75
+ "eslint-plugin-vue": "^9.19.2",
76
76
  "eslint-plugin-yml": "^1.10.0",
77
77
  "globals": "^13.23.0",
78
78
  "jsonc-eslint-parser": "^2.4.0",
@@ -90,16 +90,16 @@
90
90
  "@stylistic/eslint-plugin-migrate": "^1.4.1",
91
91
  "@types/eslint": "^8.44.8",
92
92
  "@types/fs-extra": "^11.0.4",
93
- "@types/node": "^20.10.1",
93
+ "@types/node": "^20.10.2",
94
94
  "@types/prompts": "^2.4.9",
95
95
  "@types/yargs": "^17.0.32",
96
- "@unocss/eslint-plugin": "^0.57.7",
96
+ "@unocss/eslint-plugin": "^0.58.0",
97
97
  "bumpp": "^9.2.0",
98
- "eslint": "^8.54.0",
98
+ "eslint": "^8.55.0",
99
99
  "eslint-flat-config-viewer": "^0.1.3",
100
100
  "eslint-plugin-react": "^7.33.2",
101
101
  "eslint-plugin-react-hooks": "^4.6.0",
102
- "eslint-plugin-react-refresh": "^0.4.4",
102
+ "eslint-plugin-react-refresh": "^0.4.5",
103
103
  "esno": "^4.0.0",
104
104
  "execa": "^8.0.1",
105
105
  "fast-glob": "^3.3.2",
@@ -110,7 +110,7 @@
110
110
  "tsup": "^8.0.1",
111
111
  "typescript": "^5.3.2",
112
112
  "vitest": "^0.34.6",
113
- "@antfu/eslint-config": "2.2.1"
113
+ "@antfu/eslint-config": "2.2.2"
114
114
  },
115
115
  "simple-git-hooks": {
116
116
  "pre-commit": "pnpm lint-staged"