Skip to content

Commit

Permalink
Switch to biome for linting
Browse files Browse the repository at this point in the history
  • Loading branch information
OIRNOIR committed Apr 5, 2024
1 parent dde18c3 commit 5bf049e
Show file tree
Hide file tree
Showing 13 changed files with 360 additions and 2,048 deletions.
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ root = true

[*]
end_of_line = lf
indent_style = space
indent_style = tab
indent_size = 2
insert_final_newline = true
24 changes: 12 additions & 12 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"printWidth": 100,
"tabWidth": 2,
"useTabs": false,
"semi": true,
"singleQuote": false,
"quoteProps": "as-needed",
"jsxSingleQuote": false,
"trailingComma": "all",
"bracketSpacing": true,
"bracketSameLine": true,
"arrowParens": "always",
"proseWrap": "always"
"printWidth": 100,
"tabWidth": 2,
"useTabs": false,
"semi": true,
"singleQuote": false,
"quoteProps": "as-needed",
"jsxSingleQuote": false,
"trailingComma": "all",
"bracketSpacing": true,
"bracketSameLine": true,
"arrowParens": "always",
"proseWrap": "always"
}
28 changes: 28 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"$schema": "https://biomejs.dev/schemas/1.5.3/schema.json",
"organizeImports": {
"enabled": true
},
"linter": {
"enabled": true,
"rules": {
"recommended": true
}
},
"javascript": {
"formatter": {
"semicolons": "always"
}
},
"formatter": {
"enabled": true,
"formatWithErrors": false,
"indentStyle": "tab",
"indentWidth": 1,
"ignore": ["package.json"],
"lineWidth": 120
},
"files": {
"ignore": ["dist/"]
}
}
30 changes: 15 additions & 15 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
{
"id": "dev.oirnoir.RemoveDiscordMosaic",
"name": "Remove Discord Image Mosaic",
"description": "A plugin to remove Discord's new image mosaic",
"author": {
"name": "OIRNOIR",
"discordID": "720842469024989195",
"github": "oirnoir"
},
"version": "1.0.11",
"updater": {
"type": "store",
"id": "dev.oirnoir.RemoveDiscordMosaic"
},
"license": "MIT",
"type": "replugged-plugin",
"id": "dev.oirnoir.RemoveDiscordMosaic",
"name": "Remove Discord Image Mosaic",
"description": "A plugin to remove Discord's new image mosaic",
"author": {
"name": "OIRNOIR",
"discordID": "720842469024989195",
"github": "oirnoir"
},
"version": "1.0.12",
"updater": {
"type": "store",
"id": "dev.oirnoir.RemoveDiscordMosaic"
},
"license": "MIT",
"type": "replugged-plugin",
"renderer": "src/index.ts",
"plaintextPatches": "src/plaintextPatches.ts",
"reloadRequired": true,
Expand Down
26 changes: 8 additions & 18 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "remove-discord-mosaic",
"version": "1.0.11",
"version": "1.0.12",
"description": "A theme to remove Discord's new image mosaic",
"engines": {
"node": ">=14.0.0"
Expand All @@ -10,26 +10,16 @@
"watch": "replugged build plugin --watch",
"bundle": "replugged bundle plugin",
"check": "tsc --noEmit",
"prettier:check": "prettier ./src --check",
"eslint:check": "eslint ./src",
"prettier:fix": "prettier ./src --write",
"eslint:fix": "eslint ./src --fix",
"lint": "pnpm run prettier:check && pnpm run eslint:check && pnpm run check",
"lint:fix": "pnpm run prettier:fix && pnpm run eslint:fix"
"lint": "biome check . --apply"
},
"keywords": [],
"author": "OIRNOIR",
"license": "ISC",
"devDependencies": {
"@types/node": "^20.10.5",
"@typescript-eslint/eslint-plugin": "^6.16.0",
"@typescript-eslint/parser": "^6.16.0",
"eslint": "^8.56.0",
"eslint-config-dmitmel": "github:dmitmel/eslint-config-dmitmel",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-react": "^7.33.2",
"prettier": "^3.1.1",
"replugged": "^4.7.7",
"typescript": "^5.3.3"
}
"@biomejs/biome": "^1.6.4",
"@types/node": "^20.12.4",
"replugged": "^4.7.9",
"typescript": "^5.4.4"
},
"packageManager": "[email protected]+sha256.01c01eeb990e379b31ef19c03e9d06a14afa5250b82e81303f88721c99ff2e6f"
}
Loading

0 comments on commit 5bf049e

Please sign in to comment.