Socket
Book a DemoInstallSign in
Socket

@ctrl/oxlint-config

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ctrl/oxlint-config

A shareable oxlint for my projects.

latest
Source
npmnpm
Version
1.3.3
Version published
Maintainers
1
Created
Source

@ctrl/oxlint-config NPM

A shareable oxlint for my projects.

Getting Started

pnpm add -D oxlint @ctrl/oxlint-config prettier @trivago/prettier-plugin-sort-imports

Usage

In your project's .oxlintrc.json file, add the following:

{
  "$schema": "./node_modules/oxlint/configuration_schema.json",
  "env": {
    "node": true
  },
  "plugins": ["react", "unicorn", "typescript", "oxc", "import"],
  "extends": ["@ctrl/oxlint-config"]
}

Add a prettier config to your package.json:

{
  "prettier": {
    "singleQuote": true,
    "trailingComma": "all",
    "arrowParens": "avoid",
    "semi": true,
    "printWidth": 100,
    "plugins": ["@trivago/prettier-plugin-sort-imports"],
    "importOrder": [
      "^node:.*$",
      "<THIRD_PARTY_MODULES>",
      "^(@ctrl)(/.*|$)",
      "^\\.\\./(?!.*\\.css$)",
      "^\\./(?!.*\\.css$)(?=.*/)",
      "^\\./(?!.*\\.css$)(?!.*/)"
    ],
    "importOrderSeparation": true,
    "importOrderSortSpecifiers": false
  }
}

Current Import Order Rules

  • ^node:.*$ - Node.js built-in modules
  • <THIRD_PARTY_MODULES> - Third-party modules
  • ^(@ctrl)(/.*|$) - @ctrl packages
  • ^\\.\\./(?!.*\\.css$) - Relative imports from parent folders
  • ^\\./(?!.*\\.css$)(?=.*/) - Relative imports from subfolders
  • ^\\./(?!.*\\.css$)(?!.*/) - Relative imports from same folder

Note: CSS files (.css extensions) are excluded from all relative import patterns and maintain their original positions

FAQs

Package last updated on 05 Dec 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts