@dr.pogodin/eslint-configs 0.0.3 → 0.0.5

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
@@ -28,13 +28,30 @@ This project is invisioned as a replacement for AirBnB ESLint configurations
28
28
  ## Getting Started
29
29
  [Getting Started]: #getting-started
30
30
 
31
- - We assume that [Babel] is properly installed and configured in the host
32
- project — some plugins we enable depend on that, and as of now we do not
33
- provide options to optionally disable them for non-[Babel] host projects.
34
-
35
31
  - Install this package and ESLint as developement dependencies:
36
32
  ```sh
37
- npm install --save-dev eslint @dr.pogodin/eslint-configs
33
+ npm install --save-dev @dr.pogodin/eslint-configs
34
+ ```
35
+
36
+ - Some plugins & rules we use depend on [Babel]. If you don't have it explicitly
37
+ installed and configured in your project you should set `requireConfigFile`
38
+ option of parser to `false`, _e.g._:
39
+ ```js
40
+ // eslint.config.mjs
41
+
42
+ import { defineConfig } from 'eslint/config';
43
+ import eslintConfigs from '@dr.pogodin/eslint-configs';
44
+
45
+ export default defineConfig([
46
+ {
47
+ languageOptions: {
48
+ parserOptions: {
49
+ requireConfigFile: false,
50
+ },
51
+ },
52
+ },
53
+ eslintConfigs.config.javascript,
54
+ ]);
38
55
  ```
39
56
 
40
57
  - Add necessary configurations into your flat ESLint config file, for example
package/config/jest.js CHANGED
@@ -38,5 +38,7 @@ export default defineConfig([{
38
38
  'jest/prefer-strict-equal': 'error',
39
39
  'jest/prefer-todo': 'error',
40
40
  'jest/require-to-throw-message': 'error',
41
+
42
+ '@typescript-eslint/unbound-method': 'off',
41
43
  },
42
44
  }]);
@@ -19,6 +19,7 @@ export default tsEsLint.config(
19
19
  },
20
20
  rules: {
21
21
  // TypeScript takes care of the same, in a better way.
22
+ '@babel/new-cap': 'off',
22
23
  '@babel/no-undef': 'off',
23
24
 
24
25
  // It does not support type imports, and TypeScript itself does necessary
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dr.pogodin/eslint-configs",
3
- "version": "0.0.3",
3
+ "version": "0.0.5",
4
4
  "description": "ESLint configurations for TypeScript and/or React projects",
5
5
  "type": "module",
6
6
  "main": "./config/index.js",
@@ -29,23 +29,21 @@
29
29
  },
30
30
  "homepage": "https://dr.pogodin.studio/docs/eslint-configs",
31
31
  "dependencies": {
32
- "@babel/eslint-parser": "^7.26.8",
33
- "@babel/eslint-plugin": "^7.25.9",
34
- "@babel/preset-env": "^7.26.9",
35
- "@babel/preset-react": "^7.26.3",
36
- "@babel/preset-typescript": "^7.26.0",
37
- "@eslint/js": "^9.25.0",
32
+ "@babel/eslint-parser": "^7.27.1",
33
+ "@babel/eslint-plugin": "^7.27.1",
34
+ "@babel/preset-env": "^7.27.1",
35
+ "@babel/preset-react": "^7.27.1",
36
+ "@babel/preset-typescript": "^7.27.1",
37
+ "@eslint/js": "^9.26.0",
38
38
  "@stylistic/eslint-plugin": "^4.1.0",
39
- "eslint-import-resolver-typescript": "^4.3.2",
39
+ "eslint": "^9.26.0",
40
+ "eslint-import-resolver-typescript": "^4.3.4",
40
41
  "eslint-plugin-import": "^2.31.0",
41
42
  "eslint-plugin-jest": "^28.11.0",
42
43
  "eslint-plugin-jsx-a11y": "^6.10.2",
43
44
  "eslint-plugin-react": "^7.37.4",
44
45
  "eslint-plugin-react-hooks": "^5.2.0",
45
46
  "typescript": "^5.7.0",
46
- "typescript-eslint": "^8.30.1"
47
- },
48
- "peerDependencies": {
49
- "eslint": "9"
47
+ "typescript-eslint": "^8.31.1"
50
48
  }
51
49
  }