File tree 5 files changed +30
-0
lines changed
5 files changed +30
-0
lines changed Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ First you need to choose the **base** configuration to use:
35
35
- ` es7 ` - The configuration to be used in ECMAScript 7 based projects (aka 2016)
36
36
- ` es8 ` - The configuration to be used in ECMAScript 8 based projects (aka 2017)
37
37
- ` 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)
38
39
39
40
Then enhance it with one or more ** addons** :
40
41
Original file line number Diff line number Diff line change
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
+ } ;
Original file line number Diff line number Diff line change @@ -1874,6 +1874,8 @@ Array [
1874
1874
1875
1875
exports [` should pass on fixtures/samples/es9-object-spread/contrived.good.js 1` ] = ` Array []` ;
1876
1876
1877
+ exports [` should pass on fixtures/samples/es10/contrived.good.js 1` ] = ` Array []` ;
1878
+
1877
1879
exports [` should pass on fixtures/samples/jest/__tests__/jest.js 1` ] = `
1878
1880
Array [
1879
1881
Object {
Original file line number Diff line number Diff line change
1
+ {
2
+ "root" : true ,
3
+ "extends" : [
4
+ " ../../../../es10.js" ,
5
+ " ../../../../addons/browser.js"
6
+ ]
7
+ }
Original file line number Diff line number Diff line change
1
+ // Made up sample.. not genuine
2
+
3
+ 'use strict' ;
4
+
5
+ try {
6
+ console . log ( 'foo' ) ;
7
+ } catch {
8
+ console . log ( 'bar' ) ;
9
+ }
You can’t perform that action at this time.
0 commit comments