@lomray/eslint-config-react 5.0.2 → 5.0.4
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 +5 -1
- package/configs/react.js +1 -1
- package/index.js +8 -4
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -15,6 +15,10 @@ This package provides Lomray eslint config as an extensible shared config for Re
|
|
|
15
15
|
import lomrayConfig from '@lomray/eslint-config-react';
|
|
16
16
|
|
|
17
17
|
export default [
|
|
18
|
-
...lomrayConfig.recommended,
|
|
18
|
+
...lomrayConfig.recommended, // without files and ignores
|
|
19
|
+
// or
|
|
20
|
+
...lomrayConfig.config(), // with predefined files and ignores
|
|
21
|
+
// or
|
|
22
|
+
...lomrayConfig.config({ here: 'your config to exend' }),
|
|
19
23
|
];
|
|
20
24
|
```
|
package/configs/react.js
CHANGED
package/index.js
CHANGED
|
@@ -9,10 +9,14 @@ const reactConfig = [
|
|
|
9
9
|
jsx,
|
|
10
10
|
];
|
|
11
11
|
|
|
12
|
+
const recommended = [
|
|
13
|
+
...baseConfig.recommended,
|
|
14
|
+
...reactConfig,
|
|
15
|
+
]
|
|
16
|
+
|
|
12
17
|
export default {
|
|
13
|
-
recommended
|
|
14
|
-
...baseConfig.recommended,
|
|
15
|
-
...reactConfig,
|
|
16
|
-
],
|
|
18
|
+
recommended,
|
|
17
19
|
react: reactConfig,
|
|
20
|
+
config: (extendConfig = baseConfig.filesIgnores) =>
|
|
21
|
+
recommended.map((original) => ({ ...original, ...extendConfig })),
|
|
18
22
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lomray/eslint-config-react",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.4",
|
|
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.
|
|
28
|
+
"@lomray/eslint-config": "^5.0.3",
|
|
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"
|