@tofrankie/eslint 0.0.1 → 0.0.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
@@ -2,6 +2,9 @@
2
2
 
3
3
  Based on [ESLint](https://eslint.org/docs/latest/) + [@antfu/eslint-config](https://github.com/antfu/eslint-config).
4
4
 
5
+ > [!IMPORTANT]
6
+ > Rule presets are not yet stable and may change.
7
+
5
8
  ## Quick Start
6
9
 
7
10
  ```bash
package/dist/index.cjs CHANGED
@@ -37,9 +37,35 @@ function defineConfig(options, userConfigs) {
37
37
  rules: {
38
38
  "no-console": "off",
39
39
  "no-debugger": "warn",
40
+ "no-unused-vars": ["error", {
41
+ vars: "all",
42
+ args: "all",
43
+ argsIgnorePattern: "^_",
44
+ destructuredArrayIgnorePattern: "^_",
45
+ varsIgnorePattern: "^_",
46
+ ignoreRestSiblings: true
47
+ }],
40
48
  "node/prefer-global/process": "off",
41
49
  "test/prefer-lowercase-title": "off",
42
- "pnpm/yaml-enforce-settings": "off"
50
+ "pnpm/yaml-enforce-settings": "off",
51
+ "style/quotes": [
52
+ "error",
53
+ "single",
54
+ { avoidEscape: true }
55
+ ],
56
+ "style/arrow-parens": ["error", "as-needed"],
57
+ "style/brace-style": [
58
+ "error",
59
+ "1tbs",
60
+ { allowSingleLine: false }
61
+ ],
62
+ "style/operator-linebreak": [
63
+ "error",
64
+ "before",
65
+ { overrides: { "&&": "after" } }
66
+ ],
67
+ "style/comma-dangle": "off",
68
+ "eslint-comments/no-unlimited-disable": "off"
43
69
  }
44
70
  }, options), userConfigs);
45
71
  }
package/dist/index.mjs CHANGED
@@ -8,9 +8,35 @@ function defineConfig(options, userConfigs) {
8
8
  rules: {
9
9
  "no-console": "off",
10
10
  "no-debugger": "warn",
11
+ "no-unused-vars": ["error", {
12
+ vars: "all",
13
+ args: "all",
14
+ argsIgnorePattern: "^_",
15
+ destructuredArrayIgnorePattern: "^_",
16
+ varsIgnorePattern: "^_",
17
+ ignoreRestSiblings: true
18
+ }],
11
19
  "node/prefer-global/process": "off",
12
20
  "test/prefer-lowercase-title": "off",
13
- "pnpm/yaml-enforce-settings": "off"
21
+ "pnpm/yaml-enforce-settings": "off",
22
+ "style/quotes": [
23
+ "error",
24
+ "single",
25
+ { avoidEscape: true }
26
+ ],
27
+ "style/arrow-parens": ["error", "as-needed"],
28
+ "style/brace-style": [
29
+ "error",
30
+ "1tbs",
31
+ { allowSingleLine: false }
32
+ ],
33
+ "style/operator-linebreak": [
34
+ "error",
35
+ "before",
36
+ { overrides: { "&&": "after" } }
37
+ ],
38
+ "style/comma-dangle": "off",
39
+ "eslint-comments/no-unlimited-disable": "off"
14
40
  }
15
41
  }, options), userConfigs);
16
42
  }
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@tofrankie/eslint",
3
3
  "type": "module",
4
- "version": "0.0.1",
4
+ "version": "0.0.2",
5
5
  "description": "Shared ESLint configuration for @tofrankie projects",
6
6
  "author": "Frankie <1426203851@qq.com>",
7
7
  "license": "MIT",
8
- "homepage": "https://github.com/tofrankie/config#readme",
8
+ "homepage": "https://github.com/tofrankie/config/tree/main/packages/eslint",
9
9
  "repository": "github:tofrankie/config",
10
10
  "bugs": "https://github.com/tofrankie/config/issues",
11
11
  "keywords": [
@@ -44,7 +44,7 @@
44
44
  "devDependencies": {
45
45
  "@antfu/eslint-config": "^7.3.0",
46
46
  "@types/lodash.merge": "^4.6.9",
47
- "eslint": "^10.0.0"
47
+ "eslint": "^9.39.2"
48
48
  },
49
49
  "scripts": {
50
50
  "build": "tsdown"