@jsenv/eslint-config-relax 1.7.4 → 1.7.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/package.json +5 -5
- package/src/eslint_config_relax.js +14 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jsenv/eslint-config-relax",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.6",
|
|
4
4
|
"description": "A pleaseant ESLint configuration for any project",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -24,15 +24,15 @@
|
|
|
24
24
|
],
|
|
25
25
|
"scripts": {},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@babel/eslint-parser": "7.28.
|
|
27
|
+
"@babel/eslint-parser": "7.28.5",
|
|
28
28
|
"@jsenv/eslint-import-resolver": "8.4.2",
|
|
29
|
-
"@jsenv/eslint-plugin": "1.
|
|
30
|
-
"@jsenv/urls": "2.9.
|
|
29
|
+
"@jsenv/eslint-plugin": "1.1.0",
|
|
30
|
+
"@jsenv/urls": "2.9.3",
|
|
31
31
|
"eslint-plugin-html": "8.1.3",
|
|
32
32
|
"eslint-plugin-import-x": "4.16.1",
|
|
33
33
|
"eslint-plugin-react": "7.37.5",
|
|
34
34
|
"eslint-plugin-regexp": "2.10.0",
|
|
35
|
-
"globals": "16.
|
|
35
|
+
"globals": "16.5.0"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {},
|
|
38
38
|
"engines": {
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
// TODO: ideally when any dev package condition result in a file not found we should
|
|
2
|
+
// warn and fallback to other conditions
|
|
3
|
+
|
|
1
4
|
import babelParser from "@babel/eslint-parser";
|
|
2
5
|
import jsenvPlugin from "@jsenv/eslint-plugin";
|
|
3
6
|
import { urlToRelativeUrl } from "@jsenv/urls";
|
|
@@ -314,6 +317,17 @@ export const eslintConfigRelax = ({
|
|
|
314
317
|
{
|
|
315
318
|
files: ["**/*.html"],
|
|
316
319
|
plugins: { html },
|
|
320
|
+
rules: {
|
|
321
|
+
// Ignore JSX components (start with uppercase)
|
|
322
|
+
// https://github.com/BenoitZugmeyer/eslint-plugin-html/issues/295
|
|
323
|
+
"no-unused-vars": [
|
|
324
|
+
rulesRelax["no-unused-vars"][0],
|
|
325
|
+
{
|
|
326
|
+
...rulesRelax["no-unused-vars"][1],
|
|
327
|
+
varsIgnorePattern: "^[A-Z]",
|
|
328
|
+
},
|
|
329
|
+
],
|
|
330
|
+
},
|
|
317
331
|
settings: {
|
|
318
332
|
"html/javascript-mime-types": [
|
|
319
333
|
"text/javascript",
|