@graphcommerce/eslint-config-pwa 10.0.0-canary.56 → 10.0.0-canary.58
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/CHANGELOG.md +4 -0
- package/index.mjs +6 -17
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
package/index.mjs
CHANGED
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
import path from 'node:path'
|
|
2
|
-
import { fileURLToPath } from 'node:url'
|
|
3
|
-
import { fixupConfigRules, fixupPluginRules } from '@eslint/compat'
|
|
4
|
-
import { FlatCompat } from '@eslint/eslintrc'
|
|
5
|
-
import eslint from '@eslint/js'
|
|
6
1
|
import nextPlugin from '@next/eslint-plugin-next'
|
|
7
2
|
import typescriptPlugin from '@typescript-eslint/eslint-plugin'
|
|
8
3
|
import typescriptParser from '@typescript-eslint/parser'
|
|
@@ -12,18 +7,15 @@ import reactPlugin from 'eslint-plugin-react'
|
|
|
12
7
|
import reactHooksPlugin from 'eslint-plugin-react-hooks'
|
|
13
8
|
import globals from 'globals'
|
|
14
9
|
|
|
15
|
-
const __filename = fileURLToPath(import.meta.url)
|
|
16
|
-
const __dirname = path.dirname(__filename)
|
|
17
|
-
|
|
18
|
-
const compat = new FlatCompat({
|
|
19
|
-
baseDirectory: __dirname,
|
|
20
|
-
recommendedConfig: eslint.configs.recommended,
|
|
21
|
-
})
|
|
22
|
-
|
|
23
10
|
/** @type {import('eslint').Linter.Config[]} */
|
|
24
11
|
export default [
|
|
25
|
-
//
|
|
12
|
+
// Flat configs from plugins
|
|
26
13
|
reactHooksPlugin.configs.flat.recommended,
|
|
14
|
+
importPlugin.flatConfigs.recommended,
|
|
15
|
+
importPlugin.flatConfigs.typescript,
|
|
16
|
+
reactPlugin.configs.flat.recommended,
|
|
17
|
+
reactPlugin.configs.flat['jsx-runtime'],
|
|
18
|
+
jsxA11yPlugin.flatConfigs.recommended,
|
|
27
19
|
|
|
28
20
|
// Global ignores
|
|
29
21
|
{
|
|
@@ -52,10 +44,7 @@ export default [
|
|
|
52
44
|
},
|
|
53
45
|
},
|
|
54
46
|
plugins: {
|
|
55
|
-
react: reactPlugin,
|
|
56
47
|
'@next/next': nextPlugin,
|
|
57
|
-
import: importPlugin,
|
|
58
|
-
'jsx-a11y': jsxA11yPlugin,
|
|
59
48
|
},
|
|
60
49
|
settings: {
|
|
61
50
|
react: {
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@graphcommerce/eslint-config-pwa",
|
|
3
3
|
"homepage": "https://www.graphcommerce.org/",
|
|
4
4
|
"repository": "github:graphcommerce-org/graphcommerce",
|
|
5
|
-
"version": "10.0.0-canary.
|
|
5
|
+
"version": "10.0.0-canary.58",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "index.mjs",
|
|
8
8
|
"exports": {
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"@eslint/compat": "^1.2.9",
|
|
13
13
|
"@eslint/eslintrc": "^3.3.1",
|
|
14
14
|
"@eslint/js": "^9.39.1",
|
|
15
|
-
"@graphcommerce/typescript-config-pwa": "10.0.0-canary.
|
|
15
|
+
"@graphcommerce/typescript-config-pwa": "10.0.0-canary.58",
|
|
16
16
|
"@next/eslint-plugin-next": "16.0.6",
|
|
17
17
|
"@typescript-eslint/eslint-plugin": "^8.48.1",
|
|
18
18
|
"@typescript-eslint/parser": "^8.48.1",
|