Skip to content

Commit

Permalink
Switch to biome and update dependencies (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
KennethWussmann authored Oct 12, 2023
1 parent 9d0f904 commit aba5206
Show file tree
Hide file tree
Showing 84 changed files with 6,001 additions and 5,719 deletions.
3 changes: 0 additions & 3 deletions .eslintignore

This file was deleted.

5 changes: 0 additions & 5 deletions .eslintrc

This file was deleted.

5 changes: 4 additions & 1 deletion .github/actions/npm-install/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,12 @@ runs:
- name: Install Node
uses: actions/setup-node@v3
with:
node-version: 18
node-version: 20
cache: npm
registry-url: 'https://registry.npmjs.org'
- name: Update npm
run: npm install -g npm@latest
shell: bash
- name: Install dependencies
run: npm install
shell: bash
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
18
20
7 changes: 1 addition & 6 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,6 +1 @@
build/
dist/
oas/
!oas/helpers
src/sdk/
tscBuild/
**
1 change: 0 additions & 1 deletion .prettierrc

This file was deleted.

3 changes: 3 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"recommendations": ["biomejs.biome"]
}
5 changes: 3 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.defaultFormatter": "biomejs.biome",
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
"quickfix.biome": true,
"source.organizeImports.biome": true
},
"files.exclude": {
"**/.git": true,
Expand Down
20 changes: 20 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"$schema": "https://biomejs.dev/schemas/1.2.2/schema.json",
"organizeImports": {
"enabled": true
},
"formatter": {
"indentStyle": "space",
"indentSize": 2,
"lineWidth": 120
},
"linter": {
"enabled": true,
"rules": {
"recommended": true
}
},
"files": {
"ignore": ["./build", "./dist", "oas/", "!oas/helpers", "src/sdk", "tscBuild/", "./node_modules", ".github"]
}
}
20 changes: 10 additions & 10 deletions jest.config.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
module.exports = {
collectCoverage: false,
coverageDirectory: '<rootDir>/coverage',
coverageReporters: [['lcov', { projectRoot: '../..' }]],
collectCoverageFrom: ['src/**/*.ts', '!src/**/*.test.ts', '!src/**/index.ts'],
coverageDirectory: "<rootDir>/coverage",
coverageReporters: [["lcov", { projectRoot: "../.." }]],
collectCoverageFrom: ["src/**/*.ts", "!src/**/*.test.ts", "!src/**/index.ts"],
projects: [
{
testEnvironment: 'node',
preset: 'ts-jest',
coveragePathIgnorePatterns: ['/node_modules/', '/test/'],
displayName: 'unit',
testMatch: ['<rootDir>/**/*.test.ts'],
testPathIgnorePatterns: ['it.test.ts'],
setupFiles: ['<rootDir>/test/setupEnv.ts'],
testEnvironment: "node",
preset: "ts-jest",
coveragePathIgnorePatterns: ["/node_modules/", "/test/"],
displayName: "unit",
testMatch: ["<rootDir>/**/*.test.ts"],
testPathIgnorePatterns: ["it.test.ts"],
setupFiles: ["<rootDir>/test/setupEnv.ts"],
},
],
};
Loading

0 comments on commit aba5206

Please sign in to comment.