@invenco/ics-toolbox
v1.0.11
Published
New project/repo for centralized configuration for rules for ICS NodeJS projects. Includes: Babel, ESLint, Beautify and Webpack
Downloads
7
Readme
ics-toolbox
Monorepo for the centralized configuration of rules for the ICS projects. Including:
- ESLint
- Babel
- Webpack
- Configs
For tool-specific instructions, please refer the appropriate README.md inside the packages. i.e. ics-toolbox/packages/ics-eslint/README.md
ics-eslint
ESLint Rules for the ICS team at Invenco
Installation
You'll first need to install ESLint:
$ npm install eslint --save-dev
Next, install @invenco/ics-toolbox
:
$ npm install @invenco/ics-toolbox --save-dev
Usage
Add .eslintrc.json
to the extends section of your .eslintrc
configuration file.
{
"extends": [
"./node_modules/@invenco/ics-toolbox/packages/ics-eslint/lib/.eslintrc.json"
]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"invenco/prefix-testcase-with-dash": "error"
}
}
ics-babel
Babel Rules for the ICS team at Invenco
Installation
You'll first need to install Babel:
npm install --save-dev @babel/core @babel/cli
npm install --save @babel/polyfill
Next, install @invenco/ics-toolbox
:
$ npm install @invenco/ics-toolbox --save-dev
Usage
Add the following extends section of your .babelrc
configuration file.
{
"extends": [
"./node_modules/@invenco/ics-toolbox/packages/ics-babel/lib/.babelrc"
]
}