eslint-plugin-ns8
v1.1.0
Published
Custom eslint rules for ns8
Downloads
3
Maintainers
Readme
eslint-plugin-ns8
Custom eslint rules for ns8
Installation
You'll first need to install ESLint:
$ yarn add -D eslint
Next, install eslint-plugin-ns8
:
$ yarn add -D eslint-plugin-ns8
Note: If you installed ESLint globally (using the -g
flag) then you must also install eslint-plugin-ns8
globally.
Usage
Add ns8
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": [
"ns8"
]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"ns8/rule-name": 2
}
}
Supported Rules
* dw-imports
This is for use in Salesforce projects. Flags this import Site from '@ns8/ns8-salesforce-dw-api-types/dw/system/Site'
but allows this import Site from 'dw/system/Site'
;