Skip to content

Commit a1e3b5f

Browse files
committed
Eslint config update
1 parent 4520f27 commit a1e3b5f

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

eslint.config.cjs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
const js = require('@eslint/js')
22
const tsParser = require('@typescript-eslint/parser')
33
const tsPlugin = require('@typescript-eslint/eslint-plugin')
4-
const unicorn = require('eslint-plugin-unicorn')
54
const importPlugin = require('eslint-plugin-import')
5+
const unicorn = require('eslint-plugin-unicorn')
66

77
module.exports = [
8+
// Base JS config
89
{
910
...js.configs.recommended,
1011
plugins: {
@@ -37,13 +38,14 @@ module.exports = [
3738
'keyword-spacing': ['error'],
3839
'require-atomic-updates': 0,
3940
'linebreak-style': ['error', 'unix'],
40-
'unicorn/template-indent': ['error'],
4141
'import/extensions': ['error', 'ignorePackages'],
4242
'no-restricted-syntax': ['error', 'IfStatement > ExpressionStatement > AssignmentExpression'],
43-
'unicorn/prefer-ternary': 'error',
43+
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_' }],
44+
4445
},
4546
},
4647

48+
// TypeScript files
4749
{
4850
files: ['**/*.ts'],
4951
plugins: {

0 commit comments

Comments
 (0)