Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 16 additions & 23 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,36 +1,29 @@
import eslint from '@eslint/js'
import globals from 'globals'
import { defineConfig, globalIgnores } from 'eslint/config'
import tseslint from 'typescript-eslint'
import eslintConfigPrettier from 'eslint-config-prettier'

export default tseslint.config(
{
ignores: [
'**/.*',
'**/node_modules/*',
'dist/*',
export default defineConfig(
globalIgnores([
'**/.*',
'**/node_modules/*',
'dist/*',

// Ignore files for PNPM, NPM and YARN
'**/pnpm-lock.yaml',
'**/package-lock.json',
'**/yarn.lock',
// Ignore files for PNPM, NPM and YARN
'**/pnpm-lock.yaml',
'**/package-lock.json',
'**/yarn.lock',

// Ignore config type check
'**/*.config.js',
'**/*.config.ts',
],
},
// Ignore config type check
'**/*.config.js',
'**/*.config.ts',
]),
eslint.configs.recommended,
...tseslint.configs.recommendedTypeChecked,
...tseslint.configs.strictTypeChecked,
...tseslint.configs.stylisticTypeChecked,
tseslint.configs.strictTypeChecked,
tseslint.configs.stylisticTypeChecked,
eslintConfigPrettier,
{
plugins: {
'@typescript-eslint': tseslint.plugin,
},
languageOptions: {
parser: tseslint.parser,
parserOptions: {
project: true,
tsconfigRootDir: import.meta.dirname,
Expand Down
Loading
Loading