Skip to content

Commit

Permalink
chore: update linter setup
Browse files Browse the repository at this point in the history
  • Loading branch information
songkg7 committed Dec 12, 2024
1 parent 83f3e66 commit 211a255
Show file tree
Hide file tree
Showing 3 changed files with 94 additions and 70 deletions.
4 changes: 3 additions & 1 deletion eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import path from 'node:path';
import { fileURLToPath } from 'node:url';
import js from '@eslint/js';
import { FlatCompat } from '@eslint/eslintrc';
import eslintPluginYml from 'eslint-plugin-yml';

const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
Expand All @@ -16,9 +17,10 @@ const compat = new FlatCompat({

export default [
{
files: ['**/*.ts', '**/*.tsx', '**/*.yml', '**/*.json'],
files: ['**/*.ts', '**/*.tsx', '**/*.json'],
ignores: ['**/node_modules/', '**/main.js'],
},
...eslintPluginYml.configs['flat/recommended'],
...compat.extends(
'eslint:recommended',
'plugin:@typescript-eslint/eslint-recommended',
Expand Down
Loading

0 comments on commit 211a255

Please sign in to comment.