Skip to content

Commit

Permalink
Update eslint config
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanZim committed Jan 7, 2020
1 parent ea1cec4 commit cf6ea09
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
env:
node: true
extends: problems
extends: problems/node10
rules:
no-console: off
10 changes: 2 additions & 8 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ function css(css, file) {
return rc(ctx, argv.config)
.then(config => {
config = config || cliConfig
const options = Object.assign({}, config.options)
const options = { ...config.options }

if (file === 'stdin' && output) file = output

Expand Down Expand Up @@ -235,13 +235,7 @@ function css(css, file) {

const messages = result.warnings()
if (messages.length) {
console.warn(
reporter(
Object.assign({}, result, {
messages
})
)
)
console.warn(reporter({ ...result, messages }))
}

return result
Expand Down
1 change: 0 additions & 1 deletion test/.eslintrc.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
parserOptions:
ecmaVersion: 2017
sourceType: module

0 comments on commit cf6ea09

Please sign in to comment.