Skip to content

Commit

Permalink
fix: eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
christian-bromann committed Nov 2, 2024
1 parent 8dfffb6 commit e848e09
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 12 deletions.
1 change: 0 additions & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ updates:
# Node.js updates require changes to .nvmrc
- dependency-name: "@types/node"


groups:
patch-deps-updates-main:
update-types:
Expand Down
17 changes: 7 additions & 10 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import globals from 'globals'
import tsParser from '@typescript-eslint/parser'

export default [{
files: ['**/*.ts'],
plugins: {
'@typescript-eslint': typescriptEslint,
unicorn,
Expand All @@ -13,6 +14,7 @@ export default [{
'dist/**',
'build/**',
'example/.nuxt/**',
'example/.output/**',
],

languageOptions: {
Expand Down Expand Up @@ -64,6 +66,10 @@ export default [{
skipBlankLines: false,
ignoreComments: false,
}],
'no-unused-vars': 'off',
'no-undef': 'off',
'no-redeclare': 'off',
'dot-notation': 'off',

'no-var': 'error',
'unicode-bom': ['error', 'never'],
Expand All @@ -77,14 +83,5 @@ export default [{
'unicorn/prefer-node-protocol': ['error'],
'no-restricted-syntax': ['error', 'IfStatement > ExpressionStatement > AssignmentExpression'],
'unicorn/prefer-ternary': 'error',
},
}, {
files: ['**/*.ts'],
ignores: ['node_modules/**', 'dist/**', 'build/**'],
rules: {
'no-unused-vars': 'off',
'no-undef': 'off',
'no-redeclare': 'off',
'dot-notation': 'off',
},
}
}]
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@
"src/**/*",
"src/cjs/package.json"
],
"ignore": ["node_modules", "dist"]
"ignore": ["node_modules", "dist", "example/.nuxt"]
}

0 comments on commit e848e09

Please sign in to comment.