Skip to content

Commit

Permalink
🐛 eslint error
Browse files Browse the repository at this point in the history
  • Loading branch information
takuma-ru committed May 2, 2024
1 parent 5d25c56 commit 163e963
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 7 deletions.
8 changes: 6 additions & 2 deletions packages/core/eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,12 @@ export default antfu({
quotes: "double",
},
rules: {
"style/array-bracket-spacing": [ "error", "always", { arraysInArrays: false } ],
"style/array-bracket-newline": ["error", { "multiline": true, "minItems": 3 }],
"style/array-bracket-spacing": [
"error",
"always",
{ arraysInArrays: false },
],
"style/array-bracket-newline": [ "error", { multiline: true, minItems: 3 } ],
},
typescript: true,
vue: true,
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/main.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import SwipeModal from "./components/SwipeModal/SwipeModal.vue"
import SwipeModal from "./components/SwipeModal/SwipeModal.vue";

export { SwipeModal };
export default SwipeModal;
4 changes: 2 additions & 2 deletions packages/core/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
"moduleResolution": "Node",
"resolveJsonModule": true,
"strict": true,
"noEmit": true,
"esModuleInterop": true,
"isolatedModules": true,
"skipLibCheck": true,
"noEmit": true
"skipLibCheck": true
},
"references": [{ "path": "./tsconfig.node.json" }],
"include": [
Expand Down
12 changes: 10 additions & 2 deletions packages/core/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@ import dts from "vite-plugin-dts";

// https://vitejs.dev/config/
export default defineConfig({
plugins: [ vue(), cssInjectedByJsPlugin(), dts({ rollupTypes: true }) ],
plugins: [
vue(),
cssInjectedByJsPlugin(),
dts({ rollupTypes: true }),
],

build: {
outDir: "./dist",
Expand All @@ -14,7 +18,11 @@ export default defineConfig({
entry: "src/main.ts",
name: "@takuma-ru/vue-swipe-modal",
fileName: "vueSwipeModal",
formats: [ "es", "cjs", "umd" ],
formats: [
"es",
"cjs",
"umd",
],
},
rollupOptions: {
external: [ "vue" ],
Expand Down

0 comments on commit 163e963

Please sign in to comment.