Skip to content

Commit

Permalink
Eslint to biome
Browse files Browse the repository at this point in the history
  • Loading branch information
v3gaaa committed Nov 25, 2024
1 parent 373cfae commit a3b0270
Show file tree
Hide file tree
Showing 61 changed files with 10,047 additions and 13,614 deletions.
17 changes: 10 additions & 7 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
{
"presets": [
["@babel/preset-env", {
"targets": {
"node": "current"
}
}],
"@babel/preset-react"
[
"@babel/preset-env",
{
"targets": {
"node": "current"
}
}
],
"@babel/preset-react"
]
}
}
34 changes: 0 additions & 34 deletions .eslintrc.js

This file was deleted.

37 changes: 37 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
"vcs": {
"enabled": true,
"clientKind": "git",
"useIgnoreFile": true
},
"files": {
"ignoreUnknown": false,
"ignore": ["*.test.ts", "*.spec.tsx", "zustand.ts"]
},
"formatter": {
"enabled": true,
"indentStyle": "space",
"indentWidth": 4,
"lineEnding": "lf",
"lineWidth": 120
},
"organizeImports": {
"enabled": true
},
"linter": {
"enabled": true,
"rules": {
"recommended": true,
"a11y": {
"useKeyWithClickEvents": "off"
}
}
},
"javascript": {
"formatter": {
"quoteStyle": "single",
"jsxQuoteStyle": "single"
}
}
}
32 changes: 19 additions & 13 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,25 @@ module.exports = {
tsconfig: 'tsconfig.test.json',
},
],
'^.+\\.(js|jsx|mjs)$': ['babel-jest', {
presets: [
['@babel/preset-env', {
targets: {
node: 'current',
},
}],
'@babel/preset-react',
],
}],
'^.+\\.(js|jsx|mjs)$': [
'babel-jest',
{
presets: [
[
'@babel/preset-env',
{
targets: {
node: 'current',
},
},
],
'@babel/preset-react',
],
},
],
},
transformIgnorePatterns: [
'node_modules/(?!(d3-shape|d3-path|internmap|d3-array|d3-color|d3-interpolate|d3-time|d3-time-format|d3-format|d3-scale)/)'
'node_modules/(?!(d3-shape|d3-path|internmap|d3-array|d3-color|d3-interpolate|d3-time|d3-time-format|d3-format|d3-scale)/)',
],
testMatch: ['<rootDir>/src/**/*.spec.tsx', '<rootDir>/src/**/*.test.ts'],
setupFilesAfterEnv: ['<rootDir>/jest-setup.tsx'],
Expand All @@ -32,5 +38,5 @@ module.exports = {
},
testEnvironmentOptions: {
customExportConditions: ['node', 'node-addons'],
}
};
},
};
Loading

0 comments on commit a3b0270

Please sign in to comment.