Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
dist
dist
storybook-static
27 changes: 24 additions & 3 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,38 @@ module.exports = {
env: {
node: true
},
extends: ["plugin:vue/vue3-essential", "eslint:recommended", "@vue/typescript/recommended", "@vue/prettier", "@vue/prettier/@typescript-eslint", "plugin:storybook/recommended"],
extends: [
"plugin:vue/vue3-essential",
"eslint:recommended",
"@vue/typescript/recommended",
// No formatting checks: templates wrap long class lists by hand, which Prettier would join into one line
"@vue/eslint-config-prettier/skip-formatting",
"plugin:storybook/recommended"
],
parserOptions: {
ecmaVersion: 2020,
parser: "@typescript-eslint/parser"
},
rules: {
"no-console": process.env.NODE_ENV === "production" ? "warn" : "off",
"no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off"
"no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off",
// Components are named after their file (Button.vue) and exported with the D9 prefix
"vue/multi-word-component-names": "off"
},
overrides: [
{
// Story exports get Storybook fields (args) their inferred type lacks
files: ["*.stories.ts"],
rules: { "@typescript-eslint/no-explicit-any": "off" }
},
{
// Stubs for browser APIs that jsdom lacks may do nothing
files: ["tests/**"],
rules: { "@typescript-eslint/no-empty-function": "off" }
}
],
globals: {
defineEmits: "readonly",
defineProps: "readonly"
}
};
};
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ jobs:
with:
node-version-file: .nvmrc
- run: npm ci
- run: npm run lint
- run: npm test
- run: npm run build
- run: npm pack --dry-run
Expand Down
3 changes: 0 additions & 3 deletions babel.config.js

This file was deleted.

Loading
Loading