Skip to content

Commit cfeb812

Browse files
committed
Update ecmaVersion
1 parent dccf76a commit cfeb812

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

packages/eslint-config-transit/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
module.exports = {
44
extends: 'airbnb-base',
55
parserOptions: {
6-
ecmaVersion: 2017,
6+
ecmaVersion: 2018,
77
ecmaFeatures: {},
88
sourceType: 'script',
99
},

packages/eslint-config-transit/package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/eslint-config-transit/test/eslint-config-transit-test.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
'use strict';
2-
31
// Limit your lines to 120 characters
42
testMyStringLikeYouNeverTestedItBefore();
53

@@ -30,11 +28,12 @@ function functionDefinedBeforeUse() {
3028
};
3129

3230
// If none of them require quotes, then quotes are disallowed.
33-
const anotherObject = Object.assign({}, obj, {
31+
const anotherObject = {
32+
...obj,
3433
'foo': 'bar',
3534
'foo2': 'bar2',
3635
'foo 3': 'bar3',
37-
});
36+
};
3837

3938
return anotherObject;
4039
}

0 commit comments

Comments
 (0)