Skip to content

Commit 2059906

Browse files
committed
switch to typescript
1 parent 6e25c9e commit 2059906

32 files changed

+8585
-15122
lines changed

.eslintrc.cjs

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
// @ts-check
2+
3+
const PROJECTS = ["./tsconfig.json"];
4+
5+
module.exports = {
6+
parser: "@typescript-eslint/parser",
7+
parserOptions: {
8+
ecmaVersion: 2022,
9+
project: PROJECTS,
10+
},
11+
extends: [
12+
"eslint:recommended",
13+
"plugin:@typescript-eslint/recommended",
14+
"plugin:import/recommended",
15+
"plugin:import/typescript",
16+
],
17+
plugins: ["@typescript-eslint", "import"],
18+
env: {
19+
es2022: true,
20+
node: true,
21+
},
22+
settings: {
23+
"import/resolver": {
24+
typescript: true,
25+
node: true,
26+
},
27+
},
28+
rules: {
29+
// Turns on errors for missing imports which is great
30+
"import/no-unresolved": "error",
31+
},
32+
};

.eslintrc.json

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

.github/workflows/push.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Test Runner for find-remove
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
pull_request:
9+
branches:
10+
- master
11+
12+
jobs:
13+
build-test-lint-check:
14+
name: Build, Test, Prettier, Lint and Check
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- name: Checkout code
19+
uses: actions/checkout@v4
20+
21+
- name: Install Node.js via nvm
22+
shell: bash --login {0}
23+
run: |
24+
nvm install --no-progress
25+
echo "$(dirname $(nvm which node))" >> $GITHUB_PATH
26+
27+
- name: Install npm dependencies
28+
run: npm ci
29+
30+
- name: Build assets
31+
run: npm run build
32+
33+
- name: Run tests
34+
uses: coactions/setup-xvfb@v1
35+
with:
36+
run: npm run test
37+
38+
- name: Run prettier
39+
run: npm run prettier
40+
41+
- name: Run linter
42+
run: npm run lint

.gitignore

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
node_modules
22
npm-debug.log
3-
yarn-error.log
4-
.vscode
5-
.DS_Store
6-
.vscode
7-
*.code-workspace
3+
package-lock.json
4+
*.code-workspace

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
v22.8.0

.prettierrc

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

.travis.yml

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

.vscode/extenstions.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

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"editor.tabSize": 2,
3+
"files.trimTrailingWhitespace": true,
4+
"editor.defaultFormatter": "esbenp.prettier-vscode",
5+
"editor.formatOnSave": true,
6+
"prettier.configPath": "./prettier.config.cjs",
7+
"cSpell.words": [
8+
"blahblah",
9+
"fmerge",
10+
"hehehe",
11+
"microbundle",
12+
"nodeunit",
13+
"randomstring",
14+
"someth"
15+
]
16+
}

LICENSE

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

0 commit comments

Comments
 (0)