Skip to content

Commit 0612617

Browse files
committed
chore: linter
1 parent c8055aa commit 0612617

File tree

4 files changed

+33
-26
lines changed

4 files changed

+33
-26
lines changed

.vscode/extensions.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
"recommendations": [
33
"dbaeumer.vscode-eslint"
44
]
5-
}
5+
}

.vscode/settings.json

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
11
{
2-
"editor.detectIndentation": false,
3-
"editor.insertSpaces": true,
4-
"editor.tabSize": 2,
5-
2+
"prettier.enable": false,
3+
"editor.formatOnSave": false,
64
"editor.codeActionsOnSave": {
7-
"source.fixAll.eslint": "explicit"
5+
"source.fixAll.eslint": "explicit",
6+
"source.organizeImports": "never"
87
},
9-
10-
"eslint.useFlatConfig": true
11-
}
8+
"eslint.validate": [
9+
"javascript",
10+
"typescript",
11+
"markdown",
12+
"json",
13+
"jsonc",
14+
"yaml",
15+
"xml"
16+
]
17+
}

tsconfig.json

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,27 @@
11
{
22
"compilerOptions": {
33
"target": "ESNext",
4-
"module": "ESNext",
5-
"moduleResolution": "Bundler",
64

5+
"emitDecoratorMetadata": true,
6+
"experimentalDecorators": true,
77
"baseUrl": ".",
8+
"module": "ESNext",
9+
"moduleResolution": "Bundler",
810
"paths": {
9-
"~/*": ["./src/*"]
11+
"~/*": ["./src/*"],
12+
"@!/*": ["./tests/*"],
13+
"crowous": ["./src/index.ts"]
1014
},
11-
15+
1216
"strict": true,
1317
"noEmit": true,
14-
"skipLibCheck": true,
1518

16-
"isolatedModules": true,
19+
"allowSyntheticDefaultImports": true,
1720
"esModuleInterop": true,
18-
"allowSyntheticDefaultImports": true
21+
"isolatedModules": true,
22+
"skipLibCheck": true
1923
},
2024

21-
"include": ["src", "examples", "eslint.config.js"],
25+
"include": ["src", "examples", "tests", "eslint.config.ts", "tsup.config.ts"],
2226
"exclude": ["node_modules", "dist"]
2327
}

tsup.config.ts

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,13 @@
11
import { defineConfig } from "tsup";
22

33
export default defineConfig({
4+
clean: true,
5+
dts: true,
46
entry: ["src/index.ts"],
5-
6-
outDir: "dist",
77
format: ["cjs", "esm"],
8-
9-
treeshake: true,
10-
splitting: false,
11-
12-
sourcemap: true,
138
minify: "terser",
14-
clean: true,
15-
dts: true
9+
outDir: "dist",
10+
sourcemap: true,
11+
splitting: false,
12+
treeshake: true
1613
});

0 commit comments

Comments
 (0)