vant/packages/vant/.eslintrc
MrXwq d6d90925d0
fix(eslint): using ignorePatterns to replace .eslintignore (#12237)
Co-authored-by: xuwenqiang <xuwenqiang@kanzhun.com>
2023-09-04 07:57:38 +08:00

31 lines
625 B
Plaintext

{
"root": true,
"extends": ["@vant"],
"rules": {
"prefer-object-spread": "off"
},
"globals": {
"vi": true
},
"ignorePatterns": [
"es",
"lib",
"node_modules"
],
"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"
]
}
}
]
}