Skip to content

Commit

Permalink
Follow eslint-config-prettier directions
Browse files Browse the repository at this point in the history
  • Loading branch information
TyHil committed Nov 21, 2024
1 parent a0bd6f1 commit 7ca2f56
Showing 1 changed file with 5 additions and 18 deletions.
23 changes: 5 additions & 18 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,15 +1,4 @@
import path from 'node:path';
import { fileURLToPath } from 'node:url';
import js from '@eslint/js';
import { FlatCompat } from '@eslint/eslintrc';

const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
const compat = new FlatCompat({
baseDirectory: __dirname,
recommendedConfig: js.configs.recommended,
allConfig: js.configs.all
});
import eslintConfigPrettier from 'eslint-config-prettier';

export default [
{
Expand All @@ -24,12 +13,10 @@ export default [
'src/password-generator',
'src/recipes',
'src/dvd'
]
},
...compat.extends('prettier'),
{
],
languageOptions: {
globals: {}
ecmaVersion: 6
}
}
},
eslintConfigPrettier
];

0 comments on commit 7ca2f56

Please sign in to comment.