Eslint plugin for Mosaic
You'll first need to install ESLint:
npm i eslint --save-dev
Next, install @tilework/eslint-plugin-mosaic
:
npm install @tilework/eslint-plugin-mosaic --save-dev
Note: If you installed ESLint globally (using the -g
flag) then you must also install @tilework/eslint-plugin-mosaic
globally.
Add @tilework/eslint-plugin-mosaic
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": [
"@tilework/mosaic"
]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"@tilework/mosaic/rule-name": 2
}
}