@resolid/config 4.0.1 → 5.0.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/oxlint/browser.d.ts +3 -0
- package/oxlint/browser.js +7 -0
- package/oxlint/javascript.d.ts +3 -0
- package/oxlint/javascript.js +44 -0
- package/oxlint/node.d.ts +3 -0
- package/oxlint/node.js +14 -0
- package/oxlint/react.d.ts +3 -0
- package/oxlint/react.js +81 -0
- package/oxlint/typescript.d.ts +3 -0
- package/oxlint/typescript.js +15 -0
- package/package.json +27 -38
- package/src/eslint.browser.d.ts +0 -5
- package/src/eslint.browser.js +0 -15
- package/src/eslint.javascript.d.ts +0 -5
- package/src/eslint.javascript.js +0 -59
- package/src/eslint.node.d.ts +0 -5
- package/src/eslint.node.js +0 -27
- package/src/eslint.react.d.ts +0 -5
- package/src/eslint.react.js +0 -74
- package/src/eslint.typescript.d.ts +0 -5
- package/src/eslint.typescript.js +0 -38
- package/src/prettier.d.ts +0 -4
- package/src/prettier.js +0 -9
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { defineConfig } from "oxlint";
|
|
2
|
+
|
|
3
|
+
export default defineConfig({
|
|
4
|
+
categories: { correctness: "error", perf: "warn", style: "warn", suspicious: "warn" },
|
|
5
|
+
env: {
|
|
6
|
+
builtin: true,
|
|
7
|
+
es2022: true,
|
|
8
|
+
},
|
|
9
|
+
ignorePatterns: [
|
|
10
|
+
"**/build",
|
|
11
|
+
"**/coverage",
|
|
12
|
+
"**/dist",
|
|
13
|
+
"**/.netlify",
|
|
14
|
+
"**/.react-router",
|
|
15
|
+
"**/.resolid",
|
|
16
|
+
"**/.turbo",
|
|
17
|
+
"**/.vercel",
|
|
18
|
+
"**/.vite-inspect",
|
|
19
|
+
],
|
|
20
|
+
plugins: ["eslint", "import"],
|
|
21
|
+
rules: {
|
|
22
|
+
"capitalized-comments": "off",
|
|
23
|
+
"func-style": "off",
|
|
24
|
+
"id-length": "off",
|
|
25
|
+
"import/consistent-type-specifier-style": "off",
|
|
26
|
+
"import/exports-last": "off",
|
|
27
|
+
"import/group-exports": "off",
|
|
28
|
+
"import/no-anonymous-default-export": "off",
|
|
29
|
+
"import/no-named-export": "off",
|
|
30
|
+
"import/no-nodejs-modules": "off",
|
|
31
|
+
"import/prefer-default-export": "off",
|
|
32
|
+
"init-declarations": "off",
|
|
33
|
+
"max-params": ["warn", { max: 10 }],
|
|
34
|
+
"max-statements": "off",
|
|
35
|
+
"new-cap": "off",
|
|
36
|
+
"no-continue": "off",
|
|
37
|
+
"no-implicit-coercion": "off",
|
|
38
|
+
"no-magic-numbers": "off",
|
|
39
|
+
"no-nested-ternary": "off",
|
|
40
|
+
"no-ternary": "off",
|
|
41
|
+
"sort-imports": "off",
|
|
42
|
+
"sort-keys": "off",
|
|
43
|
+
},
|
|
44
|
+
});
|
package/oxlint/node.d.ts
ADDED
package/oxlint/node.js
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { defineConfig } from "oxlint";
|
|
2
|
+
|
|
3
|
+
export default defineConfig({
|
|
4
|
+
env: {
|
|
5
|
+
node: true,
|
|
6
|
+
},
|
|
7
|
+
plugins: ["node"],
|
|
8
|
+
rules: {
|
|
9
|
+
"node/no-exports-assign": "error",
|
|
10
|
+
"node/no-new-require": "error",
|
|
11
|
+
"node/no-path-concat": "error",
|
|
12
|
+
"node/no-process-env": "error",
|
|
13
|
+
},
|
|
14
|
+
});
|
package/oxlint/react.js
ADDED
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { defineConfig } from "oxlint";
|
|
2
|
+
|
|
3
|
+
export default defineConfig({
|
|
4
|
+
jsPlugins: [
|
|
5
|
+
{
|
|
6
|
+
name: "react-hooks-js",
|
|
7
|
+
specifier: "eslint-plugin-react-hooks",
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
name: "react-you-might-not-need-an-effect-js",
|
|
11
|
+
specifier: "eslint-plugin-react-you-might-not-need-an-effect",
|
|
12
|
+
},
|
|
13
|
+
],
|
|
14
|
+
plugins: ["react", "react-perf", "jsx-a11y"],
|
|
15
|
+
rules: {
|
|
16
|
+
"react-hooks-js/automatic-effect-dependencies": "off",
|
|
17
|
+
"react-hooks-js/capitalized-calls": "off",
|
|
18
|
+
"react-hooks-js/component-hook-factories": "error",
|
|
19
|
+
|
|
20
|
+
// Recommended rules (from LintRulePreset.Recommended)
|
|
21
|
+
"react-hooks-js/config": "error",
|
|
22
|
+
"react-hooks-js/error-boundaries": "error",
|
|
23
|
+
"react-hooks-js/fbt": "off",
|
|
24
|
+
"react-hooks-js/fire": "off",
|
|
25
|
+
"react-hooks-js/gating": "error",
|
|
26
|
+
"react-hooks-js/globals": "error",
|
|
27
|
+
"react-hooks-js/hooks": "off",
|
|
28
|
+
"react-hooks-js/immutability": "error",
|
|
29
|
+
"react-hooks-js/incompatible-library": "error",
|
|
30
|
+
"react-hooks-js/invariant": "off",
|
|
31
|
+
"react-hooks-js/memoized-effect-dependencies": "off",
|
|
32
|
+
"react-hooks-js/no-deriving-state-in-effects": "off",
|
|
33
|
+
"react-hooks-js/preserve-manual-memoization": "error",
|
|
34
|
+
"react-hooks-js/purity": "error",
|
|
35
|
+
"react-hooks-js/refs": "error",
|
|
36
|
+
|
|
37
|
+
// Recommended-latest rules (from LintRulePreset.RecommendedLatest)
|
|
38
|
+
"react-hooks-js/rule-suppression": "off",
|
|
39
|
+
|
|
40
|
+
// Off rules (LintRulePreset.Off) - not enabled by default
|
|
41
|
+
"react-hooks-js/set-state-in-effect": "error",
|
|
42
|
+
"react-hooks-js/set-state-in-render": "error",
|
|
43
|
+
"react-hooks-js/static-components": "error",
|
|
44
|
+
"react-hooks-js/syntax": "off",
|
|
45
|
+
"react-hooks-js/todo": "off",
|
|
46
|
+
"react-hooks-js/unsupported-syntax": "error",
|
|
47
|
+
"react-hooks-js/use-memo": "error",
|
|
48
|
+
"react-hooks-js/void-use-memo": "error",
|
|
49
|
+
|
|
50
|
+
"react-perf/jsx-no-jsx-as-prop": "off",
|
|
51
|
+
"react-perf/jsx-no-new-array-as-prop": "off",
|
|
52
|
+
"react-perf/jsx-no-new-function-as-prop": "off",
|
|
53
|
+
"react-perf/jsx-no-new-object-as-prop": "off",
|
|
54
|
+
"react/exhaustive-deps": ["warn", { additionalHooks: "useIsomorphicEffect" }],
|
|
55
|
+
"react/jsx-max-depth": ["warn", { max: 10 }],
|
|
56
|
+
"react/jsx-props-no-spreading": "off",
|
|
57
|
+
"react/only-export-components": [
|
|
58
|
+
"warn",
|
|
59
|
+
{
|
|
60
|
+
allowConstantExport: true,
|
|
61
|
+
allowExportNames: [
|
|
62
|
+
"meta",
|
|
63
|
+
"links",
|
|
64
|
+
"action",
|
|
65
|
+
"handle",
|
|
66
|
+
"headers",
|
|
67
|
+
"clientAction",
|
|
68
|
+
"loader",
|
|
69
|
+
"clientLoader",
|
|
70
|
+
"middleware",
|
|
71
|
+
"clientMiddleware",
|
|
72
|
+
"shouldRevalidate",
|
|
73
|
+
"ErrorBoundary",
|
|
74
|
+
"HydrateFallback",
|
|
75
|
+
"Layout",
|
|
76
|
+
],
|
|
77
|
+
},
|
|
78
|
+
],
|
|
79
|
+
"react/react-in-jsx-scope": "off",
|
|
80
|
+
},
|
|
81
|
+
});
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { defineConfig } from "oxlint";
|
|
2
|
+
import javascriptConfig from "./javascript.js";
|
|
3
|
+
|
|
4
|
+
export default defineConfig({
|
|
5
|
+
extends: [javascriptConfig],
|
|
6
|
+
plugins: ["typescript"],
|
|
7
|
+
rules: {
|
|
8
|
+
"typescript/consistent-generic-constructors": "off",
|
|
9
|
+
"typescript/consistent-type-imports": "error",
|
|
10
|
+
"typescript/consistent-type-definitions": "off",
|
|
11
|
+
"typescript/no-import-type-side-effects": "error",
|
|
12
|
+
"typescript/prefer-for-of": "error",
|
|
13
|
+
"typescript/prefer-function-type": "error",
|
|
14
|
+
},
|
|
15
|
+
});
|
package/package.json
CHANGED
|
@@ -1,58 +1,51 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@resolid/config",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "5.0.1",
|
|
4
|
+
"description": "Oxlint and Typescript config",
|
|
5
5
|
"keywords": [
|
|
6
|
+
"oxfmt",
|
|
7
|
+
"oxlint",
|
|
6
8
|
"resolid",
|
|
7
|
-
"eslint",
|
|
8
|
-
"prettier",
|
|
9
9
|
"typescript"
|
|
10
10
|
],
|
|
11
11
|
"homepage": "https://www.resolid.tech",
|
|
12
|
+
"license": "MIT",
|
|
13
|
+
"author": "Huijie Wei",
|
|
12
14
|
"repository": {
|
|
13
15
|
"type": "git",
|
|
14
16
|
"url": "git+https://github.com/huijiewei/resolid-config.git"
|
|
15
17
|
},
|
|
16
|
-
"
|
|
17
|
-
|
|
18
|
-
|
|
18
|
+
"files": [
|
|
19
|
+
"oxlint",
|
|
20
|
+
"tsconfig"
|
|
21
|
+
],
|
|
19
22
|
"type": "module",
|
|
23
|
+
"sideEffects": false,
|
|
20
24
|
"exports": {
|
|
21
|
-
"
|
|
22
|
-
"types": "./
|
|
23
|
-
"import": "./
|
|
25
|
+
"./oxlint/*": {
|
|
26
|
+
"types": "./oxlint/*.d.ts",
|
|
27
|
+
"import": "./oxlint/*.js"
|
|
24
28
|
},
|
|
25
29
|
"./tsconfig/*.json": "./tsconfig/*.json"
|
|
26
30
|
},
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
],
|
|
31
|
-
"dependencies": {
|
|
32
|
-
"@eslint/js": "^9.39.2",
|
|
33
|
-
"eslint-plugin-erasable-syntax-only": "^0.4.0",
|
|
34
|
-
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
35
|
-
"eslint-plugin-n": "^17.23.2",
|
|
36
|
-
"eslint-plugin-react": "^7.37.5",
|
|
37
|
-
"eslint-plugin-react-hooks": "^7.0.1",
|
|
38
|
-
"eslint-plugin-react-refresh": "^0.4.26",
|
|
39
|
-
"globals": "^16.5.0",
|
|
40
|
-
"prettier-plugin-organize-imports": "^4.3.0",
|
|
41
|
-
"typescript-eslint": "^8.53.1"
|
|
31
|
+
"publishConfig": {
|
|
32
|
+
"access": "public",
|
|
33
|
+
"provenance": true
|
|
42
34
|
},
|
|
43
35
|
"devDependencies": {
|
|
44
36
|
"@changesets/cli": "^2.29.8",
|
|
45
|
-
"@commitlint/cli": "^20.
|
|
46
|
-
"@commitlint/config-conventional": "^20.
|
|
37
|
+
"@commitlint/cli": "^20.4.2",
|
|
38
|
+
"@commitlint/config-conventional": "^20.4.2",
|
|
47
39
|
"@svitejs/changesets-changelog-github-compact": "^1.2.0",
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
"
|
|
40
|
+
"lefthook": "^2.1.1",
|
|
41
|
+
"oxfmt": "^0.35.0",
|
|
42
|
+
"oxlint": "^1.50.0",
|
|
51
43
|
"typescript": "^5.9.3"
|
|
52
44
|
},
|
|
53
45
|
"peerDependencies": {
|
|
54
|
-
"eslint": "^
|
|
55
|
-
"
|
|
46
|
+
"eslint-plugin-react-hooks": "^7.0.1",
|
|
47
|
+
"eslint-plugin-react-you-might-not-need-an-effect": "^0.9.1",
|
|
48
|
+
"oxlint": "^1.50.0",
|
|
56
49
|
"typescript": "^5.9.3"
|
|
57
50
|
},
|
|
58
51
|
"peerDependenciesMeta": {
|
|
@@ -63,12 +56,8 @@
|
|
|
63
56
|
"engines": {
|
|
64
57
|
"node": "^20.19.0 || ^22.13.0 || >=24"
|
|
65
58
|
},
|
|
66
|
-
"publishConfig": {
|
|
67
|
-
"access": "public",
|
|
68
|
-
"provenance": true
|
|
69
|
-
},
|
|
70
59
|
"scripts": {
|
|
71
|
-
"format": "
|
|
72
|
-
"lint": "
|
|
60
|
+
"format": "oxfmt",
|
|
61
|
+
"lint": "oxlint"
|
|
73
62
|
}
|
|
74
63
|
}
|
package/src/eslint.browser.d.ts
DELETED
package/src/eslint.browser.js
DELETED
package/src/eslint.javascript.js
DELETED
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import js from "@eslint/js";
|
|
2
|
-
import globals from "globals";
|
|
3
|
-
|
|
4
|
-
/** @type {import('eslint').Linter.Config[]} */
|
|
5
|
-
const config = [
|
|
6
|
-
{
|
|
7
|
-
name: "resolid/ignores",
|
|
8
|
-
ignores: [
|
|
9
|
-
"**/node_modules",
|
|
10
|
-
"**/package-lock.json",
|
|
11
|
-
"**/yarn.lock",
|
|
12
|
-
"**/pnpm-lock.yaml",
|
|
13
|
-
"**/bun.lockb",
|
|
14
|
-
|
|
15
|
-
"**/build",
|
|
16
|
-
"**/coverage",
|
|
17
|
-
"**/dist",
|
|
18
|
-
|
|
19
|
-
"**/.cache",
|
|
20
|
-
"**/.changeset",
|
|
21
|
-
"**/.history",
|
|
22
|
-
"**/.idea",
|
|
23
|
-
"**/.netlify",
|
|
24
|
-
"**/.output",
|
|
25
|
-
"**/.react-router",
|
|
26
|
-
"**/.resolid",
|
|
27
|
-
"**/.turbo",
|
|
28
|
-
"**/.vercel",
|
|
29
|
-
"**/.yarn",
|
|
30
|
-
|
|
31
|
-
"**/.vite-inspect",
|
|
32
|
-
"**/*.min.*",
|
|
33
|
-
"**/CHANGELOG*.md",
|
|
34
|
-
"**/LICENSE*",
|
|
35
|
-
],
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
name: "resolid/javascript",
|
|
39
|
-
languageOptions: {
|
|
40
|
-
ecmaVersion: 2022,
|
|
41
|
-
sourceType: "module",
|
|
42
|
-
parserOptions: {
|
|
43
|
-
ecmaVersion: 2022,
|
|
44
|
-
sourceType: "module",
|
|
45
|
-
},
|
|
46
|
-
globals: {
|
|
47
|
-
...globals.es2022,
|
|
48
|
-
},
|
|
49
|
-
},
|
|
50
|
-
linterOptions: {
|
|
51
|
-
reportUnusedDisableDirectives: true,
|
|
52
|
-
},
|
|
53
|
-
rules: {
|
|
54
|
-
...js.configs.recommended.rules,
|
|
55
|
-
},
|
|
56
|
-
},
|
|
57
|
-
];
|
|
58
|
-
|
|
59
|
-
export default config;
|
package/src/eslint.node.d.ts
DELETED
package/src/eslint.node.js
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import n from "eslint-plugin-n";
|
|
2
|
-
import globals from "globals";
|
|
3
|
-
|
|
4
|
-
/** @type {import('eslint').Linter.Config[]} */
|
|
5
|
-
const config = [
|
|
6
|
-
{
|
|
7
|
-
name: "resolid/node",
|
|
8
|
-
plugins: { n },
|
|
9
|
-
rules: {
|
|
10
|
-
"n/handle-callback-err": ["error", "^(err|error)$"],
|
|
11
|
-
"n/no-deprecated-api": "error",
|
|
12
|
-
"n/no-exports-assign": "error",
|
|
13
|
-
"n/no-new-require": "error",
|
|
14
|
-
"n/no-path-concat": "error",
|
|
15
|
-
"n/prefer-global/buffer": ["error", "never"],
|
|
16
|
-
"n/prefer-global/process": ["error", "never"],
|
|
17
|
-
"n/process-exit-as-throw": "error",
|
|
18
|
-
},
|
|
19
|
-
languageOptions: {
|
|
20
|
-
globals: {
|
|
21
|
-
...globals.node,
|
|
22
|
-
},
|
|
23
|
-
},
|
|
24
|
-
},
|
|
25
|
-
];
|
|
26
|
-
|
|
27
|
-
export default config;
|
package/src/eslint.react.d.ts
DELETED
package/src/eslint.react.js
DELETED
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import jsxA11y from "eslint-plugin-jsx-a11y";
|
|
2
|
-
import react from "eslint-plugin-react";
|
|
3
|
-
import reactHooks from "eslint-plugin-react-hooks";
|
|
4
|
-
import reactRefresh from "eslint-plugin-react-refresh";
|
|
5
|
-
|
|
6
|
-
/** @type {import("eslint").Linter.Config[]} */
|
|
7
|
-
const config = [
|
|
8
|
-
{
|
|
9
|
-
name: "resolid/react",
|
|
10
|
-
files: ["**/*.jsx", "**/*.tsx"],
|
|
11
|
-
plugins: {
|
|
12
|
-
react: react,
|
|
13
|
-
"react-refresh": reactRefresh,
|
|
14
|
-
},
|
|
15
|
-
rules: {
|
|
16
|
-
...react.configs.recommended.rules,
|
|
17
|
-
...react.configs["jsx-runtime"].rules,
|
|
18
|
-
"react/prop-types": "off",
|
|
19
|
-
"react-refresh/only-export-components": [
|
|
20
|
-
"warn",
|
|
21
|
-
{
|
|
22
|
-
allowConstantExport: true,
|
|
23
|
-
allowExportNames: [
|
|
24
|
-
"meta",
|
|
25
|
-
"links",
|
|
26
|
-
"action",
|
|
27
|
-
"handle",
|
|
28
|
-
"headers",
|
|
29
|
-
"clientAction",
|
|
30
|
-
"loader",
|
|
31
|
-
"clientLoader",
|
|
32
|
-
"middleware",
|
|
33
|
-
"clientMiddleware",
|
|
34
|
-
"shouldRevalidate",
|
|
35
|
-
"ErrorBoundary",
|
|
36
|
-
"HydrateFallback",
|
|
37
|
-
"Layout",
|
|
38
|
-
],
|
|
39
|
-
},
|
|
40
|
-
],
|
|
41
|
-
},
|
|
42
|
-
languageOptions: {
|
|
43
|
-
parserOptions: {
|
|
44
|
-
ecmaVersion: 2022,
|
|
45
|
-
sourceType: "module",
|
|
46
|
-
ecmaFeatures: {
|
|
47
|
-
jsx: true,
|
|
48
|
-
},
|
|
49
|
-
},
|
|
50
|
-
},
|
|
51
|
-
settings: {
|
|
52
|
-
react: {
|
|
53
|
-
version: "detect",
|
|
54
|
-
},
|
|
55
|
-
},
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
name: "resolid/react-hook",
|
|
59
|
-
files: ["**/*.js", "**/*.jsx", "**/*.ts", "**/*.tsx"],
|
|
60
|
-
...reactHooks.configs.flat["recommended-latest"],
|
|
61
|
-
settings: {
|
|
62
|
-
"react-hooks": {
|
|
63
|
-
additionalEffectHooks: "useIsomorphicEffect",
|
|
64
|
-
},
|
|
65
|
-
},
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
name: "resolid/jsx-a11y",
|
|
69
|
-
files: ["**/*.jsx", "**/*.tsx"],
|
|
70
|
-
...jsxA11y.flatConfigs.recommended,
|
|
71
|
-
},
|
|
72
|
-
];
|
|
73
|
-
|
|
74
|
-
export default config;
|
package/src/eslint.typescript.js
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import erasableSyntaxOnly from "eslint-plugin-erasable-syntax-only";
|
|
2
|
-
import { defineConfig } from "eslint/config";
|
|
3
|
-
import typescript from "typescript-eslint";
|
|
4
|
-
import javascript from "./eslint.javascript.js";
|
|
5
|
-
|
|
6
|
-
/** @type {import("eslint").Linter.Config[]} */
|
|
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
|
-
},
|
|
16
|
-
},
|
|
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,
|
|
35
|
-
},
|
|
36
|
-
],
|
|
37
|
-
},
|
|
38
|
-
});
|
package/src/prettier.d.ts
DELETED
package/src/prettier.js
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { fileURLToPath } from "node:url";
|
|
2
|
-
|
|
3
|
-
/** @type {import('prettier').Config} */
|
|
4
|
-
const config = {
|
|
5
|
-
plugins: [fileURLToPath(import.meta.resolve("prettier-plugin-organize-imports"))],
|
|
6
|
-
organizeImportsSkipDestructiveCodeActions: true,
|
|
7
|
-
};
|
|
8
|
-
|
|
9
|
-
export default config;
|