@lomray/eslint-config-react 5.0.1 → 5.0.3

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
@@ -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/configs/react.js CHANGED
@@ -2,7 +2,7 @@ import pluginReact from 'eslint-plugin-react';
2
2
 
3
3
  export default {
4
4
  plugins: {
5
- folders: pluginReact,
5
+ react: pluginReact,
6
6
  },
7
7
  rules: {
8
8
  'react/no-deprecated': ['warn'],
package/index.js CHANGED
@@ -3,7 +3,7 @@ import react from './configs/react.js';
3
3
  import reactHooks from './configs/react-hooks.js';
4
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.1",
3
+ "version": "5.0.3",
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",