Registry / testing / babel-jscs

babel-jscs

JSON →
library3.0.0-beta1jsnpmunverified

babel-jscs allows linting all valid Babel code with JSCS by providing a custom parser (esprima) that monkeypatches JSCS to support Babel syntax. The package is experimental, last released as 3.0.0-beta1, and is intended to be integrated into JSCS itself via the --esnext flag. It is not actively maintained and is superseded by ESLint and babel-eslint. Key differentiator: enables Babel syntax support for JSCS users before JSCS natively supported it.

npm install babel-jscs
INSTALL
IMPORT
SIG · BABEL-JSCS
B
babel-jscs
testingjavascriptv3.0.0-beta1
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18226 runs
build_error
glibc
node 18226 runs
build_error
Code
Verified usage

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

babel-jscs (as eslint plugin)
Use via JSCS config: { "esnext": true }
Trying to import babel-jscs as a module in code
This is not a programmatic API; it is a JSCS plugin configured in .jscsrc or CLI.

Demonstrates installing and using babel-jscs with JSCS to lint Babel code.

npm install -g jscs babel-jscs # In your project root, create .jscsrc: echo '{"esnext": true}' > .jscsrc # Lint a file: jscs myfile.js # Or without config file: jscs myfile.js --esnext
Debug
Known issues
gotchaRequires a specific JSCS version (pre-2.0) to work; not compatible with JSCS 2.x+ without monkeypatching.
fix
Use babel-eslint instead, or JSCS 1.x with the esnext option.
affects: >=3.0.0-beta1
deprecatedThis package is no longer maintained; JSCS has been retired in favor of ESLint.
fix
Migrate to ESLint with babel-eslint or @babel/eslint-parser.
affects: >=1.0.0
Errors
Common errors & fixes
SyntaxError: Unexpected token import
JSCS parser does not understand ES modules without babel-jscs.
fix
Use babel-jscs with { "esnext": true } or use ESLint with babel-eslint.
Upgrade
Version history
3.0.0-beta1latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
14 hits · last 30 days
node
12
Amazon
1
OpenAI (training)
1
Resources
babel-jscs — npm install babel-jscs · libregistry