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.
Browse files
Browse the repository at this point in the history
* Bump eslint from 8.57.0 to 9.17.0 Bumps [eslint](https://github.com/eslint/eslint) from 8.57.0 to 9.17.0. - [Release notes](https://github.com/eslint/eslint/releases) - [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md) - [Commits](eslint/eslint@v8.57.0...v9.17.0) --- updated-dependencies: - dependency-name: eslint dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> * PI-2713 Switch to HMPPS eslint config --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Marcus Aspin <[email protected]>
- Loading branch information
1 parent
bcb1a16
commit d1ee5c9
Showing
23 changed files
with
506 additions
and
131 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.