@dr.pogodin/eslint-configs 0.0.8 → 0.0.10

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.
package/README.md CHANGED
@@ -66,32 +66,26 @@ This project is invisioned as a replacement for AirBnB ESLint configurations
66
66
 
67
67
  import eslintConfigs from '@dr.pogodin/react-utils';
68
68
 
69
- export default defineConfig([{
70
- // Global ignore rules: an array of path patterns to be ignored by ESLint
71
- // for all other objects included into this configuration, in addition to
72
- // "**/node_modules/" and ".git/" paths which are always ignored; see:
73
- // https://eslint.org/docs/latest/use/configure/configuration-files#globally-ignoring-files-with-ignores
74
- ignores: ['build/'],
75
- }, {
76
- // This object opts-in for JavaScript, TypeScript, and React code checks
77
- // inside the project, with exception for a folder with tests, which is
78
- // checked by different rules below.
79
- extends: [
80
- eslintConfigs.configs.javascript,
81
- eslintConfigs.configs.typescript,
82
- eslintConfigs.configs.react,
83
- ],
84
- ignores: ['__tests__/**'],
85
- }, {
86
- // This is a separate set of rules for a folder with Jest-based unit tests.
87
- extends: [
88
- eslintConfigs.configs.javascript,
89
- eslintConfigs.configs.typescript,
90
- eslintConfigs.configs.react,
91
- eslintConfigs.configs.jest,
92
- ],
93
- files: ['__tests__/**'],
94
- }]);
69
+ export default defineConfig([
70
+ {
71
+ // Global ignore rules: an array of path patterns to be ignored by ESLint
72
+ // for all other objects included into this configuration, in addition to
73
+ // "**/node_modules/" and ".git/" paths which are always ignored; see:
74
+ // https://eslint.org/docs/latest/use/configure/configuration-files#globally-ignoring-files-with-ignores
75
+ ignores: ['build/'],
76
+ },
77
+ // Apply JavaScript, TypeScript, and React configs to all files matched by
78
+ // those configs by default.
79
+ eslintConfigs.configs.javascript,
80
+ eslintConfigs.configs.typescript,
81
+ eslintConfigs.configs.react,
82
+ {
83
+ // Additionally apply Jest config to the folder with Jest-based unit
84
+ // tests.
85
+ extends: [eslintConfigs.configs.jest],
86
+ files: ['__tests__/**'],
87
+ },
88
+ ]);
95
89
  ```
96
90
 
97
91
  ## Provided Configs
@@ -45,6 +45,7 @@ export default defineConfig([{
45
45
 
46
46
  // Rules provided by "eslint-plugin-import".
47
47
  'import/dynamic-import-chunkname': 'error',
48
+ 'import/enforce-node-protocol-usage': ['error', 'always'],
48
49
  'import/first': 'error',
49
50
  'import/newline-after-import': 'error',
50
51
  'import/no-absolute-path': 'error',
package/config/react.js CHANGED
@@ -52,7 +52,6 @@ export default defineConfig([{
52
52
  'react/jsx-equals-spacing': 'error',
53
53
  'react/jsx-first-prop-new-line': ['error', 'multiline'],
54
54
  'react/jsx-fragments': 'error',
55
- 'react/jsx-handler-names': 'error',
56
55
  'react/jsx-indent': ['error', 2],
57
56
  'react/jsx-indent-props': ['error', 2],
58
57
  'react/jsx-max-depth': ['warn', { max: 10 }],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dr.pogodin/eslint-configs",
3
- "version": "0.0.8",
3
+ "version": "0.0.10",
4
4
  "description": "ESLint configurations for TypeScript and/or React projects",
5
5
  "type": "module",
6
6
  "main": "./config/index.js",
@@ -29,21 +29,21 @@
29
29
  },
30
30
  "homepage": "https://dr.pogodin.studio/docs/eslint-configs",
31
31
  "dependencies": {
32
- "@babel/eslint-parser": "^7.27.5",
32
+ "@babel/eslint-parser": "^7.28.0",
33
33
  "@babel/eslint-plugin": "^7.27.1",
34
- "@babel/preset-env": "^7.27.2",
34
+ "@babel/preset-env": "^7.28.0",
35
35
  "@babel/preset-react": "^7.27.1",
36
36
  "@babel/preset-typescript": "^7.27.1",
37
- "@eslint/js": "^9.29.0",
38
- "@stylistic/eslint-plugin": "^4.4.1",
39
- "eslint": "^9.29.0",
40
- "eslint-import-resolver-typescript": "^4.4.3",
41
- "eslint-plugin-import": "^2.31.0",
42
- "eslint-plugin-jest": "^29.0.0",
37
+ "@eslint/js": "^9.32.0",
38
+ "@stylistic/eslint-plugin": "^5.2.2",
39
+ "eslint": "^9.32.0",
40
+ "eslint-import-resolver-typescript": "4.3",
41
+ "eslint-plugin-import": "^2.32.0",
42
+ "eslint-plugin-jest": "^29.0.1",
43
43
  "eslint-plugin-jsx-a11y": "^6.10.2",
44
44
  "eslint-plugin-react": "^7.37.4",
45
45
  "eslint-plugin-react-hooks": "^5.2.0",
46
- "typescript": "^5.7.0",
47
- "typescript-eslint": "^8.34.1"
46
+ "typescript": "5.8",
47
+ "typescript-eslint": "^8.38.0"
48
48
  }
49
49
  }