lint-config-m

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

Shared ESLint and Stylelint configuration package. Current version 3.1.0, stable, with minimal releases. Requires manual installation of peer dependencies (ESLint ^3.13.0, Stylelint ^7.7.1). Provides pre-configured rule sets for JavaScript and CSS linting. Offers separate config files for ESLint and Stylelint, extending from local node_modules paths. Aimed at standardizing lint setups across projects.

error Error: Cannot find module 'lint-config-m/eslint'
cause Requiring the config file as a module instead of using extends path.
fix
Use 'extends' in eslint config: "extends": ["./node_modules/lint-config-m/eslint.js"]
error Parsing error: The keyword 'import' is reserved
cause ESLint parser version mismatch with the config's rule set.
fix
Ensure ESLint version matches ^3.13.0 and configure parserOptions if using ES modules.
gotcha Config files are found under node_modules/lint-config-m/. Do NOT use package name directly in extends.
fix Use full path: "./node_modules/lint-config-m/eslint.js"
breaking Peer dependency versions are locked to ESLint ^3.13.0 and Stylelint ^7.7.1. Incompatible with newer versions without manual override.
fix Use older ESLint/Stylelint versions or look for alternative config packages supporting newer versions.
deprecated This package has not been updated recently; shared configs may not reflect latest best practices.
fix Consider using popular alternatives like eslint-config-airbnb or stylelint-config-standard.
npm install lint-config-m
yarn add lint-config-m
pnpm add lint-config-m