Skip to content

Commit

Permalink
Updated ESLint to 9 (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
kpal81xd authored Jan 15, 2025
1 parent 05b48e9 commit ef1165f
Show file tree
Hide file tree
Showing 14 changed files with 1,340 additions and 542 deletions.
28 changes: 28 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import babelParser from '@babel/eslint-parser';
import playcanvasConfig from '@playcanvas/eslint-config';
import globals from 'globals';

export default [
...playcanvasConfig,
{
files: ['**/*.js', '**/*.mjs'],
languageOptions: {
ecmaVersion: 2022,
sourceType: 'module',
parser: babelParser,
parserOptions: {
requireConfigFile: false
},
globals: {
...globals.browser,
...globals.mocha,
...globals.node
}
}
}, {
files: ['**/*.test.js', '**/*.test.mjs'],
rules: {
'no-unused-expressions': 'off'
}
}
];
Loading

0 comments on commit ef1165f

Please sign in to comment.