@jiakun-zhao/eslint-config 1.1.4 → 1.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.
Files changed (2) hide show
  1. package/dist/index.cjs +6 -2
  2. package/package.json +2 -1
package/dist/index.cjs CHANGED
@@ -31,7 +31,8 @@ const ignorePatterns = [
31
31
  const index = {
32
32
  plugins: [
33
33
  "unicorn",
34
- "unused-imports"
34
+ "unused-imports",
35
+ "antfu"
35
36
  ],
36
37
  extends: [
37
38
  "standard",
@@ -104,6 +105,7 @@ const index = {
104
105
  ],
105
106
  rules: {
106
107
  "@typescript-eslint/no-explicit-any": "off",
108
+ "@typescript-eslint/no-unused-vars": "warn",
107
109
  // newline
108
110
  "array-bracket-newline": ["error", "consistent"],
109
111
  "array-element-newline": ["error", "consistent"],
@@ -135,7 +137,9 @@ const index = {
135
137
  "comma-dangle": ["error", "always-multiline"],
136
138
  "@typescript-eslint/comma-dangle": ["error", "always-multiline"],
137
139
  // unicorn
138
- "unicorn/prefer-node-protocol": "error"
140
+ "unicorn/prefer-node-protocol": "error",
141
+ // antfu
142
+ "antfu/if-newline": "error"
139
143
  }
140
144
  };
141
145
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jiakun-zhao/eslint-config",
3
- "version": "1.1.4",
3
+ "version": "1.1.5",
4
4
  "description": "Jiakun's ESLint config.",
5
5
  "keywords": [
6
6
  "eslint-config"
@@ -20,6 +20,7 @@
20
20
  "@typescript-eslint/eslint-plugin": "^6.1.0",
21
21
  "@typescript-eslint/parser": "^6.1.0",
22
22
  "eslint-config-standard": "^17.1.0",
23
+ "eslint-plugin-antfu": "^0.39.8",
23
24
  "eslint-plugin-import": "^2.27.5",
24
25
  "eslint-plugin-n": "^16.0.1",
25
26
  "eslint-plugin-promise": "^6.1.1",