@jsenv/eslint-config-relax 1.8.1 → 1.8.3
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/package.json
CHANGED
|
@@ -1,18 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jsenv/eslint-config-relax",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.3",
|
|
4
|
+
"type": "module",
|
|
4
5
|
"description": "A pleaseant ESLint configuration for any project",
|
|
5
6
|
"repository": {
|
|
6
7
|
"type": "git",
|
|
7
8
|
"url": "https://github.com/jsenv/core",
|
|
8
9
|
"directory": "packages/tooling/eslint-config-relax"
|
|
9
10
|
},
|
|
10
|
-
"license": "MIT",
|
|
11
11
|
"author": {
|
|
12
12
|
"name": "dmail",
|
|
13
13
|
"email": "dmaillard06@gmail.com"
|
|
14
14
|
},
|
|
15
|
-
"
|
|
15
|
+
"license": "MIT",
|
|
16
|
+
"engines": {
|
|
17
|
+
"node": ">=20.0.0"
|
|
18
|
+
},
|
|
16
19
|
"exports": {
|
|
17
20
|
".": {
|
|
18
21
|
"import": "./src/main.js"
|
|
@@ -25,7 +28,7 @@
|
|
|
25
28
|
"scripts": {},
|
|
26
29
|
"dependencies": {
|
|
27
30
|
"@babel/eslint-parser": "7.28.6",
|
|
28
|
-
"@jsenv/eslint-import-resolver": "8.4.
|
|
31
|
+
"@jsenv/eslint-import-resolver": "8.4.5",
|
|
29
32
|
"@jsenv/eslint-plugin": "1.2.0",
|
|
30
33
|
"@jsenv/urls": "2.9.8",
|
|
31
34
|
"@preact/eslint-plugin-signals": "0.2.0",
|
|
@@ -33,12 +36,9 @@
|
|
|
33
36
|
"eslint-plugin-import-x": "4.16.2",
|
|
34
37
|
"eslint-plugin-react": "7.37.5",
|
|
35
38
|
"eslint-plugin-regexp": "3.1.0",
|
|
36
|
-
"globals": "17.
|
|
39
|
+
"globals": "17.5.0"
|
|
37
40
|
},
|
|
38
41
|
"devDependencies": {},
|
|
39
|
-
"engines": {
|
|
40
|
-
"node": ">=20.0.0"
|
|
41
|
-
},
|
|
42
42
|
"publishConfig": {
|
|
43
43
|
"access": "public"
|
|
44
44
|
}
|
|
@@ -64,8 +64,7 @@ const patternForEachExtension = (pattern, extensions) => {
|
|
|
64
64
|
* // With custom browser directory and explicit settings
|
|
65
65
|
* export default eslintConfigRelax({
|
|
66
66
|
* rootDirectoryUrl: import.meta.url,
|
|
67
|
-
* browserDirectoryUrl:
|
|
68
|
-
* prettier: true,
|
|
67
|
+
* browserDirectoryUrl: import.meta.resolve("./src/client/"),
|
|
69
68
|
* preact: true,
|
|
70
69
|
* browserFiles: ["src/frontend/**"]
|
|
71
70
|
* });
|
|
@@ -138,10 +137,12 @@ export const eslintConfigRelax = ({
|
|
|
138
137
|
}
|
|
139
138
|
browserFiles = [...defaultBrowserFiles, ...browserFiles];
|
|
140
139
|
browserAndNodeFiles = [...browserAndNodeFiles];
|
|
140
|
+
// https://babeljs.io/docs/babel-parser#options
|
|
141
141
|
const parserOptions = {
|
|
142
142
|
ecmaVersion: 2022,
|
|
143
143
|
sourceType: "module",
|
|
144
144
|
ecmaFeatures: { jsx: true },
|
|
145
|
+
regexpUnicodeSets: true,
|
|
145
146
|
};
|
|
146
147
|
const globalsForNodeModule = {
|
|
147
148
|
...globals.node,
|