@consid/eslint-config-sitevision
v1.0.6
Published
Eslint config for webapps/restapps, created to be used with boilerplate
Downloads
19
Readme
Eslint Config
Getting started
Install the project
npm i @consid/eslint-config-sitevision
Add the linting configuration:
In WebApps and RestApps you need to add the linting that should be used. You will need to extend the configuration @consid/eslint-config-sitevision in your package.json file.
"eslintConfig": {
"extends": [
"@sitevision/eslint-config-recommended",
"@sitevision/eslint-config-webapp-react",
"@consid/eslint-config-sitevision"
]
},
You will now use Consids default EsLint configuration.
Linting rules
There is several rules in this npm package. The rules that is used is listed under Warnings / Error.
Warnings
Error
Ignore files from being linted
You can ignore files from being linted in package.json.
"eslintConfig": {
"ignorePatterns": ["src/", "index.js"]
},