Skip to content

Commit

Permalink
Updates packages, vite.config and eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
gustavoguichard committed Aug 2, 2024
1 parent b198db9 commit 61f4bf5
Show file tree
Hide file tree
Showing 7 changed files with 4,793 additions and 3,134 deletions.
23 changes: 0 additions & 23 deletions .eslintrc.json

This file was deleted.

33 changes: 33 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
import typescriptEslintPlugin from '@typescript-eslint/eslint-plugin'
import typescriptEslintParser from '@typescript-eslint/parser'

export default [
{
files: ['**/*.ts', '**/*.tsx'],
ignores: ['vitest.config.ts', 'vite.config.ts'],
languageOptions: {
parser: typescriptEslintParser,
parserOptions: {
project: './tsconfig.json',
},
},
plugins: {
'@typescript-eslint': typescriptEslintPlugin,
},
rules: {
'@typescript-eslint/ban-types': 'off',
'@typescript-eslint/no-namespace': 'off',
'@typescript-eslint/no-unused-vars': 'off',
'@typescript-eslint/consistent-type-imports': [
'warn',
{
prefer: 'type-imports',
disallowTypeAnnotations: true,
},
],
},
},
{
ignores: ['node_modules/**', 'dist/**'],
},
]
Loading

0 comments on commit 61f4bf5

Please sign in to comment.