Skip to content

Commit

Permalink
chore(eslint): update eslint config for test mjs files
Browse files Browse the repository at this point in the history
  • Loading branch information
boneskull committed Apr 9, 2024
1 parent 45e6db8 commit c924dc3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ module.exports = {
},
overrides: [
{
files: ['**/*/*/test/**/*.js'],
files: ['**/*/*/test/**/*.{js,mjs,ts}'],
extends: ['plugin:ava/recommended'],
env: {
browser: true,
Expand Down
10 changes: 8 additions & 2 deletions packages/core/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,13 @@ module.exports = {
extends: '../../.config/eslintrc.typed-workspace',
overrides: [
{
files: ['./{src,test}/**/*.{js,ts}'],
files: ['./test/runScenarios.spec.mjs'],
parserOptions: {
ecmaVersion: 2022,
},
},
{
files: ['./{src,test}/**/*.{mjs,js,ts}'],
globals: {
Compartment: 'readonly',
templateRequire: 'readonly',
Expand All @@ -30,7 +36,7 @@ module.exports = {
},
},
{
files: ['test/**/*.js'],
files: ['test/**/*.{js,mjs}'],
rules: {
'n/no-missing-require': 'off',
},
Expand Down

0 comments on commit c924dc3

Please sign in to comment.