@ocavue/eslint-config 2.12.5 → 2.13.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.
@@ -1 +1 @@
1
- {"version":3,"file":"unicorn.d.ts","sourceRoot":"","sources":["../../src/unicorn.js"],"names":[],"mappings":"AAMA,iGAwEC"}
1
+ {"version":3,"file":"unicorn.d.ts","sourceRoot":"","sources":["../../src/unicorn.js"],"names":[],"mappings":"AAIA,iGAsEC"}
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@ocavue/eslint-config",
3
3
  "type": "module",
4
- "version": "2.12.5",
5
- "packageManager": "pnpm@9.15.6",
4
+ "version": "2.13.1",
5
+ "packageManager": "pnpm@9.15.9",
6
6
  "description": "",
7
7
  "author": "ocavue <ocavue@gmail.com>",
8
8
  "license": "MIT",
@@ -38,29 +38,28 @@
38
38
  "prepublishOnly": "nr build"
39
39
  },
40
40
  "dependencies": {
41
- "@eslint-types/unicorn": "^52.0.0",
42
- "@eslint/js": "^9.19.0",
41
+ "@eslint/js": "^9.20.0",
43
42
  "@eslint/markdown": "^6.2.2",
44
43
  "eslint-config-flat-gitignore": "^2.1.0",
45
- "eslint-config-prettier": "^10.0.2",
46
- "eslint-import-resolver-typescript": "^3.8.3",
47
- "eslint-plugin-antfu": "^3.1.0",
48
- "eslint-plugin-import-x": "^4.6.1",
44
+ "eslint-config-prettier": "^10.1.1",
45
+ "eslint-import-resolver-typescript": "^3.9.1",
46
+ "eslint-plugin-antfu": "^3.1.1",
47
+ "eslint-plugin-import-x": "^4.9.0",
49
48
  "eslint-plugin-no-only-tests": "^3.3.0",
50
- "eslint-plugin-package-json": "^0.26.0",
49
+ "eslint-plugin-package-json": "^0.29.0",
51
50
  "eslint-plugin-react": "^7.37.4",
52
51
  "eslint-plugin-react-hooks": "^5.2.0",
53
- "eslint-plugin-unicorn": "^56.0.1",
54
- "eslint-plugin-vue": "^9.32.0",
55
- "typescript-eslint": "^8.25.0"
52
+ "eslint-plugin-unicorn": "^57.0.0",
53
+ "eslint-plugin-vue": "^9.33.0",
54
+ "typescript-eslint": "^8.26.1"
56
55
  },
57
56
  "devDependencies": {
58
- "@antfu/ni": "^0.23.2",
57
+ "@antfu/ni": "^23.3.1",
59
58
  "@types/eslint-config-prettier": "^6.11.3",
60
59
  "@types/node": "^20.17.9",
61
- "@typescript-eslint/utils": "^8.25.0",
62
- "eslint": "^9.19.0",
63
- "prettier": "^3.5.2",
60
+ "@typescript-eslint/utils": "^8.26.1",
61
+ "eslint": "^9.20.1",
62
+ "prettier": "^3.5.3",
64
63
  "typescript": "^5.7.3"
65
64
  },
66
65
  "renovate": {
@@ -1,15 +1,15 @@
1
1
  // @ts-check
2
2
 
3
- import pkgJson from 'eslint-plugin-package-json/configs/recommended'
3
+ import pkgJson from 'eslint-plugin-package-json'
4
4
 
5
5
  /**
6
6
  * Sort package.json keys
7
7
  */
8
8
  export function packageJson() {
9
9
  const config = {
10
- ...pkgJson,
10
+ ...pkgJson.configs.recommended,
11
11
  rules: {
12
- ...pkgJson.rules,
12
+ ...pkgJson.configs.recommended.rules,
13
13
  'package-json/no-empty-fields': 'off',
14
14
  'package-json/valid-package-definition': 'off',
15
15
  'package-json/sort-collections': [
package/src/unicorn.js CHANGED
@@ -1,7 +1,5 @@
1
1
  // @ts-check
2
2
 
3
- /// <reference types="@eslint-types/unicorn" />
4
-
5
3
  import plugin from 'eslint-plugin-unicorn'
6
4
 
7
5
  export function unicorn() {
@@ -17,8 +15,8 @@ export function unicorn() {
17
15
  'unicorn/error-message': 'error',
18
16
  // Uppercase regex escapes
19
17
  'unicorn/escape-case': 'error',
20
- // Array.isArray instead of instanceof
21
- 'unicorn/no-instanceof-array': 'error',
18
+ // Array.isArray instead of instanceof etc
19
+ 'unicorn/no-instanceof-builtins': 'error',
22
20
  // Prevent deprecated `new Buffer()`
23
21
  'unicorn/no-new-buffer': 'error',
24
22
  // Keep regex literals safe!
@@ -29,8 +27,6 @@ export function unicorn() {
29
27
  'unicorn/prefer-includes': 'error',
30
28
  // String methods startsWith/endsWith instead of more complicated stuff
31
29
  'unicorn/prefer-string-starts-ends-with': 'error',
32
- // textContent instead of innerText
33
- 'unicorn/prefer-text-content': 'error',
34
30
  // Enforce throwing type error when throwing error while checking typeof
35
31
  'unicorn/prefer-type-error': 'error',
36
32
  // Use new when throwing error