Skip to content

Commit

Permalink
Specify latest ecmaVersion for eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
linev committed Sep 26, 2024
1 parent c102bb6 commit e3a58e4
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,12 @@ import stylisticJs from '@stylistic/eslint-plugin-js';
export default [
{
languageOptions: {
ecmaVersion: 2022,
sourceType: "module",
ecmaVersion: 'latest',
sourceType: 'module'
},
plugins: {
'@stylistic/js': stylisticJs
},
ignores: ["modules/base/zstd.mjs", "modules/base/lzma.mjs", "modules/d3.mjs", "modules/base/jspdf.mjs", "modules/base/svg2pdf.mjs", "modules/three.mjs", "modules/three_addons.mjs", "modules/gui/lil-gui.mjs", "modules/r162/**"],
rules: {
camelcase: 'off',
'prefer-const': 'warn',
Expand Down Expand Up @@ -41,7 +40,7 @@ export default [
ImportDeclaration: 'never',
ExportDeclaration: 'never'
}],
'@stylistic/js/padded-blocks': ['warn', { blocks: 'never', classes: 'always', switches: "never" }],
'@stylistic/js/padded-blocks': ['warn', { blocks: 'never', classes: 'always', switches: 'never' }],
'@stylistic/js/space-infix-ops': 'off',
'@stylistic/js/space-before-function-paren': ['warn', 'never']
}
Expand Down

0 comments on commit e3a58e4

Please sign in to comment.