@nice-move/eslint-config-react 0.12.5 → 0.12.8

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 (2) hide show
  1. package/index.mjs +5 -4
  2. package/package.json +5 -5
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 base from '@nice-move/eslint-config-base';
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
- ...base,
26
- ...compat.config(airbnb).map((config) => ({ ...config, files })),
27
- ...compat.config(airbnb2).map((config) => ({ ...config, files })),
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.5",
3
+ "version": "0.12.8",
4
4
  "description": "A `eslint` config for `react` project best practice",
5
5
  "license": "MIT",
6
6
  "author": {
@@ -39,17 +39,17 @@
39
39
  "dependencies": {
40
40
  "@eslint/eslintrc": "^3.2.0",
41
41
  "eslint-config-airbnb": "^19.0.4",
42
- "eslint-config-prettier": "^9.1.0",
42
+ "eslint-config-prettier": "^10.0.1",
43
43
  "eslint-plugin-import": "^2.31.0",
44
44
  "eslint-plugin-jsx-a11y": "^6.10.2",
45
- "eslint-plugin-react": "^7.37.3",
45
+ "eslint-plugin-react": "^7.37.4",
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.5"
49
+ "@nice-move/eslint-config-base": "~0.12.8"
50
50
  },
51
51
  "peerDependencies": {
52
- "eslint": "^9.17.0"
52
+ "eslint": "^9.18.0"
53
53
  },
54
54
  "engines": {
55
55
  "node": "^20.18.1 || ^22.11.0"