{"id":25535,"library":"eslint-plugin-v3xlabs","title":"v3xlabs ESLint Presets","description":"eslint-plugin-v3xlabs v1.7.14 provides opinionated, strict lint presets for JavaScript and TypeScript projects, targeting ESLint v9 flat config only. It enforces import sorting, unused import removal, descriptive identifiers, and integrates SonarJS and Unicorn plugins for additional quality gates. Released regularly on npm, it ships TypeScript types and is designed for aggressive linting environments. Unlike general presets, it is explicitly formatting-heavy and opinionated, with a focus on modern JS/TS rules. It pairs with a create utility for easy setup.","status":"active","version":"1.7.14","language":"javascript","source_language":"en","source_url":"https://github.com/v3xlabs/eslint-v3xlabs","tags":["javascript","typescript"],"install":[{"cmd":"npm install eslint-plugin-v3xlabs","lang":"bash","label":"npm"},{"cmd":"yarn add eslint-plugin-v3xlabs","lang":"bash","label":"yarn"},{"cmd":"pnpm add eslint-plugin-v3xlabs","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"peer dependency: requires ESLint v9 with flat config","package":"eslint","optional":false}],"imports":[{"note":"ESM-only; package uses flat config format. Cannot be used with require().","wrong":"const v3xlabs = require('eslint-plugin-v3xlabs');","symbol":"v3xlabs","correct":"import v3xlabs from 'eslint-plugin-v3xlabs';"},{"note":"Access via bracket notation because 'flat/recommended' key contains a slash.","wrong":"v3xlabs.configs.flat.recommended","symbol":"flat/recommended","correct":"v3xlabs.configs['flat/recommended']"},{"note":"Only default export exists; named export 'configs' is not available.","wrong":"import { configs } from 'eslint-plugin-v3xlabs';","symbol":"configs (for custom)","correct":"import v3xlabs from 'eslint-plugin-v3xlabs'; const config = v3xlabs.configs['flat/recommended'];"}],"quickstart":{"code":"// Install: pnpm add -D eslint eslint-plugin-v3xlabs\n// Create eslint.config.mjs:\nimport v3xlabs from 'eslint-plugin-v3xlabs';\n\nexport default [\n  ...v3xlabs.configs['flat/recommended'],\n  {\n    rules: {\n      'no-console': 'warn',\n    },\n  },\n];\n\n// Add to package.json:\n{\n  \"scripts\": {\n    \"lint\": \"eslint .\"\n  }\n}","lang":"typescript","description":"Minimal setup using ESLint v9 flat config with v3xlabs recommended preset and a custom rule override."},"warnings":[{"fix":"Migrate project to ESLint v9 flat config (eslint.config.js/mjs). See https://eslint.org/docs/latest/use/configure/configuration-files-new","message":"Only supports ESLint v9 flat config; not compatible with older .eslintrc* formats.","severity":"breaking","affected_versions":">=1.0.0"},{"fix":"Use v3xlabs.configs['flat/recommended'] or wait for future release with semantic config naming.","message":"The 'flat/recommended' config key may change in future major versions. Prefer stable named configs.","severity":"deprecated","affected_versions":">=1.7.0"},{"fix":"Run with --fix or gradually disable rules via overrides in eslint.config.mjs.","message":"The preset is extremely strict; may cause many lint errors on existing codebases.","severity":"gotcha","affected_versions":">=1.0.0"},{"fix":"Install prettier separately and ensure .prettierrc is consistent with preset formatting expectations.","message":"Requires Prettier configuration; no built-in Prettier integration, only lint rules.","severity":"gotcha","affected_versions":">=1.0.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Run 'pnpm add -D eslint eslint-plugin-v3xlabs' and restart ESLint.","cause":"Missing package installation or incorrect import path.","error":"Error: Cannot find module 'eslint-plugin-v3xlabs'"},{"fix":"Use bracket notation: v3xlabs.configs['flat/recommended']","cause":"Using dot notation to access 'flat/recommended' config.","error":"TypeError: v3xlabs.configs.flat is undefined"},{"fix":"Ensure 'eslint-plugin-v3xlabs' is in devDependencies and import and spread configs properly.","cause":"Plugin not installed or not added to config as plugin object.","error":"ESLint couldn't find the plugin 'eslint-plugin-v3xlabs'. Is the plugin installed?"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}