From 2f3113fb161d8d5cee1cb6f01f08cc661478acfc Mon Sep 17 00:00:00 2001 From: Manoel Neto <64708198+Yorizel@users.noreply.github.com> Date: Fri, 20 Jun 2025 17:04:40 -0300 Subject: [PATCH 1/6] Create init.lua --- lua/astrocommunity/pack/oxlint/init.lua | 49 +++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 lua/astrocommunity/pack/oxlint/init.lua diff --git a/lua/astrocommunity/pack/oxlint/init.lua b/lua/astrocommunity/pack/oxlint/init.lua new file mode 100644 index 000000000..ed230dcde --- /dev/null +++ b/lua/astrocommunity/pack/oxlint/init.lua @@ -0,0 +1,49 @@ +return { + { + "williamboman/mason-lspconfig.nvim", + opts = function(_, opts) + opts.ensure_installed = require("astrocore").list_insert_unique(opts.ensure_installed, { "oxlint" }) + end, + }, + { + "WhoIsSethDaniel/mason-tool-installer.nvim", + optional = true, + opts = function(_, opts) + opts.ensure_installed = require("astrocore").list_insert_unique(opts.ensure_installed, { "oxlint" }) + end, + }, + { + "jay-babu/mason-null-ls.nvim", + optional = true, + opts = function(_, opts) + opts.ensure_installed = require("astrocore").list_insert_unique(opts.ensure_installed, { "oxlint" }) + end, + }, + { + "stevearc/conform.nvim", + optional = true, + opts = function(_, opts) + if not opts.formatters_by_ft then opts.formatters_by_ft = {} end + -- https://oxc.rs/docs/guide/usage/linter.html + local supported_ft = { + "astro", + "css", + "graphql", + -- "html", + "javascript", + "javascriptreact", + "json", + "jsonc", + -- "markdown", + "svelte", + "typescript", + "typescriptreact", + "vue", + -- "yaml", + } + for _, ft in ipairs(supported_ft) do + opts.formatters_by_ft[ft] = { "oxlint" } + end + end, + }, +} From 147c57b3e08ab10e4238cad6d4a7212846070839 Mon Sep 17 00:00:00 2001 From: Manoel Neto <64708198+Yorizel@users.noreply.github.com> Date: Fri, 20 Jun 2025 17:09:06 -0300 Subject: [PATCH 2/6] Update init.lua --- lua/astrocommunity/pack/oxlint/init.lua | 7 ------- 1 file changed, 7 deletions(-) diff --git a/lua/astrocommunity/pack/oxlint/init.lua b/lua/astrocommunity/pack/oxlint/init.lua index ed230dcde..66c01d00c 100644 --- a/lua/astrocommunity/pack/oxlint/init.lua +++ b/lua/astrocommunity/pack/oxlint/init.lua @@ -27,19 +27,12 @@ return { -- https://oxc.rs/docs/guide/usage/linter.html local supported_ft = { "astro", - "css", - "graphql", - -- "html", "javascript", "javascriptreact", - "json", - "jsonc", - -- "markdown", "svelte", "typescript", "typescriptreact", "vue", - -- "yaml", } for _, ft in ipairs(supported_ft) do opts.formatters_by_ft[ft] = { "oxlint" } From 4ce3f0ccca91698e9d1dfea5c78c682c17c532de Mon Sep 17 00:00:00 2001 From: Manoel Neto <64708198+Yorizel@users.noreply.github.com> Date: Fri, 20 Jun 2025 17:11:35 -0300 Subject: [PATCH 3/6] Create README.md --- lua/astrocommunity/pack/oxlint/README.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 lua/astrocommunity/pack/oxlint/README.md diff --git a/lua/astrocommunity/pack/oxlint/README.md b/lua/astrocommunity/pack/oxlint/README.md new file mode 100644 index 000000000..ae658bb9b --- /dev/null +++ b/lua/astrocommunity/pack/oxlint/README.md @@ -0,0 +1,22 @@ +# Oxlint + +[Oxlint](https://oxc.rs/) - The JavaScript Oxidation Compiler + +## Features + +### Parser +- **Performance**: 3x faster than swc +- **Compatibility**: All Test262 stage4 tests passed + +### Linter +- **Performance**: 50~100x faster than ESLint +- **Rules**: 520+ rules and growing + +### Resolver +- **Performance**: 28x faster than enhanced-resolve + +### Transformer +- **Compatibility**: Babel compatible + - TypeScript / React JSX + - Isolated Declarations DTS Emit + From e7d3496d6114499600ba5a8d6fc2908bbfe23b98 Mon Sep 17 00:00:00 2001 From: Manoel Neto <64708198+Yorizel@users.noreply.github.com> Date: Tue, 24 Jun 2025 12:07:23 -0300 Subject: [PATCH 4/6] Update lua/astrocommunity/pack/oxlint/README.md Co-authored-by: Uzair Aftab <48220549+Uzaaft@users.noreply.github.com> --- lua/astrocommunity/pack/oxlint/README.md | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/lua/astrocommunity/pack/oxlint/README.md b/lua/astrocommunity/pack/oxlint/README.md index ae658bb9b..c4a44fca2 100644 --- a/lua/astrocommunity/pack/oxlint/README.md +++ b/lua/astrocommunity/pack/oxlint/README.md @@ -2,21 +2,4 @@ [Oxlint](https://oxc.rs/) - The JavaScript Oxidation Compiler -## Features - -### Parser -- **Performance**: 3x faster than swc -- **Compatibility**: All Test262 stage4 tests passed - -### Linter -- **Performance**: 50~100x faster than ESLint -- **Rules**: 520+ rules and growing - -### Resolver -- **Performance**: 28x faster than enhanced-resolve - -### Transformer -- **Compatibility**: Babel compatible - - TypeScript / React JSX - - Isolated Declarations DTS Emit From fae8d55d303f49160147cdc1a185fe7c99f915b5 Mon Sep 17 00:00:00 2001 From: Uzair Aftab <48220549+Uzaaft@users.noreply.github.com> Date: Tue, 24 Jun 2025 17:10:55 +0200 Subject: [PATCH 5/6] Update lua/astrocommunity/pack/oxlint/init.lua --- lua/astrocommunity/pack/oxlint/init.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lua/astrocommunity/pack/oxlint/init.lua b/lua/astrocommunity/pack/oxlint/init.lua index 66c01d00c..3de0d6635 100644 --- a/lua/astrocommunity/pack/oxlint/init.lua +++ b/lua/astrocommunity/pack/oxlint/init.lua @@ -26,12 +26,12 @@ return { if not opts.formatters_by_ft then opts.formatters_by_ft = {} end -- https://oxc.rs/docs/guide/usage/linter.html local supported_ft = { - "astro", "javascript", - "javascriptreact", - "svelte", "typescript", + "javascriptreact", "typescriptreact", + "astro", + "svelte", "vue", } for _, ft in ipairs(supported_ft) do From 46ee22df114ed62b613880e19c34b19be91abf35 Mon Sep 17 00:00:00 2001 From: Uzair Aftab <48220549+Uzaaft@users.noreply.github.com> Date: Tue, 24 Jun 2025 17:13:33 +0200 Subject: [PATCH 6/6] Update README.md --- lua/astrocommunity/pack/oxlint/README.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lua/astrocommunity/pack/oxlint/README.md b/lua/astrocommunity/pack/oxlint/README.md index c4a44fca2..7b4d0e59b 100644 --- a/lua/astrocommunity/pack/oxlint/README.md +++ b/lua/astrocommunity/pack/oxlint/README.md @@ -1,5 +1,3 @@ # Oxlint -[Oxlint](https://oxc.rs/) - The JavaScript Oxidation Compiler - - +[Oxlint](https://oxc.rs/) is designed to catch erroneous or useless code without requiring any configurations by default.