Skip to main content

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": {
"any-rule": true
},
"nodeRules": [
{
"selector": ".ignore",
"rules": {
"any-rule": false
}
}
]
}

Overriding to disable rules

Use overrides property on the configuration.

{
"rules": {
"any-rule": true
},
"overrides": {
"./path/to/**/*": {
"rules": {
"any-rule": false
}
}
}
}