@resolid/config 3.10.2 → 3.10.4
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 +16 -16
- package/src/eslint.javascript.js +3 -2
- package/src/eslint.typescript.js +29 -24
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@resolid/config",
|
|
3
|
-
"version": "3.10.
|
|
3
|
+
"version": "3.10.4",
|
|
4
4
|
"description": "Eslint and Prettier config",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"resolid",
|
|
@@ -29,30 +29,30 @@
|
|
|
29
29
|
"tsconfig"
|
|
30
30
|
],
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@eslint/js": "^9.
|
|
33
|
-
"eslint-plugin-erasable-syntax-only": "^0.
|
|
32
|
+
"@eslint/js": "^9.39.2",
|
|
33
|
+
"eslint-plugin-erasable-syntax-only": "^0.4.0",
|
|
34
34
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
35
|
-
"eslint-plugin-n": "^17.23.
|
|
35
|
+
"eslint-plugin-n": "^17.23.2",
|
|
36
36
|
"eslint-plugin-react": "^7.37.5",
|
|
37
|
-
"eslint-plugin-react-hooks": "^7.0.
|
|
38
|
-
"eslint-plugin-react-refresh": "^0.4.
|
|
39
|
-
"globals": "^16.
|
|
37
|
+
"eslint-plugin-react-hooks": "^7.0.1",
|
|
38
|
+
"eslint-plugin-react-refresh": "^0.4.26",
|
|
39
|
+
"globals": "^16.5.0",
|
|
40
40
|
"prettier-plugin-organize-imports": "^4.3.0",
|
|
41
|
-
"typescript-eslint": "^8.
|
|
41
|
+
"typescript-eslint": "^8.53.0"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@changesets/cli": "^2.29.
|
|
45
|
-
"@commitlint/cli": "^20.1
|
|
46
|
-
"@commitlint/config-conventional": "^20.
|
|
44
|
+
"@changesets/cli": "^2.29.8",
|
|
45
|
+
"@commitlint/cli": "^20.3.1",
|
|
46
|
+
"@commitlint/config-conventional": "^20.3.1",
|
|
47
47
|
"@svitejs/changesets-changelog-github-compact": "^1.2.0",
|
|
48
|
-
"eslint": "^9.
|
|
49
|
-
"lefthook": "^
|
|
50
|
-
"prettier": "^3.
|
|
48
|
+
"eslint": "^9.39.2",
|
|
49
|
+
"lefthook": "^2.0.15",
|
|
50
|
+
"prettier": "^3.8.0",
|
|
51
51
|
"typescript": "^5.9.3"
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|
|
54
|
-
"eslint": "^9.
|
|
55
|
-
"prettier": "^3.
|
|
54
|
+
"eslint": "^9.39.1",
|
|
55
|
+
"prettier": "^3.7.4",
|
|
56
56
|
"typescript": "^5.9.3"
|
|
57
57
|
},
|
|
58
58
|
"peerDependenciesMeta": {
|
package/src/eslint.javascript.js
CHANGED
|
@@ -20,11 +20,12 @@ const config = [
|
|
|
20
20
|
"**/.changeset",
|
|
21
21
|
"**/.history",
|
|
22
22
|
"**/.idea",
|
|
23
|
+
"**/.netlify",
|
|
23
24
|
"**/.output",
|
|
25
|
+
"**/.react-router",
|
|
24
26
|
"**/.resolid",
|
|
27
|
+
"**/.turbo",
|
|
25
28
|
"**/.vercel",
|
|
26
|
-
"**/.netlify",
|
|
27
|
-
"**/.react-router",
|
|
28
29
|
"**/.yarn",
|
|
29
30
|
|
|
30
31
|
"**/.vite-inspect",
|
package/src/eslint.typescript.js
CHANGED
|
@@ -4,30 +4,35 @@ import typescript from "typescript-eslint";
|
|
|
4
4
|
import javascript from "./eslint.javascript.js";
|
|
5
5
|
|
|
6
6
|
/** @type {import("eslint").Linter.Config[]} */
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
7
|
+
export default defineConfig(javascript, {
|
|
8
|
+
name: "resolid/typescript",
|
|
9
|
+
files: ["**/*.ts", "**/*.tsx"],
|
|
10
|
+
extends: [typescript.configs.recommended, erasableSyntaxOnly.configs.recommended],
|
|
11
|
+
languageOptions: {
|
|
12
|
+
parser: typescript.parser,
|
|
13
|
+
parserOptions: {
|
|
14
|
+
projectService: true,
|
|
15
|
+
},
|
|
14
16
|
},
|
|
15
|
-
{
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
17
|
+
rules: {
|
|
18
|
+
"@typescript-eslint/no-import-type-side-effects": "error",
|
|
19
|
+
"@typescript-eslint/method-signature-style": ["error", "property"],
|
|
20
|
+
"@typescript-eslint/prefer-function-type": "error",
|
|
21
|
+
"@typescript-eslint/prefer-for-of": "error",
|
|
22
|
+
"@typescript-eslint/consistent-type-imports": "error",
|
|
23
|
+
"no-unused-vars": "off",
|
|
24
|
+
"@typescript-eslint/no-unused-vars": [
|
|
25
|
+
"error",
|
|
26
|
+
{
|
|
27
|
+
args: "after-used",
|
|
28
|
+
argsIgnorePattern: "^_",
|
|
29
|
+
caughtErrors: "all",
|
|
30
|
+
caughtErrorsIgnorePattern: "^_",
|
|
31
|
+
destructuredArrayIgnorePattern: "^_",
|
|
32
|
+
vars: "all",
|
|
33
|
+
varsIgnorePattern: "^_",
|
|
34
|
+
ignoreRestSiblings: true,
|
|
21
35
|
},
|
|
22
|
-
|
|
23
|
-
rules: {
|
|
24
|
-
"@typescript-eslint/no-import-type-side-effects": "error",
|
|
25
|
-
"@typescript-eslint/method-signature-style": ["error", "property"],
|
|
26
|
-
"@typescript-eslint/prefer-function-type": "error",
|
|
27
|
-
"@typescript-eslint/prefer-for-of": "error",
|
|
28
|
-
"@typescript-eslint/consistent-type-imports": "error",
|
|
29
|
-
},
|
|
36
|
+
],
|
|
30
37
|
},
|
|
31
|
-
);
|
|
32
|
-
|
|
33
|
-
export default config;
|
|
38
|
+
});
|