Skip to content

Commit

Permalink
Update eslint (#642)
Browse files Browse the repository at this point in the history
  • Loading branch information
lydell authored Feb 14, 2025
1 parent 6c32621 commit e4432bb
Show file tree
Hide file tree
Showing 5 changed files with 283 additions and 363 deletions.
4 changes: 0 additions & 4 deletions .eslintignore

This file was deleted.

35 changes: 0 additions & 35 deletions .eslintrc.json

This file was deleted.

47 changes: 47 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
import js from '@eslint/js';
import mocha from 'eslint-plugin-mocha';
import globals from 'globals';

export default [
{
ignores: [
//
'**/elm-stuff',
'**/fixtures',
'**/templates',
'**/flow-typed',
],
},
{
rules: {
...js.configs.recommended.rules,
'no-inner-declarations': 'off',
'no-prototype-builtins': 'off',
'no-unused-vars': ['error', { caughtErrorsIgnorePattern: '^_' }],
},
languageOptions: {
globals: {
...globals.node,
},
},
},
{
files: ['tests/*'],
plugins: {
mocha,
},
languageOptions: {
globals: {
...globals.mocha,
},
},
rules: {
'mocha/handle-done-callback': 'error',
'mocha/no-exclusive-tests': 'error',
'mocha/no-exports': 'error',
'mocha/no-identical-title': 'error',
'mocha/no-nested-tests': 'error',
'mocha/no-skipped-tests': 'error',
},
},
];
Loading

0 comments on commit e4432bb

Please sign in to comment.