Skip to content

Commit

Permalink
ci: disable no-unused-vars in TypeScript
Browse files Browse the repository at this point in the history
TypeScript checks that already, and does it better
  • Loading branch information
Robbert authored and Yolijn committed Aug 4, 2024
1 parent 59c885e commit fb59ab8
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 5 deletions.
18 changes: 15 additions & 3 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,25 @@ module.exports = {
plugins: ['import', 'jest'],
},
{
extends: ['plugin:react/recommended', 'eslint-config-prettier', './.eslintrc.js.json', './.eslintrc.react.json'],
extends: [
'plugin:react/recommended',
'eslint-config-prettier',
'./.eslintrc.js.json',
'./.eslintrc.react.json',
'./.eslintrc.ts.json',
],
files: ['*.ts', '*.tsx'],
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint', 'import', 'jest'],
},
{
extends: ['plugin:react/recommended', 'eslint-config-prettier', './.eslintrc.js.json', './.eslintrc.react.json'],
extends: [
'plugin:react/recommended',
'eslint-config-prettier',
'./.eslintrc.js.json',
'./.eslintrc.react.json',
'./.eslintrc.ts.json',
],
files: ['**/stencil.tsx', '**/*.stencil.tsx'],
parser: '@typescript-eslint/parser',
parserOptions: {
Expand All @@ -60,7 +72,7 @@ module.exports = {
},
{
excludedFiles: ['**/stencil.tsx', '**/*.stencil.tsx'],
extends: ['plugin:react/recommended', 'eslint-config-prettier', './.eslintrc.js.json'],
extends: ['plugin:react/recommended', 'eslint-config-prettier', './.eslintrc.js.json', './.eslintrc.ts.json'],
files: ['*.ts', '*.tsx'],
parser: '@typescript-eslint/parser',
parserOptions: {
Expand Down
5 changes: 5 additions & 0 deletions .eslintrc.ts.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"rules": {
"no-unused-vars": "off"
}
}
1 change: 0 additions & 1 deletion packages/component-library-react/src/Calendar/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable no-unused-vars */
import {
addMonths,
addWeeks,
Expand Down
2 changes: 1 addition & 1 deletion packages/component-library-react/src/IndexCharNav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export interface IndexCharNavProps {
* }
*```
*/
// eslint-disable-next-line no-unused-vars

onLinkClick?: (char: string) => void;
/**
* The current char.
Expand Down

0 comments on commit fb59ab8

Please sign in to comment.