Registry / devops / eslint-config-jsc-front-lint

eslint-config-jsc-front-lint

JSON →
library1.1.4jsnpmunverified

Shared ESLint and Prettier configuration for frontend projects. Version 1.1.4 is the latest stable release. It provides a single dependency for both ESLint config and Prettier config (.prettierrc.json). The package presumes external peer dependencies must be installed separately. Different from other configs as it bundles a prettier config file export path.

npm install eslint-config-jsc-front-lint
INSTALL
IMPORT
SIG · ESLINT-CONFIG-JSC-
E
eslint-config-jsc-front-lint
devopsjavascriptv1.1.4
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.

eslintConfig
"extends": ["eslint-config-jsc-front-lint"]
"extends": ["jsc-front-lint"]
Correct extends value includes full scope name.
prettier
"prettier": "eslint-config-jsc-front-lint/.prettierrc.json"
"prettier": ".prettierrc.json"
Use explicit path to provided config file.
require
const config = require('eslint-config-jsc-front-lint');
import config from 'eslint-config-jsc-front-lint';
This package does not export a JS object for programmatic use; it is meant to be used in .eslintrc or package.json extends.

Installs and configures the shared ESLint and Prettier config via package.json fields.

// 1. Install npm i eslint-config-jsc-front-lint --save-dev // 2. package.json { "prettier": "eslint-config-jsc-front-lint/.prettierrc.json", "eslintConfig": { "extends": ["eslint-config-jsc-front-lint"] } } // 3. Optional: create .eslintrc.js module.exports = { extends: ['eslint-config-jsc-front-lint'] };
Debug
Known issues
deprecatedUse of eslintConfig in package.json is deprecated in favor of separate .eslintrc file.
fix
Create .eslintrc.js or .eslintrc.json with extends field.
affects: >=1.0
gotchaThe package does not include peer dependencies; eslint and prettier must be installed separately.
fix
npm i eslint prettier --save-dev
affects: >=1.0
gotchaPrettier config path is relative to project root, not to the package.
fix
Do not use path.resolve; just the string as shown.
affects: >=1.0
Errors
Common errors & fixes
Error: Failed to load config "eslint-config-jsc-front-lint" to extend from.
Missing peer dependency or incomplete install.
fix
Run 'npm install eslint-config-jsc-front-lint eslint prettier --save-dev'
Cannot find module 'eslint-config-jsc-front-lint/.prettierrc.json'
Incorrect path in prettier key or file missing.
fix
Set "prettier": "eslint-config-jsc-front-lint/.prettierrc.json"
Upgrade
Version history
1.1.4latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
eslint-config-jsc-front-lint — npm install eslint-config-jsc-front-lint · libregistry