Skip to content

Commit e1f9e7e

Browse files
authored
upgrade packages + update settings
2 parents ea41821 + d7741b2 commit e1f9e7e

29 files changed

+5521
-4130
lines changed

.eslintrc.js renamed to .eslintrc

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module.exports = {
1+
{
22
"env": {
33
"browser": true,
44
"es2021": true
@@ -16,6 +16,5 @@ module.exports = {
1616
"vue",
1717
"@typescript-eslint"
1818
],
19-
"rules": {
20-
}
21-
};
19+
"rules": {}
20+
}

.github/ranger.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
merges:
2+
# Delete branch after merging the PR
3+
- action: delete_branch

.github/workflow/build-lint.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
on:
2+
- push
3+
- pull_request
4+
5+
jobs:
6+
cache-and-install:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- name: Checkout
11+
uses: actions/checkout@v3
12+
13+
- name: Install Node.js
14+
uses: actions/setup-node@v3
15+
with:
16+
node-version: 16
17+
18+
- uses: pnpm/action-setup@v2
19+
name: Install pnpm
20+
id: pnpm-install
21+
with:
22+
version: 7
23+
run_install: false
24+
25+
- name: Get pnpm store directory
26+
id: pnpm-cache
27+
shell: bash
28+
run: |
29+
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
30+
31+
- uses: actions/cache@v3
32+
name: Setup pnpm cache
33+
with:
34+
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
35+
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
36+
restore-keys: |
37+
${{ runner.os }}-pnpm-store-
38+
39+
- name: Install dependencies
40+
run: pnpm install
41+
42+
- name: Run lint
43+
run: pnpm lint
44+
45+
- name: Run build
46+
run: pnpm build

.prettierrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"tabWidth": 2,
3+
"useTabs": false
4+
}

.stylelintrc.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
{
2-
"extends": "stylelint-config-standard"
2+
"extends": [
3+
"stylelint-config-standard",
4+
"stylelint-config-prettier"
5+
]
36
}

azure-pipelines.yml

Lines changed: 0 additions & 32 deletions
This file was deleted.

package.json

Lines changed: 28 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"version": "1.9.1",
44
"description": "smart floating menu for Vue 3",
55
"license": "MIT",
6+
"type": "module",
67
"keywords": [
78
"menu",
89
"float-menu",
@@ -24,7 +25,8 @@
2425
"lint": "eslint src/**/*.vue",
2526
"lint:css": "stylelint src/**/*.scss --custom-syntax postcss-scss",
2627
"lint:all": "yarn lint && yarn lint:css",
27-
"prepare": "husky install"
28+
"prepare": "husky install",
29+
"format": "prettier --write \"src/**/*.vue\" \"src/**/*.scss\""
2830
},
2931
"husky": {
3032
"hooks": {
@@ -45,35 +47,36 @@
4547
"focus-visible": "^5.2.0"
4648
},
4749
"devDependencies": {
48-
"@rollup/plugin-beep": "^0.2.0",
49-
"@rollup/plugin-node-resolve": "^13.3.0",
50-
"@rollup/plugin-sucrase": "^4.0.4",
51-
"@rollup/plugin-typescript": "^8.3.3",
52-
"@typescript-eslint/eslint-plugin": "^5.29.0",
53-
"@typescript-eslint/parser": "^5.29.0",
54-
"@vitejs/plugin-vue": "^2.3.3",
55-
"@vue/compiler-sfc": "^3.2.37",
56-
"eslint": "^8.18.0",
57-
"eslint-plugin-vue": "^9.1.1",
58-
"husky": "^8.0.1",
59-
"lint-staged": "^13.0.3",
60-
"postcss": "^8.4.14",
61-
"postcss-html": "^1.4.1",
62-
"postcss-scss": "^4.0.4",
63-
"rollup": "^2.75.7",
50+
"@rollup/plugin-beep": "^1.0.2",
51+
"@rollup/plugin-node-resolve": "^15.0.1",
52+
"@rollup/plugin-sucrase": "^5.0.1",
53+
"@rollup/plugin-typescript": "^11.0.0",
54+
"@typescript-eslint/eslint-plugin": "^5.50.0",
55+
"@typescript-eslint/parser": "^5.50.0",
56+
"@vitejs/plugin-vue": "^4.0.0",
57+
"@vue/compiler-sfc": "^3.2.45",
58+
"eslint": "^8.33.0",
59+
"eslint-plugin-vue": "^9.9.0",
60+
"husky": "^8.0.3",
61+
"lint-staged": "^13.1.0",
62+
"postcss": "^8.4.21",
63+
"postcss-html": "^1.5.0",
64+
"postcss-scss": "^4.0.6",
65+
"rollup": "^3.12.0",
6466
"rollup-plugin-buble": "^0.19.8",
6567
"rollup-plugin-commonjs": "^10.1.0",
6668
"rollup-plugin-postcss": "^4.0.2",
67-
"rollup-plugin-scss": "^3.0.0",
69+
"rollup-plugin-scss": "^4.0.0",
6870
"rollup-plugin-terser": "^7.0.2",
6971
"rollup-plugin-vue": "^6.0.0",
70-
"sass": "^1.53.0",
71-
"stylelint": "^14.9.1",
72-
"stylelint-config-standard": "^26.0.0",
73-
"tslib": "^2.4.0",
74-
"typescript": "^4.7.4",
75-
"vite": "^2.9.12",
76-
"vue": "^3.2.37",
72+
"sass": "^1.57.1",
73+
"stylelint": "^14.16.1",
74+
"stylelint-config-prettier": "^9.0.4",
75+
"stylelint-config-standard": "^29.0.0",
76+
"tslib": "^2.5.0",
77+
"typescript": "^4.9.5",
78+
"vite": "^4.0.4",
79+
"vue": "^3.2.45",
7780
"vue-float-menu": "^1.9.1"
7881
},
7982
"peerDependencies": {

0 commit comments

Comments
 (0)