eslint-config-energysage
v2.2.3
Published
EnergySage Front End Rule Set
Readme
eslint-config-energysage
An ESLint/Prettier/Stylelint Shareable Config For EnergySage Projects
This package provides EnergySage's base ESLint, Prettier & Stylelint rule bases.
Usage
- Install the correct versions of each peer package, which are listed by the command:
npm info "eslint-config-energysage@latest" peerDependenciesAnd they can be installed using this command:
npx install-peerdeps --dev eslint-config-energysage- Install the latest version of our package
npm install --dev eslint-config-energysage@latest- Update/Create your
.eslintrc.jsfile, ensure there are no duplicate plugin/config entries
module.exports = {
extends: ['eslint-config-energysage'],
rules: {
// Disable/Enable any custom rules for your project
},
};- Update your
package.jsonfile, ensure there is no.prettierrcfile
"prettier": "eslint-config-energysage/prettier",
"scripts": {}- Update/Create your
stylelint.config.jsfile, ensure there are no duplicate plugin/config entries
module.exports = {
extends: ['eslint-config-energysage/stylelint'],
rules: {
// Disable/Enable any custom rules for your project
},
};