Skip to content

Commit 0ddb47d

Browse files
committedOct 13, 2019
feat: add ECMA 2019 support (es10)
1 parent 9454966 commit 0ddb47d

File tree

5 files changed

+30
-0
lines changed

5 files changed

+30
-0
lines changed
 

‎README.md

+1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ First you need to choose the **base** configuration to use:
3535
- `es7` - The configuration to be used in ECMAScript 7 based projects (aka 2016)
3636
- `es8` - The configuration to be used in ECMAScript 8 based projects (aka 2017)
3737
- `es9` - The configuration to be used in ECMAScript 9 based projects (aka 2018)
38+
- `es10` - The configuration to be used in ECMAScript 9 based projects (aka 2019)
3839

3940
Then enhance it with one or more **addons**:
4041

‎es10.js

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
'use strict';
2+
3+
module.exports = {
4+
'extends': [
5+
'./es9',
6+
].map(require.resolve),
7+
'parserOptions': {
8+
'ecmaVersion': 2019,
9+
'sourceType': 'script',
10+
},
11+
};

‎test/__snapshots__/index.spec.js.snap

+2
Original file line numberDiff line numberDiff line change
@@ -1874,6 +1874,8 @@ Array [
18741874

18751875
exports[`should pass on fixtures/samples/es9-object-spread/contrived.good.js 1`] = `Array []`;
18761876

1877+
exports[`should pass on fixtures/samples/es10/contrived.good.js 1`] = `Array []`;
1878+
18771879
exports[`should pass on fixtures/samples/jest/__tests__/jest.js 1`] = `
18781880
Array [
18791881
Object {
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"root": true,
3+
"extends": [
4+
"../../../../es10.js",
5+
"../../../../addons/browser.js"
6+
]
7+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// Made up sample.. not genuine
2+
3+
'use strict';
4+
5+
try {
6+
console.log('foo');
7+
} catch {
8+
console.log('bar');
9+
}

0 commit comments

Comments
 (0)
Please sign in to comment.