@nice-move/eslint-config-react 0.12.4 → 0.12.6
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/index.mjs +5 -4
- package/package.json +2 -2
package/index.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import { dirname } from 'node:path';
|
|
|
2
2
|
import { fileURLToPath } from 'node:url';
|
|
3
3
|
|
|
4
4
|
import { FlatCompat } from '@eslint/eslintrc';
|
|
5
|
-
import
|
|
5
|
+
import { create } from '@nice-move/eslint-config-base';
|
|
6
6
|
import hooks from 'eslint-config-airbnb/hooks';
|
|
7
7
|
import airbnb from 'eslint-config-airbnb/rules/react';
|
|
8
8
|
import airbnb2 from 'eslint-config-airbnb/rules/react-a11y';
|
|
@@ -22,9 +22,10 @@ const compat = new FlatCompat({
|
|
|
22
22
|
const files = ['**/*.{ts,js,tsx,jsx}'];
|
|
23
23
|
|
|
24
24
|
export default [
|
|
25
|
-
...
|
|
26
|
-
|
|
27
|
-
|
|
25
|
+
...create(
|
|
26
|
+
...compat.config(airbnb).map((config) => ({ ...config, files })),
|
|
27
|
+
...compat.config(airbnb2).map((config) => ({ ...config, files })),
|
|
28
|
+
),
|
|
28
29
|
{
|
|
29
30
|
files,
|
|
30
31
|
...react,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nice-move/eslint-config-react",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.6",
|
|
4
4
|
"description": "A `eslint` config for `react` project best practice",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": {
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"eslint-plugin-react-hooks": "^5.1.0",
|
|
47
47
|
"globals": "^15.14.0",
|
|
48
48
|
"settingz": "^0.2.0",
|
|
49
|
-
"@nice-move/eslint-config-base": "~0.12.
|
|
49
|
+
"@nice-move/eslint-config-base": "~0.12.6"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
52
52
|
"eslint": "^9.17.0"
|