@phaicom/eslint-config 0.4.3 → 0.5.1

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.js +5 -2
  2. package/package.json +6 -6
package/dist/index.js CHANGED
@@ -55,7 +55,8 @@ var eslintConfig = (options, ...configs) => {
55
55
  const {
56
56
  phaicom: enablePhaicom = true,
57
57
  tailwind: enableTailwind = false,
58
- vue: enableVue
58
+ vue: enableVue,
59
+ rules: customRules = {}
59
60
  } = options;
60
61
  if (enableTailwind) {
61
62
  configs.push(tailwind());
@@ -67,7 +68,9 @@ var eslintConfig = (options, ...configs) => {
67
68
  configs.push(base_default.vue);
68
69
  }
69
70
  }
70
- return antfu(options, ...configs);
71
+ configs.push({ rules: customRules });
72
+ const { rules, ...restOptions } = options;
73
+ return antfu(restOptions, ...configs);
71
74
  };
72
75
  var index_default = eslintConfig;
73
76
  export {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@phaicom/eslint-config",
3
3
  "type": "module",
4
- "version": "0.4.3",
4
+ "version": "0.5.1",
5
5
  "description": "Phaicom's config based on @antfu/eslint-config",
6
6
  "author": "Reawpai Chunsoi <reawpai.chunsoi@gmail.com> (https://github.com/phaicom)",
7
7
  "license": "MIT",
@@ -29,16 +29,16 @@
29
29
  }
30
30
  },
31
31
  "dependencies": {
32
- "@antfu/eslint-config": "^4.19.0",
33
- "eslint": "^9.32.0"
32
+ "@antfu/eslint-config": "^5.2.1",
33
+ "eslint": "^9.33.0"
34
34
  },
35
35
  "devDependencies": {
36
36
  "@commitlint/cli": "^19.8.1",
37
37
  "@commitlint/config-conventional": "^19.8.1",
38
- "bumpp": "^10.2.2",
39
- "eslint-plugin-better-tailwindcss": "^3.7.3",
38
+ "bumpp": "^10.2.3",
39
+ "eslint-plugin-better-tailwindcss": "^3.7.4",
40
40
  "eslint-plugin-format": "^1.0.1",
41
- "lint-staged": "^16.1.2",
41
+ "lint-staged": "^16.1.5",
42
42
  "simple-git-hooks": "^2.13.1",
43
43
  "tsup": "^8.5.0",
44
44
  "typescript": "^5.9.2"