Skip to content

Commit

Permalink
chore: remove unnecessary rules for unit test eslint config
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Aug 18, 2018
1 parent b62c6ba commit 6bdf704
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
5 changes: 1 addition & 4 deletions packages/@vue/cli-plugin-unit-jest/generator/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,7 @@ const applyTS = module.exports.applyTS = (api, invoking) => {
const applyESLint = module.exports.applyESLint = api => {
api.render(files => {
files['tests/unit/.eslintrc.js'] = api.genJSConfig({
env: { jest: true },
rules: {
'import/no-extraneous-dependencies': 'off'
}
env: { jest: true }
})
})
}
5 changes: 1 addition & 4 deletions packages/@vue/cli-plugin-unit-mocha/generator/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,7 @@ module.exports = (api, _, __, invoking) => {
const applyESLint = module.exports.applyESLint = api => {
api.render(files => {
files['tests/unit/.eslintrc.js'] = api.genJSConfig({
env: { mocha: true },
rules: {
'import/no-extraneous-dependencies': 'off'
}
env: { mocha: true }
})
})
}
Expand Down

0 comments on commit 6bdf704

Please sign in to comment.