Skip to content

Commit

Permalink
Internal formatting changes
Browse files Browse the repository at this point in the history
  • Loading branch information
theogravity committed Mar 29, 2024
1 parent 4c22008 commit 274809e
Show file tree
Hide file tree
Showing 31 changed files with 828 additions and 1,697 deletions.
31 changes: 0 additions & 31 deletions .editorconfig

This file was deleted.

5 changes: 0 additions & 5 deletions .eslintignore

This file was deleted.

12 changes: 0 additions & 12 deletions .eslintrc.js

This file was deleted.

11 changes: 0 additions & 11 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,3 @@ jobs:
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Setup .npmrc file to publish to GitHub Packages
uses: actions/setup-node@v1
with:
node-version: '14.x'
registry-url: 'https://npm.pkg.github.com'
scope: '@tomchen'
- run: npm run addscope
- name: Publish to GitHub Packages
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1 change: 0 additions & 1 deletion .husky/.gitignore

This file was deleted.

5 changes: 0 additions & 5 deletions .husky/commit-msg

This file was deleted.

8 changes: 0 additions & 8 deletions .husky/common.sh

This file was deleted.

5 changes: 0 additions & 5 deletions .husky/pre-commit

This file was deleted.

7 changes: 0 additions & 7 deletions .prettierrc.js

This file was deleted.

8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
# 2.3.1 (2024-03-28)

No actual logic changes.

- Remove postinstall script
- Remove eslint and use biome.js for linting / formatting instead
- Remove unnecessary devDep packages.

# 2.3.0 (2024-03-27)

- Implement `onDownloadInterrupted()` for the download `completed` state. This should cover urls that result in 404s.
Expand Down
21 changes: 21 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"$schema": "https://biomejs.dev/schemas/1.6.3/schema.json",
"organizeImports": {
"enabled": true
},
"formatter": {
"enabled": true,
"indentStyle": "space",
"lineWidth": 120
},
"linter": {
"enabled": true,
"rules": {
"suspicious": {
"noImplicitAnyLet": "off",
"noExplicitAny": "off"
},
"recommended": true
}
}
}
1 change: 0 additions & 1 deletion commitlint.config.js

This file was deleted.

19 changes: 8 additions & 11 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
module.exports = {
roots: ['<rootDir>/test'],
testMatch: [
'**/__tests__/**/*.+(ts|tsx|js)',
'**/?(*.)+(spec|test).+(ts|tsx|js)',
],
roots: ["<rootDir>/test"],
testMatch: ["**/__tests__/**/*.+(ts|tsx|js)", "**/?(*.)+(spec|test).+(ts|tsx|js)"],
transform: {
'^.+\\.(ts|tsx)$': ['ts-jest', { tsConfig: 'tsconfig.json' }],
'\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$':
'./config/fileTransformer.js',
"^.+\\.(ts|tsx)$": ["ts-jest", { tsConfig: "tsconfig.json", diagnostics: { exclude: ["**"] } }],
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$":
"./config/fileTransformer.js",
},
testEnvironment: "node",
moduleNameMapper: {
'electron': '<rootDir>/__mocks__/electron.js',
}
}
electron: "<rootDir>/__mocks__/electron.js",
},
};
Loading

0 comments on commit 274809e

Please sign in to comment.