-
-
Notifications
You must be signed in to change notification settings - Fork 209
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Replace jsx with script setup syntax * Simplify logic and make it more "composable" * Move Zoom functions to useZoom composable * Update eslint config & tsconfig
- Loading branch information
1 parent
fec2ef4
commit 9307c90
Showing
28 changed files
with
1,733 additions
and
297 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,9 @@ | ||
const baseRules = { | ||
'@typescript-eslint/no-explicit-any': 0, | ||
'@typescript-eslint/ban-ts-ignore': 0, | ||
'@typescript-eslint/ban-ts-comment': 0, | ||
'@typescript-eslint/no-empty-function': 0, | ||
'@typescript-eslint/explicit-module-boundary-types': 0, | ||
'no-use-before-define': 0, | ||
'no-unused-vars': 'off', | ||
'@typescript-eslint/no-unused-vars': ['warn'], | ||
indent: ['warn', 2, { SwitchCase: 1, flatTernaryExpressions: true }], | ||
quotes: ['error', 'single', { avoidEscape: true }], | ||
'import/no-mutable-exports': 0, | ||
'no-cond-assign': [2], | ||
'no-console': 'off', | ||
camelcase: 0, | ||
'@typescript/camelcase': 0, | ||
'vue/no-v-html': 'off', | ||
'vue/attribute-hyphenation': 0, | ||
'no-undef': 'off', | ||
'prettier/prettier': ['error', {}, { usePrettierrc: true }] | ||
'prettier/prettier': ['error', {}, { usePrettierrc: true }], | ||
} | ||
|
||
module.exports = { | ||
root: true, | ||
parser: '@typescript-eslint/parser', | ||
parserOptions: { | ||
ecmaVersion: 2020, | ||
sourceType: 'module', | ||
ecmaFeatures: { | ||
jsx: true | ||
} | ||
}, | ||
env: { | ||
node: true, | ||
commonjs: true, | ||
es6: true, | ||
browser: true | ||
}, | ||
extends: ['eslint:recommended', 'plugin:vue/vue3-recommended', '@vue/typescript/recommended', 'plugin:prettier/recommended'], | ||
plugins: [], | ||
rules: baseRules | ||
extends: ['@antfu', 'plugin:prettier/recommended'], | ||
plugins: ['prettier'], | ||
rules: baseRules, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
{ | ||
"singleQuote": true, | ||
"trailingComma": "none", | ||
"trailingComma": "all", | ||
"semi": false, | ||
"quoteProps": "consistent", | ||
"bracketSpacing": true, | ||
"vueIndentScriptAndStyle": false, | ||
"printWidth": 130 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.