Configuration for CoffeeLint
- Provide Errors and Warnings
- 4 spaces for indentation (warning)
- 90 symbols per line (warning)
- Unix linebreaks (warning)
Install @coffeelint/cli
and @dopustim/coffeelint-config
packages via NPM:
npm install -D @coffeelint/cli @dopustim/coffeelint-config
Extend this config in your .coffeelintrc.json
:
{
"extends": "@dopustim/coffeelint-config"
}
Or use your package.json
:
"coffeelintConfig": {
"extends": "@dopustim/coffeelint-config"
}
You can also reassign any rule for your needs:
{
"extends": "@dopustim/coffeelint-config",
"max_line_length": { "value": 100, "limitComments": true, "level": "warn" }
}
Visit the CoffeeLint website to find out all rules and descriptions.