@hypernym/oxlint-config
v0.1.0
Published
Hypernym's internal config for OXLint.
Downloads
87
Readme
Usage
Add lint commands for manual linting (optional):
{
"scripts": {
"lint": "oxlint",
"lint:fix": "oxlint --fix"
}
}Run command:
pnpm lintDefault Config
Includes recommended rules for JavaScript and TypeScript out of the box.
// oxlint.config.ts
import { defineConfig, defaultConfig } from '@hypernym/oxlint-config'
export default defineConfig(defaultConfig)Custom Setup
// oxlint.config.ts
import {
defineConfig,
defaultConfig,
overrides,
ignorePatterns,
} from '@hypernym/oxlint-config'
export default defineConfig({
...defaultConfig,
categories: {
correctness: 'warn',
},
overrides: [
...overrides,
{
files: [],
rules: {},
},
],
ignorePatterns: [
...ignorePatterns,
'**/dir/',
'**/file.ts',
// ...
],
// ...
})License
Developed in 🇭🇷 Croatia, © Hypernym Studio.
Released under the MIT license.
