Skip to content

Commit

Permalink
Added eslint-config
Browse files Browse the repository at this point in the history
  • Loading branch information
David Moll committed Apr 14, 2024
1 parent 3dfc967 commit f7ae800
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import globals from 'globals';
import pluginPrettier from 'eslint-plugin-prettier';

export default [
{ files: ['**/*.js'], languageOptions: { sourceType: 'commonjs' } },
{ languageOptions: { globals: globals.browser } },
{
plugins: {
prettier: pluginPrettier,
},
rules: {
'prettier/prettier': 'error',
},
},
];

0 comments on commit f7ae800

Please sign in to comment.