@nice-move/eslint-config-react 0.13.20 → 0.13.22

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 CHANGED
@@ -1,6 +1,3 @@
1
- import { dirname } from 'node:path';
2
- import { fileURLToPath } from 'node:url';
3
-
4
1
  import { FlatCompat } from '@eslint/eslintrc';
5
2
  import { create } from '@nice-move/eslint-config-base';
6
3
  import hooks from 'eslint-config-airbnb/hooks';
@@ -11,12 +8,9 @@ import reactPlugin from 'eslint-plugin-react';
11
8
 
12
9
  import react from './lib/react.mjs';
13
10
 
14
- const __filename = fileURLToPath(import.meta.url);
15
- const __dirname = dirname(__filename);
16
-
17
11
  const compat = new FlatCompat({
18
- baseDirectory: __dirname,
19
- resolvePluginsRelativeTo: __dirname,
12
+ baseDirectory: import.meta.__dirname,
13
+ resolvePluginsRelativeTo: import.meta.__dirname,
20
14
  });
21
15
 
22
16
  const files = ['**/*.{ts,js,tsx,jsx}'];
package/lib/react.mjs CHANGED
@@ -5,6 +5,7 @@ export default {
5
5
  parser,
6
6
  parserOptions: {
7
7
  sourceType: 'module',
8
+ projectService: true,
8
9
  },
9
10
  },
10
11
  plugins: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nice-move/eslint-config-react",
3
- "version": "0.13.20",
3
+ "version": "0.13.22",
4
4
  "description": "A `eslint` config for `react` project best practice",
5
5
  "license": "MIT",
6
6
  "author": {
@@ -46,7 +46,7 @@
46
46
  "globals": "^17.0.0",
47
47
  "settingz": "^0.2.0",
48
48
  "typescript-eslint": "^8.54.0",
49
- "@nice-move/eslint-config-base": "^0.13.20"
49
+ "@nice-move/eslint-config-base": "^0.13.22"
50
50
  },
51
51
  "peerDependencies": {
52
52
  "eslint": "^9.39.2"