Ignoring code
Ignoring file
Use excludeFiles
property on the configuration.
Disable rules
Disable by selector
Use nodeRules
or childNodeRules
property on the configuration.
See Applying to some.
{
"rules": {
"[[target-rule-id]]": true
},
"nodeRules": [
{
"selector": ".ignore",
"rules": {
"[[target-rule-id]]": false
}
}
]
}
Replace the [[target-rule-id]]
portion with the rule ID you would like to disable as appropriate.
Overriding to disable rules
Use overrides
property with overrideMode
on the configuration.
{
"rules": {
"[[target-rule-id]]": true
},
"overrideMode": "merge",
"overrides": {
"./path/to/**/*": {
"rules": {
"[[target-rule-id]]": false
}
}
}
}
Replace the [[target-rule-id]]
portion with the rule ID you would like to disable as appropriate.