@resolid/config 3.2.0 → 3.2.1
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 +1 -1
- package/src/eslint.browser.js +1 -0
- package/src/eslint.javascript.js +19 -4
- package/src/eslint.node.js +1 -0
- package/src/eslint.react.js +3 -0
- package/src/eslint.typescript.js +2 -2
package/package.json
CHANGED
package/src/eslint.browser.js
CHANGED
package/src/eslint.javascript.js
CHANGED
|
@@ -1,26 +1,38 @@
|
|
|
1
1
|
import js from "@eslint/js";
|
|
2
|
+
import globals from "globals";
|
|
2
3
|
|
|
3
4
|
/** @type {import('eslint').Linter.FlatConfig[]} */
|
|
4
5
|
export default [
|
|
5
6
|
{
|
|
7
|
+
name: "resolid/ignores",
|
|
6
8
|
ignores: [
|
|
7
9
|
"**/node_modules",
|
|
8
|
-
"**/build",
|
|
9
|
-
"**/dist",
|
|
10
10
|
"**/package-lock.json",
|
|
11
|
+
"**/yarn.lock",
|
|
11
12
|
"**/pnpm-lock.yaml",
|
|
12
|
-
"
|
|
13
|
+
"**/bun.lockb",
|
|
14
|
+
|
|
15
|
+
"**/build",
|
|
16
|
+
"**/coverage",
|
|
17
|
+
"**/dist",
|
|
18
|
+
|
|
19
|
+
"**/.cache",
|
|
13
20
|
"**/.changeset",
|
|
21
|
+
"**/.history",
|
|
14
22
|
"**/.idea",
|
|
15
|
-
"**/.cache",
|
|
16
23
|
"**/.output",
|
|
17
24
|
"**/.resolid",
|
|
25
|
+
"**/.vercel",
|
|
26
|
+
"**/.yarn",
|
|
27
|
+
|
|
18
28
|
"**/.vite-inspect",
|
|
19
29
|
"**/*.min.*",
|
|
30
|
+
"**/CHANGELOG*.md",
|
|
20
31
|
"**/LICENSE*",
|
|
21
32
|
],
|
|
22
33
|
},
|
|
23
34
|
{
|
|
35
|
+
name: "resolid/javascript",
|
|
24
36
|
languageOptions: {
|
|
25
37
|
ecmaVersion: 2022,
|
|
26
38
|
sourceType: "module",
|
|
@@ -28,6 +40,9 @@ export default [
|
|
|
28
40
|
ecmaVersion: 2022,
|
|
29
41
|
sourceType: "module",
|
|
30
42
|
},
|
|
43
|
+
globals: {
|
|
44
|
+
...globals.es2022,
|
|
45
|
+
},
|
|
31
46
|
},
|
|
32
47
|
linterOptions: {
|
|
33
48
|
reportUnusedDisableDirectives: true,
|
package/src/eslint.node.js
CHANGED
package/src/eslint.react.js
CHANGED
|
@@ -8,6 +8,7 @@ import reactRefresh from "eslint-plugin-react-refresh";
|
|
|
8
8
|
/** @type {import('eslint').Linter.FlatConfig[]} */
|
|
9
9
|
export default [
|
|
10
10
|
{
|
|
11
|
+
name: "resolid/react",
|
|
11
12
|
files: ["**/*.jsx", "**/*.tsx"],
|
|
12
13
|
plugins: {
|
|
13
14
|
react: react,
|
|
@@ -53,6 +54,7 @@ export default [
|
|
|
53
54
|
},
|
|
54
55
|
},
|
|
55
56
|
{
|
|
57
|
+
name: "resolid/react-hook",
|
|
56
58
|
files: ["**/*.js", "**/*.jsx", "**/*.ts", "**/*.tsx"],
|
|
57
59
|
plugins: {
|
|
58
60
|
"react-hooks": reactHooks,
|
|
@@ -70,6 +72,7 @@ export default [
|
|
|
70
72
|
},
|
|
71
73
|
},
|
|
72
74
|
{
|
|
75
|
+
name: "resolid/jsx-a11y",
|
|
73
76
|
files: ["**/*.jsx", "**/*.tsx"],
|
|
74
77
|
...jsxA11y.flatConfigs.recommended,
|
|
75
78
|
},
|
package/src/eslint.typescript.js
CHANGED
|
@@ -2,9 +2,9 @@ import typescript from "typescript-eslint";
|
|
|
2
2
|
import javascript from "./eslint.javascript.js";
|
|
3
3
|
|
|
4
4
|
/** @type {import('eslint').Linter.FlatConfig[]} */
|
|
5
|
-
export default typescript.config({
|
|
5
|
+
export default typescript.config(javascript, typescript.configs.recommended, {
|
|
6
|
+
name: "resolid/typescript",
|
|
6
7
|
files: ["**/*.ts", "**/*.tsx"],
|
|
7
|
-
extends: [javascript, typescript.configs.recommended],
|
|
8
8
|
languageOptions: {
|
|
9
9
|
parser: typescript.parser,
|
|
10
10
|
parserOptions: {
|