longmo-lint-configs

raw JSON →
1.0.17 verified Fri May 01 auth: no javascript

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.

error Error [ERR_MODULE_NOT_FOUND]: Cannot find module 'eslint-plugin-vue'
cause Missing peer dependency 'eslint-plugin-vue' not installed.
fix
Install the missing peer dep: pnpm add -D eslint-plugin-vue vue-eslint-parser
error SyntaxError: Unexpected token 'export' (or 'import' not found) in eslint.config.mjs
cause Config file uses ESM syntax but Node is not configured for ESM.
fix
Set "type": "module" in package.json, or rename file to .mjs.
error Error: Cannot find module 'longmo-lint-configs/eslint-config'
cause Import path is wrong; likely tried to import from 'longmo-lint-configs' top-level.
fix
Use subpath import: import { defineConfig } from 'longmo-lint-configs/eslint-config'
breaking ESLint config uses flat config format (ESLint v9+). Does not work with ESLint v8 or .eslintrc files.
fix Upgrade ESLint to v9 and use eslint.config.mjs (or .js). Convert any legacy .eslintrc configs.
gotcha Many peer dependencies are not bundled; you must install them manually. If missing, imports fail at runtime.
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).
gotcha Vue 2 projects require extra rules (e.g., vue/no-multiple-template-root). Not automatically detected.
fix Add Vue 2 specific rules in your eslint.config.mjs override block.
deprecated Version 1.0.0 used require() syntax; now ESM only.
fix Use import statements with .mjs extension for config files.
npm install longmo-lint-configs
yarn add longmo-lint-configs
pnpm add longmo-lint-configs

Shows how to import each configuration (ESLint, Prettier, Stylelint) in separate config files.

// eslint.config.mjs
import { defineConfig } from 'longmo-lint-configs/eslint-config';
export default defineConfig([{
  rules: {
    'no-console': 'warn',
    'vue/multi-word-component-names': 'off',
  },
}]);

// prettier.config.mjs
import prettierConfig from 'longmo-lint-configs/prettier-config';
export default prettierConfig;

// stylelint.config.mjs
import stylelintConfig from 'longmo-lint-configs/stylelint-config';
export default stylelintConfig;