id | title |
---|---|
valid-values-name-scope |
valid-values-name-scope |
Enabling this rule will result in an error being generated if the package name
does not have a scope set to one of the values in the array of valid values.
{
"rules": {
"valid-values-name-scope": ["error", [
"@lerna",
"@babel"
]]
}
}
{
"name": "@awesome/my-program"
}
{
"name": "my-program"
}
{
"name": "@lerna/my-program"
}
{
"name": "@babel/my-program"
}
{
"rules": {
"valid-values-name-scope": "off"
}
}
- Introduced in version 3.4.0