generated from ministryofjustice/hmpps-template-typescript
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PI-2713 Switch to HMPPS eslint config
- Loading branch information
1 parent
304f8d9
commit 4d48578
Showing
23 changed files
with
545 additions
and
226 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
import { initAll } from '/assets/govuk/govuk-frontend.min.js' | ||
// eslint-disable-next-line import/no-unresolved,import/extensions | ||
import { initAll } from './govuk/govuk-frontend.min.js' | ||
|
||
initAll() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
/* eslint-disable */ | ||
const openText = 'Open' | ||
const closeText = 'Close' | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import hmppsConfig from '@ministryofjustice/eslint-config-hmpps' | ||
import typescriptEslint from '@typescript-eslint/eslint-plugin' | ||
import tsParser from '@typescript-eslint/parser' | ||
|
||
export default [ | ||
...hmppsConfig({ | ||
extraIgnorePaths: ['playwright-report/**', '.zap/**'], | ||
extraPathsAllowingDevDependencies: ['e2e_tests/**', 'playwright.config.ts'], | ||
extraFrontendGlobals: { $: 'readonly', MOJFrontend: 'readonly' }, | ||
}), | ||
|
||
{ | ||
name: 'overrides', | ||
files: ['**/*.ts'], | ||
ignores: ['**/*.js'], | ||
plugins: { | ||
'@typescript-eslint': typescriptEslint, | ||
}, | ||
languageOptions: { | ||
parser: tsParser, | ||
}, | ||
rules: { | ||
// TODO remove these overrides and fix the issues: | ||
'@typescript-eslint/no-unused-vars': 0, | ||
'@typescript-eslint/no-explicit-any': 0, | ||
'import/prefer-default-export': 0, | ||
}, | ||
}, | ||
] |
Oops, something went wrong.