@ocavue/eslint-config 1.2.0 → 1.2.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.
@@ -1 +1 @@
1
- {"version":3,"file":"package-json.d.ts","sourceRoot":"","sources":["../../src/package-json.js"],"names":[],"mappings":"AAOA;;GAEG;AACH,qFA0EC"}
1
+ {"version":3,"file":"package-json.d.ts","sourceRoot":"","sources":["../../src/package-json.js"],"names":[],"mappings":"AAOA;;GAEG;AACH,qFAyEC"}
@@ -1 +1 @@
1
- {"version":3,"file":"typescript.d.ts","sourceRoot":"","sources":["../../src/typescript.js"],"names":[],"mappings":"AAUA;;;;GAIG;AAEH;;GAEG;AACH,2HA0EC;;;;;;;;qBA1FoB,2BAA2B;qBAD3B,kCAAkC"}
1
+ {"version":3,"file":"typescript.d.ts","sourceRoot":"","sources":["../../src/typescript.js"],"names":[],"mappings":"AAUA;;;;GAIG;AAEH;;GAEG;AACH,2HAyEC;;;;;;;;qBAzFoB,2BAA2B;qBAD3B,kCAAkC"}
@@ -1 +1 @@
1
- {"version":3,"file":"unicorn.d.ts","sourceRoot":"","sources":["../../src/unicorn.js"],"names":[],"mappings":"AAKA,iFA+DC"}
1
+ {"version":3,"file":"unicorn.d.ts","sourceRoot":"","sources":["../../src/unicorn.js"],"names":[],"mappings":"AAKA,iFAiEC"}
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@ocavue/eslint-config",
3
3
  "type": "module",
4
- "version": "1.2.0",
5
- "packageManager": "pnpm@8.5.1",
4
+ "version": "1.2.2",
5
+ "packageManager": "pnpm@8.6.12",
6
6
  "description": "",
7
7
  "author": "ocavue <ocavue@gmail.com>",
8
8
  "license": "MIT",
@@ -31,30 +31,30 @@
31
31
  "prepublishOnly": "nr build"
32
32
  },
33
33
  "dependencies": {
34
- "@types/eslint": "^8.40.0",
34
+ "@types/eslint": "^8.44.2",
35
35
  "@types/eslint-plugin-markdown": "^2.0.0",
36
- "@typescript-eslint/eslint-plugin": "^5.59.7",
37
- "@typescript-eslint/parser": "^5.59.7",
38
- "eslint-config-prettier": "^8.8.0",
39
- "eslint-define-config": "^1.20.0",
36
+ "@typescript-eslint/eslint-plugin": "^5.62.0",
37
+ "@typescript-eslint/parser": "^5.62.0",
38
+ "eslint-config-prettier": "^8.10.0",
39
+ "eslint-define-config": "^1.23.0",
40
40
  "eslint-import-resolver-typescript": "^3.5.5",
41
- "eslint-plugin-antfu": "^0.39.3",
42
- "eslint-plugin-deprecation": "^1.4.1",
43
- "eslint-plugin-import": "^2.27.5",
44
- "eslint-plugin-jsonc": "^2.8.0",
45
- "eslint-plugin-markdown": "^3.0.0",
41
+ "eslint-plugin-antfu": "^0.40.0",
42
+ "eslint-plugin-deprecation": "^1.5.0",
43
+ "eslint-plugin-import": "^2.28.0",
44
+ "eslint-plugin-jsonc": "^2.9.0",
45
+ "eslint-plugin-markdown": "^3.0.1",
46
46
  "eslint-plugin-no-only-tests": "^3.1.0",
47
- "eslint-plugin-react": "^7.32.2",
47
+ "eslint-plugin-react": "^7.33.1",
48
48
  "eslint-plugin-react-hooks": "^4.6.0",
49
49
  "eslint-plugin-unicorn": "^47.0.0",
50
50
  "jsonc-eslint-parser": "^2.3.0"
51
51
  },
52
52
  "devDependencies": {
53
- "@antfu/ni": "^0.21.3",
54
- "@types/node": "^18.16.15",
55
- "eslint": "^8.41.0",
53
+ "@antfu/ni": "^0.21.5",
54
+ "@types/node": "^18.17.3",
55
+ "eslint": "^8.46.0",
56
56
  "prettier": "^2.8.8",
57
- "typescript": "^5.0.4"
57
+ "typescript": "^5.1.6"
58
58
  },
59
59
  "renovate": {
60
60
  "extends": [
@@ -14,7 +14,6 @@ export function packageJson() {
14
14
  {
15
15
  files: [GLOB_PACKAGE_JSON],
16
16
  languageOptions: {
17
- // @ts-expect-error: the types for `parser` seems to be wrong
18
17
  parser,
19
18
  parserOptions: {
20
19
  jsonSyntax: 'JSON5',
package/src/typescript.js CHANGED
@@ -25,7 +25,6 @@ export function typescript(options) {
25
25
  {
26
26
  files: [GLOB_TS, GLOB_TSX, GLOB_JS, GLOB_JSX],
27
27
  languageOptions: {
28
- // @ts-expect-error: the types for `parser` seems to be wrong
29
28
  parser: tsParser,
30
29
  parserOptions: project
31
30
  ? {
package/src/unicorn.js CHANGED
@@ -61,6 +61,8 @@ export function unicorn() {
61
61
  'unicorn/prefer-negative-index': 'error',
62
62
  // Prefer `Number` static properties over global ones.
63
63
  'unicorn/prefer-number-properties': 'warn',
64
+ // Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`
65
+ 'unicorn/prefer-regexp-test': 'warn',
64
66
  },
65
67
  },
66
68
  ]