Registry / testing / lint-config-m

lint-config-m

JSON →
library3.1.0jsnpmunverified

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.

npm install lint-config-m
INSTALL
IMPORT
SIG · LINT-CONFIG-M
L
lint-config-m
testingjavascriptv3.1.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

default (ESLint config)
eslint config extends: ["./node_modules/lint-config-m/eslint.js"]
require('lint-config-m/eslint')
Use extends path in package.json or .eslintrc; direct require not supported.
default (Stylelint config)
stylelint config extends: "./node_modules/lint-config-m/stylelint.js"
require('lint-config-m/stylelint')
Use extends path in .stylelintrc; direct require not supported.
nothing else
Package only provides config files; no JavaScript exports.

Shows installation, ESLint and Stylelint configuration using extends paths, and basic lint commands.

// 1. Install npm install eslint stylelint lint-config-m --save-dev // 2. Create .eslintrc.json { "eslintConfig": { "extends": ["./node_modules/lint-config-m/eslint.js"] } } // 3. Create .stylelintrc { "extends": "./node_modules/lint-config-m/stylelint.js" } // 4. Lint npx eslint src/ npx stylelint src/**/*.css
Debug
Known issues
gotchaConfig 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"
affects: >=0.0.0
breakingPeer 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.
affects: 3.1.0
deprecatedThis 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.
affects: >=3.1.0
Errors
Common errors & fixes
Error: Cannot find module 'lint-config-m/eslint'
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"]
Parsing error: The keyword 'import' is reserved
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.
Upgrade
Version history
3.1.0latest on npm
Audit
Dependencies
eslintrequiredPeer dependency: required for ESLint config to work; must be installed separately.
stylelintrequiredPeer dependency: required for Stylelint config to work; must be installed separately.
Agent activity
2 hits · last 30 days
node
2
Resources
lint-config-m — npm install lint-config-m · libregistry