Registry / testing / sl-fe-lint

sl-fe-lint

JSON →
library2.0.2jsnpmunverified

A lint configuration preset for front-end projects, including ESLint for JavaScript/React and Sass Lint for SCSS. Currently at version 2.0.2, updated for ESLint 4. The package provides a single .eslintrc configuration file tailored for React and standard JavaScript linting. Note: SCSS linting (.scss-lint.yml) is discontinued. This is a minimal, opinionated lint set for quicker setup with limited extensibility compared to larger lint config presets.

npm install sl-fe-lint
INSTALL
IMPORT
SIG · SL-FE-LINT
S
sl-fe-lint
testingjavascriptv2.0.2
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.

.eslintrc
Extend in your ESLint config file: extends: ['./node_modules/sl-fe-lint/.eslintrc']
npm install -g sl-fe-lint or using require directly
This package provides a flat config file; extend it via ESLint's extends field.
.sass-lint.yml
Reference in your project's .sass-lint.yml: extends: './node_modules/sl-fe-lint/.sass-lint.yml'
Importing as a module in JavaScript
This is a YAML config file for Sass Lint, not a JS module.
.scss-lint.yml
Discontinued; do not use. Replace with .sass-lint.yml or stylelint.
Using .scss-lint.yml file which is deprecated
The package previously included .scss-lint.yml but it is discontinued since version 2.0.0.

Shows how to install and configure the ESLint preset for a front-end project.

// 1. Install dependencies npm install --save-dev eslint sl-fe-lint // 2. Create .eslintrc.json in your project root { "extends": "./node_modules/sl-fe-lint/.eslintrc" } // 3. Lint your code npx eslint src/**/*.js
Debug
Known issues
breakingscss-lint.yml is discontinued and no longer provided. Using it may cause errors.
fix
Remove any reference to .scss-lint.yml and use .sass-lint.yml or switch to stylelint.
affects: >=2.0.0
breakingV2 update changed ESLint config for ESLint 4; incompatible with ESLint 3 or earlier.
fix
Upgrade ESLint to version 4+ or continue using older version of the package.
affects: >=2.0.0
deprecated.scss-lint.yml file is deprecated and discontinued.
fix
Use .sass-lint.yml or migrate to stylelint.
affects: >=2.0.0
gotchaThe package does not export any JavaScript module; it only provides configuration files.
fix
Use the config files as extended configurations in your linting tools, not as JS modules.
affects: all
gotchaThe package has no published CHANGELOG or migration guide; updates may break configs silently.
fix
Test after each update and review the repository's commit history for changes.
affects: all
Errors
Common errors & fixes
Error: Cannot find module 'sl-fe-lint' from '/path/to/project'
Package not installed in node_modules; missing npm install.
fix
Run 'npm install --save-dev sl-fe-lint' in your project directory.
ESLint: Configuration for rule "react/jsx-indent" is invalid
In version 2.0.2, jsx-indent rule was removed; your config still references it.
fix
Update your ESLint config to not extend old version; reinstall sl-fe-lint@latest and remove custom overrides for jsx-indent.
SassLint: No configuration found for .sass-lint.yml
You are referencing a non-existent file or path is incorrect.
fix
Ensure the extends path is relative to project root: './node_modules/sl-fe-lint/.sass-lint.yml'
Upgrade
Version history
2.0.2latest on npm
Audit
Dependencies
eslintrequiredESLint is a peer dependency required to run the ESLint rules.
Agent activity
2 hits · last 30 days
node
2
Resources
sl-fe-lint — npm install sl-fe-lint · libregistry