chore: update ESLint (#9124)

* chore: update ESLint

* chore: update eslint ignore
pull/9155/merge
cinwell.li 2018-01-05 16:53:02 +08:00 committed by 杨奕
parent 5e06a1a463
commit be3dcbfc4c
32 changed files with 606 additions and 278 deletions

View File

@ -4,3 +4,4 @@ src/utils/date.js
node_modules
lib
coverage
*.md

View File

@ -6,8 +6,11 @@
"expect": true,
"sinon": true
},
"plugins": ['vue','json'],
"extends": 'elemefe',
"plugins": ["html", "json"],
"extends": "elemefe",
"rules": {
"no-restricted-globals": ["error", "event", "fdescribe"]
},
"parserOptions": {
"ecmaFeatures": {
"experimentalObjectRestSpread": true,

View File

@ -24,7 +24,7 @@
"dist": "npm run clean && npm run build:file && npm run lint && cooking build -c build/cooking.conf.js,build/cooking.common.js,build/cooking.component.js -p && npm run build:utils && npm run build:umd && npm run build:theme",
"dist:all": "node build/bin/build-all.js && npm run build:theme",
"i18n": "node build/bin/i18n.js",
"lint": "eslint src/**/* test/**/* packages/**/*.{js,vue} build/**/* --quiet",
"lint": "eslint src/**/* test/**/* packages/**/* build/**/* --quiet",
"pub": "npm run bootstrap && sh build/git-release.sh && sh build/release.sh && node build/bin/gen-indices.js && sh build/deploy-faas.sh",
"pub:all": "npm run dist:all && lerna publish --skip-git && git commit -am 'publish independent packages' && git push eleme dev",
"test": "npm run lint && npm run build:theme && cross-env CI_ENV=/dev/ karma start test/unit/karma.conf.js --single-run",
@ -81,7 +81,9 @@
"cross-env": "^3.1.3",
"css-loader": "^0.28.7",
"es6-promise": "^4.0.5",
"eslint": "^3.10.2",
"eslint": "4.14.0",
"eslint-loader": "^1.9.0",
"eslint-plugin-html": "^4.0.1",
"eslint-plugin-json": "^1.2.0",
"extract-text-webpack-plugin": "^3.0.1",
"file-loader": "^1.1.5",

592
yarn.lock

File diff suppressed because it is too large Load Diff