Skip to content

Commit

Permalink
Bump eslint, typescript-eslint; add eslint-plugin-lingui
Browse files Browse the repository at this point in the history
and fix linter warnings, allow dependabot to update these again,
disable `lingui/no-expression-in-message` for now, too many warnings
  • Loading branch information
himdel committed Dec 11, 2024
1 parent 7947430 commit 6b1033b
Show file tree
Hide file tree
Showing 11 changed files with 362 additions and 286 deletions.
9 changes: 0 additions & 9 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,9 @@ updates:
- 'react'
- 'react-dom'
ignore:
- dependency-name: '@lingui/*'
update-types:
- 'version-update:semver-major'
- dependency-name: '@patternfly/*'
update-types:
- 'version-update:semver-major'
- dependency-name: 'eslint'
update-types:
- 'version-update:semver-major'
- dependency-name: 'react'
update-types:
- 'version-update:semver-major'
Expand All @@ -56,9 +50,6 @@ updates:
- 'version-update:semver-major'
- 'version-update:semver-minor'
- 'version-update:semver-patch'
- dependency-name: 'typescript-eslint'
update-types:
- 'version-update:semver-major'

- package-ecosystem: 'npm'
directory: '/'
Expand Down
7 changes: 6 additions & 1 deletion eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import eslint from '@eslint/js';
import prettierConfig from 'eslint-config-prettier';
import pluginLingui from 'eslint-plugin-lingui';
import reactPlugin from 'eslint-plugin-react';
import globals from 'globals';
import {
Expand All @@ -23,6 +24,7 @@ export default config(
...tsConfigs.recommended,
...tsConfigs.stylistic,
prettierConfig,
pluginLingui.configs['flat/recommended'],
{
files: ['**/*.{js,jsx,mjs,cjs,ts,tsx}'],
plugins: {
Expand Down Expand Up @@ -55,12 +57,13 @@ export default config(
'eol-last': ['error', 'always'],
'@typescript-eslint/no-unused-vars': [
'error',
{ argsIgnorePattern: '^_' },
{ argsIgnorePattern: '^_', caughtErrorsIgnorePattern: '^_' },
],
'@typescript-eslint/consistent-type-imports': [
'error',
{ fixStyle: 'inline-type-imports' },
],
'lingui/no-expression-in-message': 'off',
'no-restricted-imports': [
'error',
{
Expand Down Expand Up @@ -105,6 +108,7 @@ export default config(
},
},
rules: {
'@typescript-eslint/no-require-imports': 'off',
'@typescript-eslint/no-var-requires': 'off',
},
},
Expand All @@ -130,6 +134,7 @@ export default config(
},
},
rules: {
'@typescript-eslint/no-require-imports': 'off',
'@typescript-eslint/no-var-requires': 'off',
},
},
Expand Down
Loading

0 comments on commit 6b1033b

Please sign in to comment.