{"id":25903,"library":"longmo-lint-configs","title":"longmo-lint-configs","description":"A unified linter configuration package for Vue 2/3 projects, providing preconfigured ESLint, Prettier, Stylelint, and JSConfig setups. Version 1.0.17, updated frequently via GitHub. Key differentiators: supports both Vue 2 and Vue 3 with flat ESLint config (ESLint v9+), includes TypeScript support, and relies on peer dependencies kept external to minimize bundle size (36.9 kB). Requires manual installation of many peer deps; recommended for teams wanting a single source of lint configs.","status":"active","version":"1.0.17","language":"javascript","source_language":"en","source_url":null,"tags":["javascript"],"install":[{"cmd":"npm install longmo-lint-configs","lang":"bash","label":"npm"},{"cmd":"yarn add longmo-lint-configs","lang":"bash","label":"yarn"},{"cmd":"pnpm add longmo-lint-configs","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Core linter; peer dependency for all lint configs.","package":"eslint","optional":false},{"reason":"Required for ESLint flat config (JS rules).","package":"@eslint/js","optional":false},{"reason":"Required for Vue-specific lint rules.","package":"eslint-plugin-vue","optional":false},{"reason":"Required to parse .vue files.","package":"vue-eslint-parser","optional":false},{"reason":"Required for Prettier config export.","package":"prettier","optional":false},{"reason":"Required for Stylelint config export.","package":"stylelint","optional":false}],"imports":[{"note":"Default export is not available; must use named import from subpath 'eslint-config'.","wrong":"import defineConfig from 'longmo-lint-configs'","symbol":"defineConfig","correct":"import { defineConfig } from 'longmo-lint-configs/eslint-config'"},{"note":"Prettier config is a default export, not named. Use default import.","wrong":"import { prettierConfig } from 'longmo-lint-configs/prettier-config'","symbol":"prettierConfig","correct":"import prettierConfig from 'longmo-lint-configs/prettier-config'"},{"note":"Stylelint config is a default export, not named. Use default import.","wrong":"import { stylelintConfig } from 'longmo-lint-configs/stylelint-config'","symbol":"stylelintConfig","correct":"import stylelintConfig from 'longmo-lint-configs/stylelint-config'"}],"quickstart":{"code":"// eslint.config.mjs\nimport { defineConfig } from 'longmo-lint-configs/eslint-config';\nexport default defineConfig([{\n  rules: {\n    'no-console': 'warn',\n    'vue/multi-word-component-names': 'off',\n  },\n}]);\n\n// prettier.config.mjs\nimport prettierConfig from 'longmo-lint-configs/prettier-config';\nexport default prettierConfig;\n\n// stylelint.config.mjs\nimport stylelintConfig from 'longmo-lint-configs/stylelint-config';\nexport default stylelintConfig;","lang":"javascript","description":"Shows how to import each configuration (ESLint, Prettier, Stylelint) in separate config files."},"warnings":[{"fix":"Upgrade ESLint to v9 and use eslint.config.mjs (or .js). Convert any legacy .eslintrc configs.","message":"ESLint config uses flat config format (ESLint v9+). Does not work with ESLint v8 or .eslintrc files.","severity":"breaking","affected_versions":">=1.0.0"},{"fix":"Run: pnpm add -D eslint @eslint/js eslint-plugin-vue vue-eslint-parser eslint-plugin-import-x eslint-plugin-prettier prettier stylelint (see README for full list).","message":"Many peer dependencies are not bundled; you must install them manually. If missing, imports fail at runtime.","severity":"gotcha","affected_versions":">=1.0.0"},{"fix":"Add Vue 2 specific rules in your eslint.config.mjs override block.","message":"Vue 2 projects require extra rules (e.g., vue/no-multiple-template-root). Not automatically detected.","severity":"gotcha","affected_versions":">=1.0.0"},{"fix":"Use import statements with .mjs extension for config files.","message":"Version 1.0.0 used require() syntax; now ESM only.","severity":"deprecated","affected_versions":">=1.0.17"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Install the missing peer dep: pnpm add -D eslint-plugin-vue vue-eslint-parser","cause":"Missing peer dependency 'eslint-plugin-vue' not installed.","error":"Error [ERR_MODULE_NOT_FOUND]: Cannot find module 'eslint-plugin-vue'"},{"fix":"Set \"type\": \"module\" in package.json, or rename file to .mjs.","cause":"Config file uses ESM syntax but Node is not configured for ESM.","error":"SyntaxError: Unexpected token 'export' (or 'import' not found) in eslint.config.mjs"},{"fix":"Use subpath import: import { defineConfig } from 'longmo-lint-configs/eslint-config'","cause":"Import path is wrong; likely tried to import from 'longmo-lint-configs' top-level.","error":"Error: Cannot find module 'longmo-lint-configs/eslint-config'"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}