-
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.
Merge pull request #855 from navikt/feature/node20
Upgrade to node 20
- Loading branch information
Showing
734 changed files
with
30,061 additions
and
30,068 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,40 @@ | ||
module.exports = { | ||
extends: [ | ||
'eslint:recommended', | ||
'plugin:@typescript-eslint/recommended', | ||
'plugin:@typescript-eslint/eslint-recommended', | ||
'plugin:vitest/recommended', | ||
'plugin:vitest-globals/recommended', | ||
'plugin:cypress/recommended', | ||
'prettier', | ||
], | ||
parser: '@typescript-eslint/parser', | ||
plugins: ['react', 'react-hooks', 'import', '@typescript-eslint', 'vitest', 'cypress'], | ||
globals: { | ||
fetchMock: true, | ||
vi: true, | ||
FormioUtils: true, | ||
}, | ||
env: { | ||
'vitest-globals/env': true, | ||
'cypress/globals': true, | ||
}, | ||
rules: { | ||
'no-unused-labels': 'error', // Should not have any unused labels | ||
'import/no-duplicates': 'error', // Should not import the same module twice (should be handled automatically by prettier-plugin-organize-imports) | ||
'@typescript-eslint/no-unused-vars': ['warn', { ignoreRestSiblings: true, argsIgnorePattern: '^[_$].*' }], // ignores unused variables starting with _ or $ | ||
'@typescript-eslint/ban-types': 'off', // TODO: Remove 'Function' as a type mostly | ||
'@typescript-eslint/no-explicit-any': 'off', // Explicit any's | ||
'@typescript-eslint/ban-ts-comment': 'off', // @ts-ignore and @ts-nocheck comments | ||
'@typescript-eslint/no-namespace': 'off', // TODO: FormSummaryType.ts has a Summary namespace | ||
'no-extra-boolean-cast': 'off', // TODO: Remove redudant "!!" | ||
'no-case-declarations': 'off', // TODO: Remove "let/const" in switch cases | ||
'vitest/expect-expect': 'off', // Cypress tests don't necessarily use expect | ||
'react/jsx-key': ['error', { checkFragmentShorthand: true }], // There was an error with a missing key that crashed the app | ||
'import/no-internal-modules': [ | ||
'error', | ||
{ forbid: ['@navikt/skjemadigitalisering-shared-@(components|domain)/**'] }, | ||
], // Should not import from shared components or domain | ||
}, | ||
root: true, | ||
}; |
This file was deleted.
Oops, something went wrong.
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,29 +1,29 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "npm" | ||
directory: "/" | ||
- package-ecosystem: 'npm' | ||
directory: '/' | ||
schedule: | ||
interval: "monthly" | ||
interval: 'monthly' | ||
versioning-strategy: increase | ||
open-pull-requests-limit: 20 | ||
groups: | ||
navikt: | ||
patterns: | ||
- "@navikt/*" | ||
- '@navikt/*' | ||
all-minor-patch: | ||
patterns: | ||
- "*" | ||
- '*' | ||
update-types: | ||
- "minor" | ||
- "patch" | ||
- 'minor' | ||
- 'patch' | ||
ignore: | ||
- dependency-name: "formiojs" | ||
- dependency-name: 'formiojs' | ||
|
||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
- package-ecosystem: 'github-actions' | ||
directory: '/' | ||
schedule: | ||
interval: "monthly" | ||
interval: 'monthly' | ||
groups: | ||
all: | ||
patterns: | ||
- "*" | ||
- '*' |
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
Oops, something went wrong.