Skip to content

Commit cf6ea09

Browse files
committed
Update eslint config
1 parent ea1cec4 commit cf6ea09

File tree

3 files changed

+3
-10
lines changed

3 files changed

+3
-10
lines changed

.eslintrc.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
env:
22
node: true
3-
extends: problems
3+
extends: problems/node10
44
rules:
55
no-console: off

index.js

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ function css(css, file) {
187187
return rc(ctx, argv.config)
188188
.then(config => {
189189
config = config || cliConfig
190-
const options = Object.assign({}, config.options)
190+
const options = { ...config.options }
191191

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

@@ -235,13 +235,7 @@ function css(css, file) {
235235

236236
const messages = result.warnings()
237237
if (messages.length) {
238-
console.warn(
239-
reporter(
240-
Object.assign({}, result, {
241-
messages
242-
})
243-
)
244-
)
238+
console.warn(reporter({ ...result, messages }))
245239
}
246240

247241
return result

test/.eslintrc.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
parserOptions:
2-
ecmaVersion: 2017
32
sourceType: module

0 commit comments

Comments
 (0)