@ndla/oxlint-config
v0.1.0
Published
An oxlint config used throughout NDLA.
Readme
@ndla/oxlint-config
An opinionated OXLint config for NDLA projects.
Installing
yarn add --D @ndla/oxlint-config oxlintIf you want to use type-aware linting, you also need to install tsgolint
yarn add --D oxlint-tsgolintUsage
Configs
Prefer oxlint.config.ts wherever possible.
Example:
import { defineConfig } from "oxlint";
import baseConfig from "@ndla/oxlint-config";
export default defineConfig({
extends: [baseConfig],
// if you want type aware linting
options: {
typeAware: true,
},
});Setup
Neovim
Use the following configuration when setting up the language server
{
settings = {
fixKind = "all",
},
}
VSCode
Add this to your settings.json:
{
"oxc.fixKind": "all"
}Zed
Add this to your settings.json:
{
"lsp": {
"oxlint": {
"initialization_options": {
"settings": {
"fixKind": "all"
}
}
}
}
}