@dauphaihau/eslint-config 0.3.1 → 0.3.4

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 +4 -9
  2. package/package.json +14 -15
package/dist/index.js CHANGED
@@ -269,13 +269,7 @@ function baseConfig(options = {}) {
269
269
  // Indent
270
270
  "@stylistic/indent": ["error", 2, { SwitchCase: 1 }],
271
271
  // Commas
272
- "@stylistic/comma-dangle": ["error", {
273
- arrays: "always-multiline",
274
- objects: "always-multiline",
275
- imports: "never",
276
- exports: "never",
277
- functions: "never"
278
- }],
272
+ "@stylistic/comma-dangle": ["error", "always-multiline"],
279
273
  // Line breaks
280
274
  "@stylistic/object-curly-newline": ["error", {
281
275
  multiline: true,
@@ -297,7 +291,8 @@ function baseConfig(options = {}) {
297
291
  "?": "before",
298
292
  "|": "before",
299
293
  ":": "before",
300
- "||": "before"
294
+ "||": "before",
295
+ "&&": "before"
301
296
  }
302
297
  }],
303
298
  "@stylistic/dot-location": ["error", "property"],
@@ -666,7 +661,7 @@ var identifierQualityRules = {
666
661
  ],
667
662
  // Discourage vague placeholder names.
668
663
  // Prefer domain-specific names such as users, payload, responseBody, or config.
669
- "id-denylist": ["warn", "foo", "bar", "baz", "tmp", "arr", "obj", "data"]
664
+ "id-denylist": ["warn", "foo", "bar", "baz", "val", "err", "tmp", "arr", "obj"]
670
665
  };
671
666
  var variableNamingSelectors = [
672
667
  // ---------- Boolean naming ----------
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dauphaihau/eslint-config",
3
- "version": "0.3.1",
3
+ "version": "0.3.4",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -11,19 +11,6 @@
11
11
  "dist",
12
12
  "README.md"
13
13
  ],
14
- "scripts": {
15
- "build": "pnpm exec tsup src/index.ts --dts --format esm --external @eslint/js --external @stylistic/eslint-plugin --external typescript-eslint --external eslint-plugin-check-file --external eslint-plugin-react --external eslint-plugin-react-hooks --external eslint-plugin-react-refresh --external eslint-plugin-tailwindcss --external eslint-plugin-vue --external vue-eslint-parser",
16
- "prepublishOnly": "pnpm build",
17
- "lint": "eslint .",
18
- "lint:fix": "eslint . --fix",
19
- "test": "vitest run",
20
- "typecheck": "tsc --noEmit",
21
- "version:patch": "pnpm build && pnpm version patch",
22
- "version:minor": "pnpm build && pnpm version minor",
23
- "version:major": "pnpm build && pnpm version major",
24
- "push:tags": "git push --follow-tags",
25
- "ship": "pnpm publish --no-git-checks"
26
- },
27
14
  "dependencies": {
28
15
  "@eslint/js": "^10.0.0",
29
16
  "@stylistic/eslint-plugin": "^5.9.0",
@@ -68,5 +55,17 @@
68
55
  "tsup": "^8.0.0",
69
56
  "typescript": "^5.4.0",
70
57
  "vitest": "^3.2.4"
58
+ },
59
+ "scripts": {
60
+ "build": "pnpm exec tsup src/index.ts --dts --format esm --external @eslint/js --external @stylistic/eslint-plugin --external typescript-eslint --external eslint-plugin-check-file --external eslint-plugin-react --external eslint-plugin-react-hooks --external eslint-plugin-react-refresh --external eslint-plugin-tailwindcss --external eslint-plugin-vue --external vue-eslint-parser",
61
+ "lint": "eslint .",
62
+ "lint:fix": "eslint . --fix",
63
+ "test": "vitest run",
64
+ "typecheck": "tsc --noEmit",
65
+ "version:patch": "pnpm build && pnpm version patch",
66
+ "version:minor": "pnpm build && pnpm version minor",
67
+ "version:major": "pnpm build && pnpm version major",
68
+ "push:tags": "git push --follow-tags",
69
+ "ship": "pnpm publish --no-git-checks"
71
70
  }
72
- }
71
+ }