@vida0905/eslint-config 0.1.4 → 0.1.5

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
@@ -1,6 +1,6 @@
1
1
  # @vida0905/eslint-config
2
2
 
3
- [![npm](https://img.shields.io/npm/v/@vida0905/eslint-config.svg)](https://npmjs.com/package/@vida0905/eslint-config)
3
+ [![npm](https://img.shields.io/npm/v/@vida0905/eslint-config.svg?color=444&label=)](https://npmjs.com/package/@vida0905/eslint-config) [![code style](https://antfu.me/badge-code-style.svg)](https://github.com/antfu/eslint-config)
4
4
 
5
5
  Self use eslint config, extends [antfu's config](https://github.com/antfu/eslint-config)
6
6
 
@@ -51,7 +51,12 @@ in `.vscode/settings.json`, more info to [@antfu/eslint-config](https://github.c
51
51
  "markdown",
52
52
  "json",
53
53
  "jsonc",
54
- "yaml"
54
+ "yaml",
55
+ "toml",
56
+ "xml",
57
+ "gql",
58
+ "graphql",
59
+ "astro"
55
60
  ]
56
61
  }
57
62
  ```
package/dist/index.cjs CHANGED
@@ -61,6 +61,13 @@ var pinia = [
61
61
  }
62
62
  ];
63
63
 
64
+ // src/overrides/javascript.ts
65
+ var javascript = {
66
+ "arrow-body-style": ["error", "as-needed"],
67
+ "no-unused-private-class-members": "error",
68
+ "require-atomic-updates": ["error", { allowProperties: true }]
69
+ };
70
+
64
71
  // src/overrides/vue.ts
65
72
  var vue = {
66
73
  "vue/max-attributes-per-line": ["error", {
@@ -83,9 +90,9 @@ function vida(options = {}, ...userConfigs) {
83
90
  quotes: "single",
84
91
  semi: true
85
92
  },
86
- formatters: {
87
- css: true,
88
- html: true
93
+ formatters: false,
94
+ javascript: {
95
+ overrides: javascript
89
96
  },
90
97
  vue: {
91
98
  overrides: vue
package/dist/index.js CHANGED
@@ -26,6 +26,13 @@ var pinia = [
26
26
  }
27
27
  ];
28
28
 
29
+ // src/overrides/javascript.ts
30
+ var javascript = {
31
+ "arrow-body-style": ["error", "as-needed"],
32
+ "no-unused-private-class-members": "error",
33
+ "require-atomic-updates": ["error", { allowProperties: true }]
34
+ };
35
+
29
36
  // src/overrides/vue.ts
30
37
  var vue = {
31
38
  "vue/max-attributes-per-line": ["error", {
@@ -48,9 +55,9 @@ function vida(options = {}, ...userConfigs) {
48
55
  quotes: "single",
49
56
  semi: true
50
57
  },
51
- formatters: {
52
- css: true,
53
- html: true
58
+ formatters: false,
59
+ javascript: {
60
+ overrides: javascript
54
61
  },
55
62
  vue: {
56
63
  overrides: vue
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vida0905/eslint-config",
3
3
  "type": "module",
4
- "version": "0.1.4",
4
+ "version": "0.1.5",
5
5
  "description": "Vida Xie's ESLint Config",
6
6
  "author": "Vida Xie <vida_2020@163.com> (https://github.com/9romise/)",
7
7
  "license": "MIT",
@@ -27,20 +27,15 @@
27
27
  "files": [
28
28
  "dist"
29
29
  ],
30
- "peerDependencies": {
31
- "eslint": ">=8.40.0"
32
- },
33
30
  "dependencies": {
34
- "@antfu/eslint-config": "^2.15.0",
31
+ "@antfu/eslint-config": "^2.18.1",
35
32
  "eslint-plugin-pinia": "^0.1.13",
36
33
  "local-pkg": "^0.5.0"
37
34
  },
38
35
  "devDependencies": {
39
- "@eslint/config-inspector": "^0.4.6",
40
- "@unocss/eslint-plugin": "0.59.4",
41
- "bumpp": "^9.4.0",
42
- "eslint": "^9.0.0",
43
- "eslint-plugin-format": "^0.1.1",
36
+ "@eslint/config-inspector": "^0.4.8",
37
+ "bumpp": "^9.4.1",
38
+ "eslint": "^9.3.0",
44
39
  "tsup": "^8.0.2",
45
40
  "typescript": "^5.4.5"
46
41
  },