Skip to content

Commit 8694206

Browse files
authored
chore: cleanup configs (#952)
1 parent f1a9754 commit 8694206

14 files changed

+33
-264
lines changed
File renamed without changes.

.eslintrc.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,13 @@ module.exports = {
2222
'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0,
2323
'prettier/prettier': 'error',
2424
quotes: [2, 'single', 'avoid-escape']
25-
}
25+
},
26+
overrides: [
27+
{
28+
files: ['sandboxes/**/*', 'test/**/*'],
29+
rules: {
30+
'vue/no-reserved-component-names': 'off'
31+
}
32+
}
33+
]
2634
}

.github/FUNDING.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
github: apertureless
22
ko_fi: apertureless
3-
custom: ["https://www.paypal.me/apertureless", paypal.me]
3+
custom: ["paypal.me/apertureless"]

.github/PULL_REQUEST_TEMPLATE.md

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

.github/workflows/checks.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@ jobs:
77
size:
88
runs-on: ubuntu-latest
99
name: Checking size
10-
if: "!contains(github.event.head_commit.message, '[ci skip]')"
11-
env:
12-
CI_JOB_NUMBER: 1
1310
steps:
1411
- name: Checkout the repository
1512
uses: actions/checkout@v3

.github/workflows/ci.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ jobs:
66
test:
77
runs-on: ubuntu-latest
88
name: Running tests
9-
if: "!contains(github.event.head_commit.message, '[ci skip]')"
109
steps:
1110
- name: Checkout the repository
1211
uses: actions/checkout@v3

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ node_modules
66
# builds
77
dist
88
package
9+
storybook-static
910

1011
# misc
1112
.DS_Store

.lintstagedrc

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

.nano-staged.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"**/*.{js,ts,vue}": ["prettier --write", "eslint"]
3+
}

.simple-git-hooks.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"commit-msg": "pnpm commitlint --edit \"$1\"",
3-
"pre-commit": "pnpm lint-staged",
3+
"pre-commit": "pnpm nano-staged",
44
"pre-push": "pnpm test"
55
}
File renamed without changes.

package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -52,19 +52,20 @@
5252
"postpublish": "del ./package",
5353
"emitDeclarations": "tsc --emitDeclarationOnly",
5454
"build": "rollup -c & pnpm emitDeclarations",
55-
"lint": "eslint 'src/**/*.ts'",
55+
"start:storybook": "start-storybook -p 6006 --ci",
56+
"build:storybook": "del ./storybook-static; NODE_ENV=production build-storybook",
57+
"lint": "eslint 'sandboxes/**/*.{js,ts,vue}' 'src/**/*.{js,ts,vue}' 'stories/**/*.{js,ts,vue}' 'test/**/*.{js,ts,vue}'",
5658
"test:unit": "vitest run --coverage",
5759
"test:unit:watch": "vitest watch",
5860
"test:typings": "tsd",
5961
"test:size": "size-limit",
6062
"test": "pnpm lint && pnpm test:unit",
61-
"format": "prettier --write src test",
63+
"format": "prettier --write src test sandboxes stories",
6264
"commit": "cz",
63-
"start:storybook": "start-storybook -p 6006 --ci",
64-
"build:storybook": "del ./storybook-static; NODE_ENV=production build-storybook",
6565
"bumpVersion": "standard-version",
6666
"createGithubRelease": "simple-github-release",
67-
"release": "pnpm bumpVersion && git push origin main --tags && pnpm createGithubRelease"
67+
"release": "pnpm bumpVersion && git push origin main --tags && pnpm createGithubRelease",
68+
"updateGitHooks": "simple-git-hooks"
6869
},
6970
"peerDependencies": {
7071
"chart.js": "^3.7.0",
@@ -107,7 +108,7 @@
107108
"eslint-plugin-promise": "^6.0.0",
108109
"eslint-plugin-vue": "^9.0.0",
109110
"jsdom": "^20.0.3",
110-
"lint-staged": "^13.0.0",
111+
"nano-staged": "^0.8.0",
111112
"prettier": "2.7.1",
112113
"react": "^18.2.0",
113114
"react-dom": "^18.2.0",
@@ -126,6 +127,5 @@
126127
},
127128
"tsd": {
128129
"directory": "./test"
129-
},
130-
"readme": ""
130+
}
131131
}

0 commit comments

Comments
 (0)