Skip to content

Commit

Permalink
chore: eslint 9 changes
Browse files Browse the repository at this point in the history
  • Loading branch information
steveoh committed Jul 8, 2024
1 parent eb39376 commit 12645f2
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions eslint.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
const globals = require('globals');
const js = require('@eslint/js');

const { FlatCompat } = require('@eslint/eslintrc');

const compat = new FlatCompat({
baseDirectory: __dirname,
recommendedConfig: js.configs.recommended,
allConfig: js.configs.all,
});

module.exports = [
...compat.extends('eslint:recommended', 'plugin:prettier/recommended', 'prettier'),
{
languageOptions: {
globals: {
...globals.browser,
...globals.jest,
...globals.node,
},

ecmaVersion: 2021,
sourceType: 'module',
},
},
];

0 comments on commit 12645f2

Please sign in to comment.