Skip to content

Commit

Permalink
refactor(eslint): add ecmaVersion and sourceType (#156)
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored Apr 5, 2024
1 parent 8ff382f commit 108971c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { defineFlatConfig } from 'eslint-define-config';
import { extend } from '@archoleat/eslint-flat-compatibility';

import eslintConfigPrettier from 'eslint-config-prettier';
import globals from 'globals';
import typescriptParser from '@typescript-eslint/parser';
import unicorn from 'eslint-plugin-unicorn';
Expand All @@ -14,13 +15,15 @@ export default defineFlatConfig([
unicorn.configs['flat/recommended'],
{
languageOptions: {
ecmaVersion: 'latest',
globals: {
...globals.node,
},
parser: typescriptParser,
parserOptions: {
project: 'tsconfig.json',
},
sourceType: 'module',
},
settings: {
'import/resolver': {
Expand All @@ -41,4 +44,5 @@ export default defineFlatConfig([
'unicorn/string-content': 'error',
},
},
eslintConfigPrettier,
]);

0 comments on commit 108971c

Please sign in to comment.