Skip to content

Commit

Permalink
style: migrate from Prettier/ESLint to BiomeJS
Browse files Browse the repository at this point in the history
  • Loading branch information
NedcloarBR committed Dec 22, 2023
1 parent 0f1d63c commit d99dda5
Show file tree
Hide file tree
Showing 92 changed files with 2,240 additions and 16,256 deletions.
29 changes: 8 additions & 21 deletions .commitlintrc.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,10 @@
{
"extends": ["@commitlint/config-conventional", "@commitlint/config-angular"],
"rules": {
"type-enum": [
2,
"always",
[
"chore",
"build",
"ci",
"docs",
"feat",
"fix",
"perf",
"refactor",
"revert",
"style",
"test",
"types"
]
]
}
"extends": ["@commitlint/config-conventional", "@commitlint/config-angular"],
"rules": {
"type-enum": [
2,
"always",
["chore", "build", "ci", "docs", "feat", "fix", "perf", "refactor", "revert", "style", "test", "types"]
]
}
}
3 changes: 0 additions & 3 deletions .eslintignore

This file was deleted.

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

This file was deleted.

3 changes: 1 addition & 2 deletions .lintstagedrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{
"*": "prettier --ignore-unknown --write",
"*.ts": "eslint --fix"
"*": "yarn dlx @biomejs/biome check --apply ./"
}
24 changes: 12 additions & 12 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"recommendations": [
"steoates.autoimport",
"ms-azuretools.vscode-docker",
"EditorConfig.EditorConfig",
"dbaeumer.vscode-eslint",
"eamodio.gitlens",
"wix.vscode-import-cost",
"Prisma.prisma",
"natqe.reload",
"rangav.vscode-thunder-client",
"styled-components.vscode-styled-components"
]
"recommendations": [
"steoates.autoimport",
"ms-azuretools.vscode-docker",
"EditorConfig.EditorConfig",
"dbaeumer.vscode-eslint",
"eamodio.gitlens",
"wix.vscode-import-cost",
"Prisma.prisma",
"natqe.reload",
"rangav.vscode-thunder-client",
"styled-components.vscode-styled-components"
]
}
241 changes: 131 additions & 110 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,114 +1,135 @@
{
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit"
},
"editor.fontFamily": "FiraCode NF",
"editor.fontLigatures": true,
"editor.tabSize": 2,
"files.exclude": {
"**/node_modules": true
},
"search.exclude": {
"**/node_modules": true,
"**/.yarn": true,
"**/.github": true,
"**/Backup": true
},
"material-icon-theme.files.associations": {
"*.controller.ts": "nest-controller",
"*.module.ts": "nest-module",
"*.service.ts": "nest-service",
"*.middleware.ts": "nest-middleware",
"*.filter.ts": "nest-filter",
"*.pipe.ts": "nest-pipe",
"*.gateway.ts": "nest-gateway",
"*.decorator.ts": "nest-decorator",
"*.guard.ts": "nest-guard",
"*.revoler.ts": "graphql",
"*.input.ts": "graphql",
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"quickfix.biome": "explicit",
"source.organizeImports.biome": "explicit"
},

"*.controller.js": "nest-controller",
"*.module.js": "nest-module",
"*.service.js": "nest-service",
"*.middleware.js": "nest-middleware",
"*.filter.js": "nest-filter",
"*.pipe.js": "nest-pipe",
"*.gateway.js": "nest-gateway",
"*.decorator.js": "nest-decorator",
"*.guard.js": "nest-guard",
"*.revoler.js": "graphql",
"*.input.js": "graphql"
},
"editor.fontFamily": "FiraCode NF",
"editor.fontLigatures": true,
"editor.tabSize": 2,

"cSpell.words": [
"Autopost",
"autoposter",
"Awkword",
"bandcamp",
"canvacord",
"clyp",
"clypit",
"cooldown",
"creaction",
"createreaction",
"deezer",
"Deezer",
"delayping",
"deletable",
"deleter",
"discordjs",
"dmmsg",
"duncte",
"dunctebot",
"Emited",
"Epoll",
"erela",
"Erela",
"facebook",
"Fishington",
"getyarn",
"INDB",
"lavalink",
"Lavalink",
"lavalinkqueue",
"lavaplayer",
"Middlewares",
"msgdm",
"msgint",
"ndcash",
"necord",
"Necord",
"Nedcloar",
"nestjs",
"NOSONAR",
"Novak",
"nsfw",
"ocremix",
"peterhanania",
"pornhub",
"prometheus",
"ratelimit",
"reactionrole",
"reddit",
"resave",
"resetar",
"Resetar",
"respawn",
"RESTJSON",
"rlist",
"SCAPI",
"skybot",
"soundcloud",
"Soundcloud",
"spotify",
"topgg",
"TYPEORM",
"Uhlein",
"vimeo",
"youshallnotpass",
"youtube",
"Youtube",
"ytmsearch"
]
"files.exclude": {
"**/node_modules": true,
"**/yarn/cache": true
},
"search.exclude": {
"**/node_modules": true,
"**/.yarn": true,
"**/.github": true,
"**/Backup": true
},

"[typescript]": {
"editor.defaultFormatter": "biomejs.biome",
"editor.formatOnSave": true
},

"[jsonc]": {
"editor.defaultFormatter": "biomejs.biome",
"editor.formatOnSave": true
},

"[prisma]": {
"editor.defaultFormatter": "Prisma.prisma",
"editor.formatOnSave": true
},

"material-icon-theme.files.associations": {
"*.controller.ts": "nest-controller",
"*.module.ts": "nest-module",
"*.service.ts": "nest-service",
"*.middleware.ts": "nest-middleware",
"*.filter.ts": "nest-filter",
"*.pipe.ts": "nest-pipe",
"*.gateway.ts": "nest-gateway",
"*.decorator.ts": "nest-decorator",
"*.guard.ts": "nest-guard",
"*.revoler.ts": "graphql",
"*.input.ts": "graphql",
"*.controller.js": "nest-controller",
"*.module.js": "nest-module",
"*.service.js": "nest-service",
"*.middleware.js": "nest-middleware",
"*.filter.js": "nest-filter",
"*.pipe.js": "nest-pipe",
"*.gateway.js": "nest-gateway",
"*.decorator.js": "nest-decorator",
"*.guard.js": "nest-guard",
"*.revoler.js": "graphql",
"*.input.js": "graphql"
},

"cSpell.words": [
"Autopost",
"autoposter",
"Awkword",
"bandcamp",
"biomejs",
"canvacord",
"clyp",
"clypit",
"commitlint",
"cooldown",
"creaction",
"createreaction",
"deezer",
"Deezer",
"delayping",
"deletable",
"deleter",
"discordjs",
"dmmsg",
"duncte",
"dunctebot",
"Emited",
"Epoll",
"erela",
"Erela",
"facebook",
"Fishington",
"getyarn",
"INDB",
"lavalink",
"Lavalink",
"lavalinkqueue",
"lavaplayer",
"Middlewares",
"msgdm",
"msgint",
"ndcash",
"necord",
"Necord",
"Nedcloar",
"nestjs",
"NOSONAR",
"Novak",
"nsfw",
"ocremix",
"peterhanania",
"pornhub",
"prometheus",
"ratelimit",
"reactionrole",
"reddit",
"resave",
"resetar",
"Resetar",
"respawn",
"RESTJSON",
"rlist",
"SCAPI",
"skybot",
"soundcloud",
"Soundcloud",
"spotify",
"topgg",
"TYPEORM",
"Uhlein",
"vimeo",
"youshallnotpass",
"youtube",
"Youtube",
"ytmsearch"
]
}
Loading

0 comments on commit d99dda5

Please sign in to comment.