Skip to content

Commit

Permalink
refactor: meet typescript & esbuild
Browse files Browse the repository at this point in the history
  • Loading branch information
dsrkafuu committed Dec 5, 2021
1 parent ae9a5b2 commit 1295d19
Show file tree
Hide file tree
Showing 26 changed files with 3,653 additions and 6,042 deletions.
4 changes: 0 additions & 4 deletions .babelrc

This file was deleted.

10 changes: 0 additions & 10 deletions .browserslistrc

This file was deleted.

10 changes: 5 additions & 5 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
src/source/**
rollup.config.js
lib/**
node_modules/**
*.ts
src/common.js
lib/
test/
node_modules/
package-lock.json
11 changes: 7 additions & 4 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,14 @@
"browser": true,
"es2021": true
},
"extends": "eslint:recommended",
"parser": "@babel/eslint-parser",
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2021,
"ecmaVersion": "latest",
"sourceType": "module"
},
"rules": {}
"plugins": ["@typescript-eslint"],
"rules": {
"@typescript-eslint/no-explicit-any": "off"
}
}
4 changes: 2 additions & 2 deletions .github/workflows/npm-beta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ on:

jobs:
publish-beta:
if: "github.event.release.prerelease"
if: 'github.event.release.prerelease'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: "14"
node-version: '14'
registry-url: https://registry.npmjs.org/
- run: npm install
- run: npm run build
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,19 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: "14"
node-version: '14'
- run: npm install
- run: npm run build

publish-npm:
if: "!github.event.release.prerelease"
if: '!github.event.release.prerelease'
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: "14"
node-version: '14'
registry-url: https://registry.npmjs.org/
- run: npm install
- run: npm run build
Expand Down
4 changes: 4 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
lib/
test/
node_modules/
package-lock.json
6 changes: 3 additions & 3 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"printWidth": 100,
"printWidth": 80,
"tabWidth": 2,
"useTabs": false,
"semi": true,
"singleQuote": true,
"quoteProps": "as-needed",
"jsxSingleQuote": false,
"jsxSingleQuote": true,
"trailingComma": "es5",
"bracketSpacing": true,
"jsxBracketSameLine": false,
"bracketSameLine": false,
"arrowParens": "always"
}
Loading

0 comments on commit 1295d19

Please sign in to comment.