Skip to content

Commit

Permalink
Default eslint config (#72)
Browse files Browse the repository at this point in the history
* First pass on default linting config

* Change 'no-empty' to 'warn' in eslint config
  • Loading branch information
stalgiag authored Sep 24, 2024
1 parent 58da311 commit 83db9e9
Show file tree
Hide file tree
Showing 5 changed files with 1,133 additions and 104 deletions.
20 changes: 18 additions & 2 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,22 @@
import globals from 'globals';
import js from '@eslint/js';
import eslintConfigEslint from 'eslint-config-eslint';

export default [
{ files: ['**/*.{js,mjs,cjs}'] },
{ languageOptions: { globals: { ...globals.browser, ...globals.node } } },
js.configs.recommended,
{
files: ['**/*.{js,mjs,cjs}'],
languageOptions: {
globals: {
...globals.browser,
...globals.node,
},
},
rules: {
...eslintConfigEslint.rules,
// TODO: Remove these exceptions once TypeScript conversion happens
'no-empty': 'warn',
'no-unused-vars': 'warn',
},
},
];
Loading

0 comments on commit 83db9e9

Please sign in to comment.