Skip to content

Commit

Permalink
chore: refactor eslint -> biome (#35)
Browse files Browse the repository at this point in the history
* chore: refactor eslint -> biome
* chore: no semi and single quotes (standardjs-like)
* chore: spaces vs tabs and lint also root files on tests
  • Loading branch information
lmammino authored Nov 14, 2023
1 parent c4eee19 commit 7b57016
Show file tree
Hide file tree
Showing 18 changed files with 573 additions and 3,302 deletions.
15 changes: 0 additions & 15 deletions .eslintrc.cjs

This file was deleted.

1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ jspm_packages

### VisualStudioCode ###
.vs/*
.vscode/*

# Local History for Visual Studio Code
.history/
Expand Down
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"]
}
18 changes: 18 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"[javascript]": {
"editor.defaultFormatter": "biomejs.biome",
"editor.codeActionsOnSave": {
"source.fixAll": "always",
"quickfix.biome": true,
"source.organizeImports.biome": true
}
},
"[json]": {
"editor.defaultFormatter": "biomejs.biome",
"editor.codeActionsOnSave": {
"source.fixAll": "always",
"quickfix.biome": true,
"source.organizeImports.biome": true
}
}
}
25 changes: 0 additions & 25 deletions __tests__/index.test.js

This file was deleted.

104 changes: 0 additions & 104 deletions __tests__/jwtValidator.test.js

This file was deleted.

33 changes: 33 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"$schema": "https://biomejs.dev/schemas/1.3.3/schema.json",
"organizeImports": {
"enabled": true
},
"linter": {
"enabled": true,
"rules": {
"recommended": true,
"nursery": {
"all": true
},
"correctness": {
"all": true
}
},
"ignore": ["coverage/"]
},
"formatter": {
"enabled": true,
"formatWithErrors": false,
"indentStyle": "space",
"indentWidth": 2,
"lineWidth": 80,
"ignore": ["coverage/"]
},
"javascript": {
"formatter": {
"semicolons": "asNeeded",
"quoteStyle": "single"
}
}
}
21 changes: 0 additions & 21 deletions constants.js

This file was deleted.

67 changes: 0 additions & 67 deletions jwtValidator.js

This file was deleted.

Loading

0 comments on commit 7b57016

Please sign in to comment.