Skip to content

Commit

Permalink
upgrade eslint v9
Browse files Browse the repository at this point in the history
  • Loading branch information
thescientist13 committed Jan 21, 2025
1 parent e7ba113 commit c88069f
Show file tree
Hide file tree
Showing 9 changed files with 571 additions and 941 deletions.
237 changes: 0 additions & 237 deletions .eslintrc.cjs

This file was deleted.

43 changes: 43 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
import babelParser from '@babel/eslint-parser';
import js from '@eslint/js';
import globals from 'globals';
import noOnlyTests from 'eslint-plugin-no-only-tests';

export default [
{
// https://github.com/eslint/eslint/discussions/18304#discussioncomment-9069706
ignores: [
'node_modules/*',
'dist/*',
'coverage/*',
],
},
{
languageOptions: {
parser: babelParser,
parserOptions: {
ecmaVersion: 2022,
sourceType: 'module',
requireConfigFile: false,
babelOptions: {
plugins: ['@babel/plugin-syntax-import-assertions'],
},
},
globals: {
...globals.browser,
...globals.mocha,
...globals.chai,
...globals.node,
},
},
rules: {
...js.configs.recommended.rules,
// turn this off for Prettier
'no-irregular-whitespace': 'off',
'no-only-tests/no-only-tests': 'error',
},
plugins: {
'no-only-tests': noOnlyTests,
},
},
];
Loading

0 comments on commit c88069f

Please sign in to comment.