@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 +9 -2
- package/configs/react.js +1 -1
- package/index.js +4 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# eslint-config-react
|
|
2
2
|
|
|
3
|
-
This package provides Lomray
|
|
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
|
|
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
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
|
|
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
|
-
...
|
|
14
|
+
...baseConfig.recommended,
|
|
15
|
+
...reactConfig,
|
|
16
16
|
],
|
|
17
|
-
react:
|
|
17
|
+
react: reactConfig,
|
|
18
18
|
};
|