Skip to content

Commit

Permalink
Modern linting from eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
microbit-matt-hillsdon committed Jan 27, 2025
1 parent 232fe3d commit ef8b453
Show file tree
Hide file tree
Showing 6 changed files with 1,476 additions and 75 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ lib-fesm
fesm
umd
bundles
dist
dist/

## this is generated by `npm pack`
*.tgz
Expand Down
18 changes: 18 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import globals from 'globals';
import pluginJs from '@eslint/js';
import tseslint from 'typescript-eslint';

/** @type {import('eslint').Linter.Config[]} */
export default [
{ ignores: ['docs', 'coverage', 'dist', 'src/types'] },
{ files: ['**/*.{js,mjs,cjs,ts}'] },
{ languageOptions: { globals: { ...globals.browser, ...globals.node } } },
pluginJs.configs.recommended,
...tseslint.configs.recommended,
{
rules: {
'@typescript-eslint/ban-ts-comment': 'off',
'no-prototype-builtins': 'off',
},
},
];
Loading

0 comments on commit ef8b453

Please sign in to comment.