Skip to content

Commit ef8b453

Browse files
Modern linting from eslint
1 parent 232fe3d commit ef8b453

File tree

6 files changed

+1476
-75
lines changed

6 files changed

+1476
-75
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ lib-fesm
1313
fesm
1414
umd
1515
bundles
16-
dist
16+
dist/
1717

1818
## this is generated by `npm pack`
1919
*.tgz

eslint.config.mjs

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import globals from 'globals';
2+
import pluginJs from '@eslint/js';
3+
import tseslint from 'typescript-eslint';
4+
5+
/** @type {import('eslint').Linter.Config[]} */
6+
export default [
7+
{ ignores: ['docs', 'coverage', 'dist', 'src/types'] },
8+
{ files: ['**/*.{js,mjs,cjs,ts}'] },
9+
{ languageOptions: { globals: { ...globals.browser, ...globals.node } } },
10+
pluginJs.configs.recommended,
11+
...tseslint.configs.recommended,
12+
{
13+
rules: {
14+
'@typescript-eslint/ban-ts-comment': 'off',
15+
'no-prototype-builtins': 'off',
16+
},
17+
},
18+
];

0 commit comments

Comments
 (0)