Custom Marlint Configuration
Override default configuration
To override the default configuration, add eslintConfig
key to package.json
like the following:
{
"eslintConfig": {
"plugins": [
"security"
],
"rules": {
"jsx-quotes": [
"error",
"prefer-double"
],
"react/jsx-no-bind": "off",
"react/jsx-handler-names": "off"
}
}
}
Ignore files and directories
Create .eslintignore
file or add eslintIgnore
key in package.json
like the following:
{
"eslintIgnore": ["customIgnoreFile"]
}
Please refer to this documentation for ignoring files and directories.
Last updated