@lomray/eslint-config-react 5.0.0 → 5.0.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.
Files changed (3) hide show
  1. package/README.md +9 -2
  2. package/index.js +7 -7
  3. package/package.json +2 -2
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # eslint-config-react
2
2
 
3
- This package provides Lomray base JS (Typescript) .eslintrc as an extensible shared config for React.
3
+ This package provides Lomray eslint config as an extensible shared config for React.
4
4
 
5
5
  ## Usage
6
6
 
@@ -10,4 +10,11 @@ This package provides Lomray base JS (Typescript) .eslintrc as an extensible sha
10
10
  npm i --save-dev @lomray/eslint-config-react
11
11
  ```
12
12
 
13
- 2. Add `extends: ["@lomray/eslint-config-react"]` to your .eslintrc.
13
+ 2. Add config to your `eslint.config.js`
14
+ ```js
15
+ import lomrayConfig from '@lomray/eslint-config-react';
16
+
17
+ export default [
18
+ ...lomrayConfig.recommended,
19
+ ];
20
+ ```
package/index.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import baseConfig from '@lomray/eslint-config';
2
- import react from './configs/react';
3
- import reactHooks from './configs/react-hooks';
4
- import jsx from './configs/jsx-a11y';
2
+ import react from './configs/react.js';
3
+ import reactHooks from './configs/react-hooks.js';
4
+ import jsx from './configs/jsx-a11y.js';
5
5
 
6
- const current = [
6
+ const reactConfig = [
7
7
  react,
8
8
  reactHooks,
9
9
  jsx,
@@ -11,8 +11,8 @@ const current = [
11
11
 
12
12
  export default {
13
13
  recommended: [
14
- baseConfig,
15
- ...current,
14
+ ...baseConfig.recommended,
15
+ ...reactConfig,
16
16
  ],
17
- react: current,
17
+ react: reactConfig,
18
18
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lomray/eslint-config-react",
3
- "version": "5.0.0",
3
+ "version": "5.0.2",
4
4
  "description": "This package provides Lomray eslint config as an extensible shared config for React.",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -25,7 +25,7 @@
25
25
  },
26
26
  "homepage": "https://github.com/Lomray-Software/eslint-config-react",
27
27
  "dependencies": {
28
- "@lomray/eslint-config": "^5.0.1",
28
+ "@lomray/eslint-config": "^5.0.2",
29
29
  "eslint-plugin-jsx-a11y": "^6.8.0",
30
30
  "eslint-plugin-react": "^7.33.2",
31
31
  "eslint-plugin-react-hooks": "^4.6.0"