@antfu/eslint-config 2.1.1 → 2.1.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
@@ -8,9 +8,10 @@
8
8
  - Lints also for json, yaml, markdown
9
9
  - Sorted imports, dangling commas
10
10
  - Reasonable defaults, best practices, only one-line of config
11
- - Respects `.gitignore` by default
11
+ - Opinionated, but [very customizable](#customization)
12
12
  - [ESLint Flat config](https://eslint.org/docs/latest/use/configure/configuration-files-new), compose easily!
13
13
  - Using [ESLint Stylistic](https://github.com/eslint-stylistic/eslint-stylistic)
14
+ - Respects `.gitignore` by default
14
15
  - **Style principle**: Minimal for reading, stable for diff, consistent
15
16
 
16
17
  > [!IMPORTANT]
@@ -432,6 +433,16 @@ and then
432
433
  npm i -D lint-staged simple-git-hooks
433
434
  ```
434
435
 
436
+ ## View what rules are enabled
437
+
438
+ I built a visual tool to help you view what rules are enabled in your project and apply them to what files, [eslint-flat-config-viewer](https://github.com/antfu/eslint-flat-config-viewer)
439
+
440
+ Go to your project root that contains `eslint.config.js` and run:
441
+
442
+ ```bash
443
+ npx eslint-flat-config-viewer
444
+ ```
445
+
435
446
  ## Versioning Policy
436
447
 
437
448
  This project follows [Semantic Versioning](https://semver.org/) for releases. However, since this is just a config and involves opinions and many moving parts, we don't treat rules changes as breaking changes.
package/dist/cli.cjs CHANGED
@@ -46,14 +46,14 @@ 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.1.1";
49
+ var version = "2.1.2";
50
50
  var devDependencies = {
51
51
  "@antfu/eslint-config": "workspace:*",
52
- "@antfu/ni": "^0.21.10",
53
- "@stylistic/eslint-plugin-migrate": "^1.4.0",
54
- "@types/eslint": "^8.44.7",
52
+ "@antfu/ni": "^0.21.12",
53
+ "@stylistic/eslint-plugin-migrate": "^1.4.1",
54
+ "@types/eslint": "^8.44.8",
55
55
  "@types/fs-extra": "^11.0.4",
56
- "@types/node": "^20.9.4",
56
+ "@types/node": "^20.10.1",
57
57
  "@types/prompts": "^2.4.9",
58
58
  "@types/yargs": "^17.0.32",
59
59
  "@unocss/eslint-plugin": "^0.57.7",
@@ -66,7 +66,7 @@ var devDependencies = {
66
66
  esno: "^4.0.0",
67
67
  execa: "^8.0.1",
68
68
  "fast-glob": "^3.3.2",
69
- "fs-extra": "^11.1.1",
69
+ "fs-extra": "^11.2.0",
70
70
  "lint-staged": "^15.1.0",
71
71
  rimraf: "^5.0.5",
72
72
  "simple-git-hooks": "^2.9.0",
package/dist/cli.js CHANGED
@@ -17,14 +17,14 @@ import parse from "parse-gitignore";
17
17
  import c from "picocolors";
18
18
 
19
19
  // package.json
20
- var version = "2.1.1";
20
+ var version = "2.1.2";
21
21
  var devDependencies = {
22
22
  "@antfu/eslint-config": "workspace:*",
23
- "@antfu/ni": "^0.21.10",
24
- "@stylistic/eslint-plugin-migrate": "^1.4.0",
25
- "@types/eslint": "^8.44.7",
23
+ "@antfu/ni": "^0.21.12",
24
+ "@stylistic/eslint-plugin-migrate": "^1.4.1",
25
+ "@types/eslint": "^8.44.8",
26
26
  "@types/fs-extra": "^11.0.4",
27
- "@types/node": "^20.9.4",
27
+ "@types/node": "^20.10.1",
28
28
  "@types/prompts": "^2.4.9",
29
29
  "@types/yargs": "^17.0.32",
30
30
  "@unocss/eslint-plugin": "^0.57.7",
@@ -37,7 +37,7 @@ var devDependencies = {
37
37
  esno: "^4.0.0",
38
38
  execa: "^8.0.1",
39
39
  "fast-glob": "^3.3.2",
40
- "fs-extra": "^11.1.1",
40
+ "fs-extra": "^11.2.0",
41
41
  "lint-staged": "^15.1.0",
42
42
  rimraf: "^5.0.5",
43
43
  "simple-git-hooks": "^2.9.0",
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@antfu/eslint-config",
3
3
  "type": "module",
4
- "version": "2.1.1",
5
- "packageManager": "pnpm@8.10.5",
4
+ "version": "2.1.2",
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/)",
8
8
  "license": "MIT",
@@ -47,15 +47,15 @@
47
47
  },
48
48
  "dependencies": {
49
49
  "@antfu/eslint-define-config": "^1.23.0-2",
50
- "@antfu/install-pkg": "^0.2.0",
50
+ "@antfu/install-pkg": "^0.3.0",
51
51
  "@eslint-types/jsdoc": "46.8.2-1",
52
52
  "@eslint-types/typescript-eslint": "^6.12.0",
53
53
  "@eslint-types/unicorn": "^49.0.0",
54
- "@stylistic/eslint-plugin": "^1.4.0",
55
- "@typescript-eslint/eslint-plugin": "^6.12.0",
56
- "@typescript-eslint/parser": "^6.12.0",
54
+ "@stylistic/eslint-plugin": "^1.4.1",
55
+ "@typescript-eslint/eslint-plugin": "^6.13.1",
56
+ "@typescript-eslint/parser": "^6.13.1",
57
57
  "eslint-config-flat-gitignore": "^0.1.1",
58
- "eslint-plugin-antfu": "^1.0.10",
58
+ "eslint-plugin-antfu": "^1.0.11",
59
59
  "eslint-plugin-eslint-comments": "^3.2.0",
60
60
  "eslint-plugin-i": "^2.29.0",
61
61
  "eslint-plugin-jsdoc": "^46.9.0",
@@ -63,11 +63,11 @@
63
63
  "eslint-plugin-markdown": "^3.0.1",
64
64
  "eslint-plugin-n": "^16.3.1",
65
65
  "eslint-plugin-no-only-tests": "^3.1.0",
66
- "eslint-plugin-perfectionist": "^2.4.0",
66
+ "eslint-plugin-perfectionist": "^2.5.0",
67
67
  "eslint-plugin-unicorn": "^49.0.0",
68
68
  "eslint-plugin-unused-imports": "^3.0.0",
69
69
  "eslint-plugin-vitest": "^0.3.10",
70
- "eslint-plugin-vue": "^9.18.1",
70
+ "eslint-plugin-vue": "^9.19.1",
71
71
  "eslint-plugin-yml": "^1.10.0",
72
72
  "globals": "^13.23.0",
73
73
  "jsonc-eslint-parser": "^2.4.0",
@@ -80,11 +80,11 @@
80
80
  "yargs": "^17.7.2"
81
81
  },
82
82
  "devDependencies": {
83
- "@antfu/ni": "^0.21.10",
84
- "@stylistic/eslint-plugin-migrate": "^1.4.0",
85
- "@types/eslint": "^8.44.7",
83
+ "@antfu/ni": "^0.21.12",
84
+ "@stylistic/eslint-plugin-migrate": "^1.4.1",
85
+ "@types/eslint": "^8.44.8",
86
86
  "@types/fs-extra": "^11.0.4",
87
- "@types/node": "^20.9.4",
87
+ "@types/node": "^20.10.1",
88
88
  "@types/prompts": "^2.4.9",
89
89
  "@types/yargs": "^17.0.32",
90
90
  "@unocss/eslint-plugin": "^0.57.7",
@@ -97,14 +97,14 @@
97
97
  "esno": "^4.0.0",
98
98
  "execa": "^8.0.1",
99
99
  "fast-glob": "^3.3.2",
100
- "fs-extra": "^11.1.1",
100
+ "fs-extra": "^11.2.0",
101
101
  "lint-staged": "^15.1.0",
102
102
  "rimraf": "^5.0.5",
103
103
  "simple-git-hooks": "^2.9.0",
104
104
  "tsup": "^8.0.1",
105
105
  "typescript": "^5.3.2",
106
106
  "vitest": "^0.34.6",
107
- "@antfu/eslint-config": "2.1.1"
107
+ "@antfu/eslint-config": "2.1.2"
108
108
  },
109
109
  "simple-git-hooks": {
110
110
  "pre-commit": "pnpm lint-staged"