@silverstripe/eslint-config
v2.0.0
Published
SilverStripe config files for eslint
Downloads
2,602
Readme
eslint-config
This NPM package provides a shared common ESLint configuration used across all Silverstripe modules.
Installation
This package does not install eslint or stylelint. You must install them in your project. Add all three packages to the devDependencies of your project:
"@silverstripe/eslint-config": "^2",
"eslint": "^8.26.0",
"stylelint": "~16.12.0"Version 1 installed eslint and stylelint for you. Version 2 does not. Yarn 4 does not give you the command of a package that you do not install directly.
Usage
my-project/.eslintrc.js
module.exports = require('@silverstripe/eslint-config/.eslintrc');my-project/.stylelintrc.js
module.exports = require('@silverstripe/eslint-config/.stylelintrc');