@dg-scripts/eslint-config 5.21.4 → 5.21.6

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/index.js +8 -7
  2. package/package.json +11 -11
package/index.js CHANGED
@@ -18,13 +18,13 @@ const compat = new FlatCompat({
18
18
  const eslintConfigNext
19
19
  = isPackageExists('next') && isPackageExists('eslint-config-next')
20
20
  ? compat.config({
21
- overrides: [
22
- {
23
- files: [GLOB_TS, GLOB_TSX],
24
- extends: 'next/core-web-vitals',
25
- },
26
- ],
27
- })
21
+ overrides: [
22
+ {
23
+ files: [GLOB_TS, GLOB_TSX],
24
+ extends: 'next/core-web-vitals',
25
+ },
26
+ ],
27
+ })
28
28
  : []
29
29
 
30
30
  /** @type {import('@antfu/eslint-config').TypedFlatConfigItem} */
@@ -113,6 +113,7 @@ const eslintConfigPromise = {
113
113
  const eslintConfigRules = {
114
114
  rules: {
115
115
  'eslint-comments/require-description': 'error',
116
+ 'react/jsx-uses-vars': 'error',
116
117
  'style/brace-style': ['error', '1tbs'],
117
118
  'ts/prefer-literal-enum-member': [
118
119
  'error',
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dg-scripts/eslint-config",
3
3
  "type": "module",
4
- "version": "5.21.4",
4
+ "version": "5.21.6",
5
5
  "description": "ESLint configuration used by dg-scripts.",
6
6
  "author": "sabertazimi <sabertazimi@gmail.com>",
7
7
  "license": "MIT",
@@ -56,16 +56,16 @@
56
56
  }
57
57
  },
58
58
  "dependencies": {
59
- "@antfu/eslint-config": "^3.9.2",
60
- "@eslint-react/eslint-plugin": "^1.16.1",
61
- "@eslint/eslintrc": "^3.2.0",
62
- "eslint-plugin-format": "^0.1.2",
63
- "eslint-plugin-promise": "^7.1.0",
64
- "eslint-plugin-react-hooks": "^5.0.0",
65
- "eslint-plugin-react-refresh": "^0.4.14",
59
+ "@antfu/eslint-config": "^5.2.0",
60
+ "@eslint-react/eslint-plugin": "^1.52.3",
61
+ "@eslint/eslintrc": "^3.3.1",
62
+ "eslint-plugin-format": "^1.0.1",
63
+ "eslint-plugin-promise": "^7.2.1",
64
+ "eslint-plugin-react-hooks": "^5.2.0",
65
+ "eslint-plugin-react-refresh": "^0.4.20",
66
66
  "eslint-plugin-security": "^3.0.1",
67
- "eslint-plugin-testing-library": "^6.4.0",
68
- "local-pkg": "^0.5.0"
67
+ "eslint-plugin-testing-library": "^7.6.3",
68
+ "local-pkg": "^1.1.1"
69
69
  },
70
- "gitHead": "53946d32c0b3edc4771664d755f55409624bb9bb"
70
+ "gitHead": "813f614096aeb08e4bf0be0fa092eec94b51375d"
71
71
  }