Skip to content
Closed
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
4 changes: 4 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
dist
node_modules
docs/.vitepress/cache
docs/.vitepress/dist
58 changes: 58 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
module.exports = {
root: true,
env: {
node: true,
browser: true,
es2020: true
},
parser: 'vue-eslint-parser',
parserOptions: {
parser: '@typescript-eslint/parser',
ecmaVersion: 'latest',
sourceType: 'module'
},
extends: [
'eslint:recommended',
'plugin:vue/vue3-recommended',
'plugin:@typescript-eslint/recommended',
'prettier'
],
rules: {
quotes: ['error', 'single'],
semi: ['error', 'never'],

'@typescript-eslint/no-explicit-any': 'off',

'vue/attributes-order': [
'error',
{
order: [
'DEFINITION',
'LIST_RENDERING',
'CONDITIONALS',
'RENDER_MODIFIERS',
'GLOBAL',
'UNIQUE',
'SLOT',
'TWO_WAY_BINDING',
'OTHER_ATTR',
'EVENTS',
'CONTENT'
],
alphabetical: false
}
],

'vue/max-attributes-per-line': [
'error',
{
singleline: {
max: 4
},
multiline: {
max: 1
}
}
]
}
}
23 changes: 23 additions & 0 deletions docs/public/components/form/transfer.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 9 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@
"preview": "vite preview",
"docs:dev": "vitepress dev docs",
"docs:build": "vitepress build docs",
"docs:serve": "vitepress serve docs"
"docs:serve": "vitepress serve docs",
"lint": "eslint . --ext .ts,.tsx,.vue",
"lint:fix": "eslint . --ext .ts,.tsx,.vue --fix"
},
"dependencies": {
"clsx": "^2.1.0",
Expand Down Expand Up @@ -62,6 +64,11 @@
"vite": "^5.2.0",
"vite-plugin-monaco-editor": "^1.1.0",
"vitepress": "^1.4.1",
"vue-tsc": "^2.0.6"
"vue-tsc": "^2.0.6",
"@typescript-eslint/eslint-plugin": "^7.0.0",
"@typescript-eslint/parser": "^7.0.0",
"eslint": "^8.57.0",
"eslint-plugin-vue": "^9.23.0",
"eslint-config-prettier": "^9.1.0"
}
}
Loading
Loading