@jiakun-zhao/eslint-config 2.1.0 → 3.0.0

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.
Files changed (2) hide show
  1. package/dist/index.mjs +12 -10
  2. package/package.json +16 -12
package/dist/index.mjs CHANGED
@@ -1,25 +1,27 @@
1
1
  import antfu from '@antfu/eslint-config';
2
+ import { isPackageExists } from 'local-pkg';
2
3
 
3
4
  const index = antfu({
4
- rules: {
5
- "no-console": "warn"
6
- },
7
5
  stylistic: {
8
6
  overrides: {
7
+ "no-console": "warn",
8
+ // typescript
9
+ "ts/ban-ts-comment": "off",
10
+ // unused-imports
11
+ "unused-imports/no-unused-imports": "warn",
12
+ // jsx
13
+ "style/jsx-quotes": ["off", "prefer-single"],
9
14
  "style/jsx-one-expression-per-line": "off"
10
15
  }
11
16
  },
12
- typescript: {
13
- overrides: {
14
- "ts/ban-ts-comment": "off"
15
- }
16
- },
17
17
  vue: {
18
18
  overrides: {
19
19
  "vue/html-self-closing": "off",
20
- "vue/singleline-html-element-content-newline": "off"
20
+ "vue/singleline-html-element-content-newline": "off",
21
+ "vue/static-class-names-order": "warn"
21
22
  }
22
- }
23
+ },
24
+ astro: isPackageExists("eslint-plugin-astro")
23
25
  });
24
26
 
25
27
  export { index as default };
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@jiakun-zhao/eslint-config",
3
3
  "type": "module",
4
- "version": "2.1.0",
5
- "packageManager": "pnpm@8.15.5",
4
+ "version": "3.0.0",
5
+ "packageManager": "pnpm@9.0.1",
6
6
  "description": "Jiakun's ESLint config.",
7
7
  "author": "Jiakun Zhao <hi@zhaojiakun.com>",
8
8
  "license": "MIT",
@@ -12,25 +12,29 @@
12
12
  ],
13
13
  "main": "dist/index.mjs",
14
14
  "files": [
15
- "dist/index.mjs",
16
- "package.json"
15
+ "dist"
17
16
  ],
18
17
  "peerDependencies": {
19
- "eslint": ">=8.40.0"
18
+ "eslint": ">=9.0.0",
19
+ "eslint-plugin-astro": "^0.31.4"
20
+ },
21
+ "peerDependenciesMeta": {
22
+ "eslint-plugin-astro": {
23
+ "optional": true
24
+ }
20
25
  },
21
26
  "dependencies": {
22
- "@antfu/eslint-config": "^2.9.0"
27
+ "@antfu/eslint-config": "^2.14.0",
28
+ "local-pkg": "^0.5.0"
23
29
  },
24
30
  "devDependencies": {
25
- "@types/node": "^20.11.30",
31
+ "@types/node": "^20.12.7",
26
32
  "bumpp": "^9.4.0",
27
- "eslint": "^8.57.0",
28
- "typescript": "^5.4.3",
33
+ "eslint": "^9.0.0",
34
+ "eslint-plugin-astro": "^0.34.0",
35
+ "typescript": "^5.4.5",
29
36
  "unbuild": "^2.0.0"
30
37
  },
31
- "eslintConfig": {
32
- "extends": "./dist/index.cjs"
33
- },
34
38
  "scripts": {
35
39
  "build": "unbuild",
36
40
  "release": "bumpp && pnpm publish && npx cnpm sync @jiakun-zhao/eslint-config",