workflow: setup eslint for prohibited syntax and globals

fix #1285
This commit is contained in:
Evan You
2020-06-10 16:54:23 -04:00
parent e4dc03a8b1
commit 80c868aefe
20 changed files with 697 additions and 149 deletions

View File

@@ -14,7 +14,8 @@ import {
makeMap,
isReservedProp,
EMPTY_ARR,
def
def,
extend
} from '@vue/shared'
import { warn } from './warning'
import {
@@ -308,7 +309,7 @@ export function normalizePropsOptions(
if (__FEATURE_OPTIONS__ && !isFunction(comp)) {
const extendProps = (raw: ComponentOptions) => {
const [props, keys] = normalizePropsOptions(raw)
Object.assign(normalized, props)
extend(normalized, props)
if (keys) needCastKeys.push(...keys)
}
if (comp.extends) {