Merge pull request #16 from paper-spa/latest-ecma

Update Espree configuration to allow for latest supported ECMA version
This commit is contained in:
James M. Greene
2022-07-22 18:06:07 -05:00
committed by GitHub
5 changed files with 35 additions and 3 deletions
+1 -1
View File
@@ -14596,7 +14596,7 @@ class ConfigParser {
// Parse the AST out of the configuration file
const espreeOptions = {
ecmaVersion: 6,
ecmaVersion: 'latest',
sourceType: 'module',
range: true
}
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -166,7 +166,7 @@ class ConfigParser {
// Parse the AST out of the configuration file
const espreeOptions = {
ecmaVersion: 6,
ecmaVersion: 'latest',
sourceType: 'module',
range: true
}
+17
View File
@@ -0,0 +1,17 @@
const getAllDynamicRoute = async function() {
const routes = await (async () => {
return ['/posts/hello-world', '/posts/hello-again'];
})();
return routes;
};
export default {
target: 'static',
router: {base: '/docs/'},
mode: 'universal',
generate: {
async routes () {
return getAllDynamicRoute();
}
}
};
+15
View File
@@ -0,0 +1,15 @@
const getAllDynamicRoute = async function() {
const routes = await (async () => {
return ['/posts/hello-world', '/posts/hello-again'];
})();
return routes;
};
export default {
mode: 'universal',
generate: {
async routes () {
return getAllDynamicRoute();
}
}
};