Skip to content

Commit ac9bc3e

Browse files
committed
feat: add editorconfig and eslint configuration;
fix: typos;
1 parent be5612f commit ac9bc3e

File tree

13 files changed

+118
-28
lines changed

13 files changed

+118
-28
lines changed

.editorconfig

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[*.{js,jsx,mjs,cjs,ts,tsx,mts,cts,vue}]
2+
charset = utf-8
3+
indent_size = 2
4+
indent_style = space
5+
insert_final_newline = true
6+
trim_trailing_whitespace = true

.prettierrc.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2+
"$schema": "https://json.schemastore.org/prettierrc",
23
"semi": false,
34
"singleQuote": true,
4-
"tabWidth": 2,
5-
"printWidth": 140
5+
"printWidth": 100
66
}

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
😎 **Modern** and 🚀 **Performant** Bottom Sheet for Vue.js
66

7+
[Demo](https://megaarmos.douxcode.com/vue-spring-bottom-sheet/) 👀
8+
79
# Installation
810

911
```

bun.lockb

38.4 KB
Binary file not shown.

eslint.config.js

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
import pluginVue from 'eslint-plugin-vue'
2+
import vueTsEslintConfig from '@vue/eslint-config-typescript'
3+
import skipFormatting from '@vue/eslint-config-prettier/skip-formatting'
4+
5+
export default [
6+
{
7+
name: 'app/files-to-lint',
8+
files: ['**/*.{ts,mts,tsx,vue}'],
9+
},
10+
11+
{
12+
name: 'app/files-to-ignore',
13+
ignores: ['**/dist/**', '**/dist-ssr/**', '**/coverage/**', '**/playground/**'],
14+
},
15+
16+
...pluginVue.configs['flat/essential'],
17+
...vueTsEslintConfig(),
18+
skipFormatting,
19+
20+
{
21+
rules: {
22+
'@typescript-eslint/no-unused-vars': [
23+
'error',
24+
{
25+
ignoreRestSiblings: true,
26+
varsIgnorePattern: '^_',
27+
argsIgnorePattern: '^_',
28+
},
29+
],
30+
},
31+
},
32+
]

package.json

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@
2727
"type": "git",
2828
"url": "https://github.com/megaarmos/vue-spring-bottom-sheet.git"
2929
},
30-
"homepage": "https://github.com/megaarmos/vue-spring-bottom-sheet",
30+
"homepage": "https://megaarmos.douxcode.com/vue-spring-bottom-sheet/",
3131
"bugs": {
3232
"url": "https://github.com/megaarmos/vue-spring-bottom-sheet/issues"
3333
},
3434
"private": false,
35-
"version": "1.1.0",
35+
"version": "1.1.1",
3636
"type": "module",
3737
"exports": {
3838
".": {
@@ -49,7 +49,9 @@
4949
"scripts": {
5050
"build": "vue-tsc -b && vite build",
5151
"build:watch": "vite build --watch",
52-
"preview": "vite preview",
52+
"type-check": "vue-tsc --build",
53+
"lint": "eslint . --fix",
54+
"format": "prettier --write src/",
5355
"publish": "npm run build && npm publish --access public"
5456
},
5557
"peerDependencies": {
@@ -67,6 +69,11 @@
6769
"vue": "^3.5.13"
6870
},
6971
"devDependencies": {
72+
"ajv": "^8.17.1",
73+
"@vue/eslint-config-prettier": "^10.1.0",
74+
"@vue/eslint-config-typescript": "^14.2.0",
75+
"eslint": "^9.17.0",
76+
"eslint-plugin-vue": "^9.32.0",
7077
"@types/node": "^22.10.2",
7178
"@vitejs/plugin-vue": "^5.2.1",
7279
"@vue/tsconfig": "^0.7.0",

playground/nuxt/app.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ import '~/assets/css/style.css'
44
</script>
55

66
<template>
7-
<NaviagtionBar />
7+
<NavigationBar />
88
<NuxtPage />
99
</template>

playground/nuxt/nuxt.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// https://nuxt.com/docs/api/configuration/nuxt-config
22
export default defineNuxtConfig({
33
compatibilityDate: '2024-11-01',
4-
devtools: { enabled: true }
4+
devtools: { enabled: true },
55
})

playground/vue/src/App.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<script lang="ts" setup>
2-
import Naviagtionbar from './components/NaviagtionBar.vue'
2+
import NavigationBar from './components/NavigationBar.vue'
33
</script>
44

55
<template>
6-
<Naviagtionbar />
6+
<NavigationBar />
77
<RouterView />
88
</template>

0 commit comments

Comments
 (0)