Skip to content

Commit

Permalink
refactor: fix eslint issues in eslint.config.mjs and jest.config.mjs
Browse files Browse the repository at this point in the history
These `@typescript-eslint/naming-convention` errors can be easily fixed by inserting brackets

Addresses: #1565 (review)
  • Loading branch information
0b5vr committed Mar 5, 2025
1 parent 658127f commit 1f2eaac
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ export default tseslint.config(
rules: {
curly: ['error', 'multi-line'],

'no-console': ['error', {
['no-console']: ['error', {
allow: ['info', 'warn', 'error'],
}],

'@typescript-eslint/naming-convention': ['error', {
['@typescript-eslint/naming-convention']: ['error', {
selector: 'default',
format: ['camelCase'],
}, {
Expand Down Expand Up @@ -64,12 +64,12 @@ export default tseslint.config(
format: ['camelCase', 'PascalCase', 'UPPER_CASE'],
}],

'@typescript-eslint/no-unused-vars': ['warn', {
['@typescript-eslint/no-unused-vars']: ['warn', {
args: 'none',
}],

'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-non-null-assertion': ['off'],
['@typescript-eslint/no-explicit-any']: 'off',
['@typescript-eslint/no-non-null-assertion']: ['off'],
},
},

Expand All @@ -83,8 +83,8 @@ export default tseslint.config(
html,
},
rules: {
'padded-blocks': 'off',
'no-unused-vars': 'off',
['padded-blocks']: 'off',
['no-unused-vars']: 'off',
},
},
);
2 changes: 1 addition & 1 deletion jest.config.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// it's required to make vscode-jest work properly...
export default {
transform: {
'^.+\\.ts$': 'ts-jest',
['^.+\\.ts$']: 'ts-jest',
},
};

0 comments on commit 1f2eaac

Please sign in to comment.