vant/.eslintrc
2021-04-14 09:35:08 +08:00

23 lines
523 B
Plaintext

{
"root": true,
"extends": ["@vant"],
"rules": {
"prefer-object-spread": "off"
},
"overrides": [
{
"files": ["src/**/*"],
"excludedFiles": ["**/test/*", "**/demo/*"],
"rules": {
// since we target ES2015 for baseline support, we need to forbid object
// rest spread usage (both assign and destructure)
"no-restricted-syntax": [
"error",
"ObjectExpression > SpreadElement",
"ObjectPattern > RestElement"
]
}
}
]
}