Skip to content

Commit

Permalink
Merge pull request #246 from sota1235/feat-use-biome
Browse files Browse the repository at this point in the history
replace eslint, prettier with biome
  • Loading branch information
sota1235 authored Jul 10, 2024
2 parents c0b1a63 + a0a50f1 commit a4ac416
Show file tree
Hide file tree
Showing 20 changed files with 732 additions and 4,614 deletions.
2 changes: 0 additions & 2 deletions .eslintignore

This file was deleted.

5 changes: 0 additions & 5 deletions .eslintrc.json

This file was deleted.

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

This file was deleted.

34 changes: 34 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"$schema": "https://biomejs.dev/schemas/1.8.3/schema.json",
"files": {
"include": ["src/**/*"],
"ignore": ["node_modules/**/*", "dist/**/*"]
},
"organizeImports": {
"enabled": true
},
"linter": {
"enabled": true,
"rules": {
"recommended": true,
"security": {
"recommended": true
},
"complexity": {
"useLiteralKeys": "off"
},
"correctness": {
"useJsxKeyInIterable": "off"
},
"suspicious": {
"noExplicitAny": "off"
}
}
},
"formatter": {
"enabled": true,
"indentStyle": "space",
"indentWidth": 2,
"lineEnding": "lf"
}
}
5 changes: 4 additions & 1 deletion jest.config.ci.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ const defaultConfig = require('./jest.config.js');
module.exports = Object.assign({}, defaultConfig, {
collectCoverage: true,
collectCoverageFrom: [
'**/*.{ts,tsx}', '!**/node_modules/**', '!**/*.d.ts', '!jest.*'
'**/*.{ts,tsx}',
'!**/node_modules/**',
'!**/*.d.ts',
'!jest.*',
],
});
13 changes: 4 additions & 9 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
module.exports = {
roots: [
"<rootDir>/src",
],
roots: ['<rootDir>/src'],
transform: {
"^.+\\.tsx?$": "ts-jest",
'^.+\\.tsx?$': 'ts-jest',
},
testRegex: "(/__tests__/.*|(\\.|/)(test|spec))\\.tsx?$",
moduleFileExtensions: [
"ts",
"js",
],
testRegex: '(/__tests__/.*|(\\.|/)(test|spec))\\.tsx?$',
moduleFileExtensions: ['ts', 'js'],
};
Loading

0 comments on commit a4ac416

Please sign in to comment.