diff --git a/.eslintrc.json b/.eslintrc.json index c821993c40..26b87eab68 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -39,6 +39,9 @@ }], "@typescript-eslint/no-unused-vars": "off" }, + "globals": { + "globalThis": false + }, "env": { "es6": true, "browser": true, diff --git a/.gitignore b/.gitignore index 923dd5901e..590bd1d88e 100644 --- a/.gitignore +++ b/.gitignore @@ -3,7 +3,7 @@ .nyc_output node_modules *.map -/src/compiler/compile/internal-exports.ts +/src/compiler/compile/internal_exports.ts /compiler.d.ts /compiler.*js /index.*js diff --git a/package.json b/package.json index 96a1dd8f99..c2dd066def 100644 --- a/package.json +++ b/package.json @@ -30,7 +30,7 @@ "coverage": "c8 report --reporter=text-lcov > coverage.lcov && c8 report --reporter=html", "codecov": "codecov", "precodecov": "npm run coverage", - "build": "rollup -c && npm run tsd", + "build": "rollup -c && npm run lint && npm run tsd", "prepare": "npm run build", "dev": "rollup -cw", "pretest": "npm run build", diff --git a/rollup.config.js b/rollup.config.js index fb329534a2..8c3068dcbd 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -66,7 +66,7 @@ export default [ if (dir === 'internal') { const mod = bundle['index.mjs']; if (mod) { - fs.writeFileSync('src/compiler/compile/internal-exports.ts', `// This file is automatically generated\nexport default new Set(${JSON.stringify(mod.exports)});`); + fs.writeFileSync('src/compiler/compile/internal_exports.ts', `// This file is automatically generated\nexport default new Set(${JSON.stringify(mod.exports)});`); } } diff --git a/site/content/docs/02-template-syntax.md b/site/content/docs/02-template-syntax.md index 682012d88b..ceaa19a398 100644 --- a/site/content/docs/02-template-syntax.md +++ b/site/content/docs/02-template-syntax.md @@ -510,6 +510,14 @@ When the value of an `