Skip to content

Commit

Permalink
fixed eslint file
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-jonathan committed Jan 18, 2025
1 parent d4943d4 commit aa01852
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import eslintPlugin from '@typescript-eslint/eslint-plugin'
import eslintParser from '@typescript-eslint/parser'
import importPlugin from 'eslint-plugin-import'

export default [
{
Expand All @@ -12,7 +13,7 @@ export default [
},
plugins: {
'@typescript-eslint': eslintPlugin,
import: require('eslint-plugin-import'),
import: importPlugin,
},
settings: {
'import/resolver': {
Expand All @@ -35,8 +36,8 @@ export default [
],

// General Best Practices
'eqeqeq': 'error',
'camelcase': 'error',
eqeqeq: 'error',
camelcase: 'error',
'no-console': 'error',
'no-lonely-if': 'error',

Expand All @@ -51,16 +52,16 @@ export default [
functions: 'never',
},
],
'indent': ['error', 4, { SwitchCase: 1 }],
indent: ['error', 4, { SwitchCase: 1 }],
'no-tabs': 'error',
'object-curly-spacing': ['error', 'always'],
'array-bracket-spacing': ['error', 'always'],
'curly': ['error', 'all'],
curly: ['error', 'all'],
'template-curly-spacing': 'error',
'no-trailing-spaces': 'error',
'space-before-blocks': 'error',
'semi': ['error', 'never'],
'quotes': ['error', 'single', { avoidEscape: true }],
semi: ['error', 'never'],
quotes: ['error', 'single', { avoidEscape: true }],
'object-curly-newline': [
'error',
{
Expand Down

0 comments on commit aa01852

Please sign in to comment.