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 3844c66 commit d53184a
Showing 1 changed file with 4 additions and 15 deletions.
19 changes: 4 additions & 15 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,21 +1,10 @@
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 [
...compat.extends('prettier'),
{
languageOptions: {
globals: {}
ecmaVersion: 6
}
}
},
eslintConfigPrettier
];

0 comments on commit d53184a

Please sign in to comment.