Skip to content

Commit

Permalink
Replace eslint with biome
Browse files Browse the repository at this point in the history
  • Loading branch information
geoperez committed Nov 15, 2024
1 parent cb88df0 commit e396fd4
Show file tree
Hide file tree
Showing 38 changed files with 226 additions and 1,584 deletions.
2 changes: 0 additions & 2 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,4 @@ src
.nyc_output
.vscode
*.json
.eslintrc.*
.prettierrc.js
*.yml
2 changes: 1 addition & 1 deletion babel.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module.exports = {
presets: ['@babel/preset-env'],
};
};
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": false,
"clientKind": "git",
"useIgnoreFile": false
},
"files": {
"ignoreUnknown": false,
"ignore": []
},
"formatter": {
"enabled": true,
"indentStyle": "space",
"indentWidth": 4,
"lineEnding": "crlf",
"lineWidth": 120
},
"organizeImports": {
"enabled": true
},
"linter": {
"enabled": true,
"rules": {
"recommended": true,
"correctness": {
"useExhaustiveDependencies": "off"
}
}
},
"javascript": {
"formatter": {
"quoteStyle": "single",
"jsxQuoteStyle": "single"
}
}
}
27 changes: 0 additions & 27 deletions eslint.config.js

This file was deleted.

56 changes: 14 additions & 42 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,32 +1,21 @@
{
"name": "tubular-react-common",
"version": "1.10.3",
"version": "2.0.0",
"description": "Unosquare Tubular React Common",
"main": "dist/index.js",
"scripts": {
"build": "tsc",
"start": "npm run build",
"check": "npm run build && npm test",
"watch": "tsc --watch",
"start": "pnpm run build",
"check": "pnpm run build && pnpm test",
"test": "jest",
"cest": "jest --collectCoverage",
"lint": "eslint src/**/*.ts",
"lint:fix": "eslint src/**/*.ts --fix"
},
"prettier": {
"endOfLine": "auto",
"semi": true,
"trailingComma": "all",
"singleQuote": true,
"printWidth": 120,
"tabWidth": 4
"lint": "pnpm biome check src/",
"lint:fix": "pnpm biome check --write src/"
},
"jest": {
"automock": false,
"moduleFileExtensions": [
"ts",
"tsx",
"js"
],
"moduleFileExtensions": ["ts", "tsx", "js"],
"transform": {
"^.+\\.(ts|tsx)$": [
"ts-jest",
Expand All @@ -37,20 +26,10 @@
],
"^.+\\.(js)$": "babel-jest"
},
"collectCoverageFrom": [
"./src/**/*.{ts,tsx}",
"!**/node_modules/**",
"!./test/**"
],
"transformIgnorePatterns": [
"/node_modules/(?!tubular-common)"
],
"testMatch": [
"<rootDir>/test/**/*.spec.(ts|tsx)"
],
"setupFilesAfterEnv": [
"./setupJestEnv.ts"
]
"collectCoverageFrom": ["./src/**/*.{ts,tsx}", "!**/node_modules/**", "!./test/**"],
"transformIgnorePatterns": ["/node_modules/(?!tubular-common)"],
"testMatch": ["<rootDir>/test/**/*.spec.(ts|tsx)"],
"setupFilesAfterEnv": ["./setupJestEnv.ts"]
},
"repository": {
"type": "git",
Expand All @@ -63,27 +42,20 @@
},
"homepage": "https://github.com/unosquare/tubular-react-common#readme",
"dependencies": {
"tubular-common": "^6.10.4"
"tubular-common": "^7.0.1"
},
"devDependencies": {
"@babel/preset-env": "^7.26.0",
"@eslint/js": "^9.14.0",
"@biomejs/biome": "1.9.4",
"@testing-library/jest-dom": "^6.6.3",
"@testing-library/react": "^12.1.2",
"@types/eslint__js": "^8.42.3",
"@types/jest": "^29.5.14",
"babel-jest": "^29.7.0",
"eslint": "^9.14.0",
"eslint-plugin-prettier": "^5.2.1",
"eslint-plugin-react": "^7.37.2",
"eslint-plugin-react-hooks": "^5.0.0",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"prettier": "^3.3.3",
"striptags": "^3.2.0",
"ts-jest": "^29.2.5",
"typescript": "^5.6.3",
"typescript-eslint": "^8.14.0"
"typescript": "^5.6.3"
},
"peerDependencies": {
"@types/react": "^17.0.0",
Expand Down
Loading

0 comments on commit e396fd4

Please sign in to comment.