Skip to content

Commit

Permalink
build: switch from rollup to vite build (#149)
Browse files Browse the repository at this point in the history
  • Loading branch information
mlmoravek authored Nov 7, 2024
1 parent 27d8856 commit 5bb31da
Show file tree
Hide file tree
Showing 13 changed files with 1,909 additions and 1,981 deletions.
28 changes: 0 additions & 28 deletions .eslintrc.cjs

This file was deleted.

4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ jobs:
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies 📦
run: npm install
- name: Run build lib
run: npm run build:lib
- name: Run build lib 🛠️
run: npm run build
6 changes: 3 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ jobs:
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies 📦
run: npm install
- name: Build lib
run: npm run build:lib
- name: Publish NPM lib
- name: Build lib 🛠️
run: npm run build
- name: Publish NPM lib 📋
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
27 changes: 0 additions & 27 deletions .stylelintrc.cjs

This file was deleted.

37 changes: 37 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
/* eslint-env node */

import vuePlugin from "eslint-plugin-vue";
import prettierPlugin from "eslint-plugin-prettier/recommended";
import typescriptConfig from "@vue/eslint-config-typescript";
import prettierConfig from "@vue/eslint-config-prettier";

export default [
// add more generic rulesets here
...vuePlugin.configs["flat/recommended"],
...typescriptConfig(),
prettierPlugin,
prettierConfig,

// your modifications
{
ignores: ["**/.*", "dist/"],
rules: {
"@typescript-eslint/no-explicit-any": ["warn"],
"@typescript-eslint/ban-ts-comment": ["warn"],
"@typescript-eslint/explicit-function-return-type": ["warn"],
"vue/padding-line-between-blocks": ["error", "always"],
"vue/multi-word-component-names": ["off"],
"vue/block-order": ["error", { order: ["script", "template", "style"] }],
"vue/block-lang": ["error", { script: { lang: "ts" } }],
"comma-dangle": ["error", "always-multiline"],
"prettier/prettier": [
"error",
{
trailingComma: "all",
endOfLine: "auto",
bracketSameLine: true,
},
],
},
},
];
Loading

0 comments on commit 5bb31da

Please sign in to comment.