Skip to content

Commit 8486679

Browse files
committed
Add typescript, vite and vitest
1 parent 7e6eb91 commit 8486679

33 files changed

+7678
-3524
lines changed

.eslintrc.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
module.exports = {
2-
extends: 'airbnb-base',
3-
plugins: ['jest'],
2+
extends: "airbnb-base",
3+
plugins: ["jest"],
44
rules: {
5-
'class-methods-use-this': ['off'],
6-
'no-underscore-dangle': ['error', { allowAfterThis: true }],
5+
"class-methods-use-this": ["off"],
6+
"no-underscore-dangle": ["error", { allowAfterThis: true }],
77
},
88
env: {
99
browser: true,
10-
'jest/globals': true,
10+
"jest/globals": true,
1111
},
12-
};
12+
}

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
2929
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
3030
with:
31-
node-version: 16.x
31+
node-version: 18.x
3232
- run: yarn
3333
- run: yarn test --coverage
3434
- name: Coveralls

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,6 @@ npm-debug.log
44
.idea/
55
.DS_Store
66
dist/*.map
7+
.vscode/*
8+
!.vscode/settings.json.sample
9+
!.vscode/extensions.json

.npmignore

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@ src/
33
test/
44
assets/
55
dev/
6+
.vscode/
67
.eslintrc.js
8+
.prettierrc.json
79
babel.config.json
8-
webpack.config.js
10+
vite.config.mts
11+
vitest.setup.ts
12+
tsconfig.json
913
yarn.lock

.prettierrc.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"trailingComma": "es5",
3-
"tabWidth": 2,
4-
"semi": false,
5-
"singleQuote": false
2+
"trailingComma": "es5",
3+
"tabWidth": 2,
4+
"semi": true,
5+
"singleQuote": true
66
}

.vscode/extensions.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"recommendations": ["dbaeumer.vscode-eslint", "esbenp.prettier-vscode"]
3+
}

.vscode/settings.json.sample

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"editor.codeActionsOnSave": {
3+
"source.fixAll.eslint": "explicit"
4+
},
5+
"editor.defaultFormatter": "esbenp.prettier-vscode",
6+
"editor.formatOnSave": true,
7+
"editor.formatOnPaste": true,
8+
"editor.formatOnType": false,
9+
"files.associations": {
10+
"*.json.sample": "json"
11+
},
12+
"[ignore]": {
13+
"editor.defaultFormatter": "foxundermoon.shell-format"
14+
}
15+
}

babel.config.json

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

0 commit comments

Comments
 (0)