diff --git a/benchmark/benchmarks/krausest/.eslintrc.cjs b/benchmark/benchmarks/krausest/.eslintrc.cjs new file mode 100644 index 0000000000..d548432972 --- /dev/null +++ b/benchmark/benchmarks/krausest/.eslintrc.cjs @@ -0,0 +1,13 @@ +/** @type {import("eslint").Linter.Config} */ +module.exports = { + root: false, + overrides: [ + { + files: ['**/*.js'], + parserOptions: { + ecmaVersion: 'latest', + sourceType: 'module', + }, + }, + ], +}; diff --git a/packages/@glimmer-workspace/build/lib/config.js b/packages/@glimmer-workspace/build/lib/config.js index 60df2b46a3..eb3c1ff58d 100644 --- a/packages/@glimmer-workspace/build/lib/config.js +++ b/packages/@glimmer-workspace/build/lib/config.js @@ -90,11 +90,18 @@ export function typescript(pkg, config) { const ts = tsconfig(typeScriptConfig); + /** + * TODO: migrate off of rollupTS, it has too many bugs + */ return rollupTS({ transpiler: 'babel', transpileOnly: true, babelConfig: { presets }, - + /** + * This shouldn't be required, but it is. + * If we use @rollup/plugin-babel, we can remove this. + */ + browserslist: [`last 1 chrome versions`], tsconfig: ts, }); } diff --git a/packages/@glimmer/.eslintrc.cjs b/packages/@glimmer/.eslintrc.cjs index 9f1b57ac77..b76977c371 100644 --- a/packages/@glimmer/.eslintrc.cjs +++ b/packages/@glimmer/.eslintrc.cjs @@ -79,6 +79,10 @@ module.exports = { 'runtime/lib/modifiers/on.ts', 'syntax/lib/parser/tokenizer-event-handlers.ts', 'syntax/lib/get-template-locals.ts', + 'syntax/lib/generation/printer.ts', + 'syntax/lib/v2/normalize.ts', + 'syntax/test/traversal/manipulating-node-test.ts', + 'node/lib/node-dom-helper.ts', ], rules: { 'deprecation/deprecation': 'warn', diff --git a/packages/@glimmer/vm-babel-plugins/package.json b/packages/@glimmer/vm-babel-plugins/package.json index 4d063da66e..40f6af3705 100644 --- a/packages/@glimmer/vm-babel-plugins/package.json +++ b/packages/@glimmer/vm-babel-plugins/package.json @@ -26,11 +26,11 @@ "devDependencies": { "@glimmer-workspace/build-support": "workspace:^", "babel-plugin-tester": "^11.0.4", - "eslint": "^8.52.0", "mocha": "^10.2.0", "publint": "^0.2.5", "rollup": "^3.21.6", - "typescript": "*" + "typescript": "*", + "eslint": "^8.54.0" }, "main": "index.ts", "types": "index.ts", diff --git a/packages/@glimmer/vm-babel-plugins/test/.eslintignore b/packages/@glimmer/vm-babel-plugins/test/.eslintignore new file mode 100644 index 0000000000..67fc140b98 --- /dev/null +++ b/packages/@glimmer/vm-babel-plugins/test/.eslintignore @@ -0,0 +1 @@ +fixtures/ diff --git a/packages/@glimmer/vm-babel-plugins/test/.eslintrc.cjs b/packages/@glimmer/vm-babel-plugins/test/.eslintrc.cjs index 362a771b06..df74cb44c0 100644 --- a/packages/@glimmer/vm-babel-plugins/test/.eslintrc.cjs +++ b/packages/@glimmer/vm-babel-plugins/test/.eslintrc.cjs @@ -9,4 +9,8 @@ module.exports = { require: true, __dirname: true, }, + rules: { + '@typescript-eslint/no-require-imports': 'off', + '@typescript-eslint/no-var-requires': 'off', + }, }; diff --git a/packages/@glimmer/vm-babel-plugins/test/index.js b/packages/@glimmer/vm-babel-plugins/test/index.js index 4791b266d5..7381765b98 100644 --- a/packages/@glimmer/vm-babel-plugins/test/index.js +++ b/packages/@glimmer/vm-babel-plugins/test/index.js @@ -1,5 +1,3 @@ -/* eslint-disable @typescript-eslint/no-var-requires */ -/* eslint-disable @typescript-eslint/no-require-imports */ const path = require('node:path'); const pluginTester = require('babel-plugin-tester'); diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index c34cb066ae..4826204076 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1346,7 +1346,7 @@ importers: specifier: ^11.0.4 version: 11.0.4(@babel/core@7.23.2) eslint: - specifier: ^8.52.0 + specifier: ^8.54.0 version: 8.54.0 mocha: specifier: ^10.2.0