-
Notifications
You must be signed in to change notification settings - Fork 7
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 #564 from correctexam/563-migrate-to-the-last-angu…
…lar-182-to-support-isolated-module 563 migrate to the last angular 182 to support isolated module
- Loading branch information
Showing
138 changed files
with
20,224 additions
and
19,930 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -10,7 +10,7 @@ jobs: | |
|
||
strategy: | ||
matrix: | ||
node-version: [20.x] | ||
node-version: [22.x] | ||
|
||
steps: | ||
|
||
|
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 |
---|---|---|
|
@@ -10,7 +10,7 @@ jobs: | |
|
||
strategy: | ||
matrix: | ||
node-version: [20.x] | ||
node-version: [22.x] | ||
|
||
steps: | ||
|
||
|
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 |
---|---|---|
|
@@ -10,7 +10,7 @@ jobs: | |
|
||
strategy: | ||
matrix: | ||
node-version: [20.x] | ||
node-version: [22.x] | ||
|
||
steps: | ||
|
||
|
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,5 +1 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
|
||
npx --no-install lint-staged |
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
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,77 @@ | ||
import eslint from '@eslint/js'; | ||
import tseslint from 'typescript-eslint'; | ||
|
||
export default [ | ||
{ | ||
ignores: [ | ||
'node_modules', | ||
'src/main/docker', | ||
'src/main/webapp/content/**', | ||
'jest.conf.js', | ||
'webpack/*', | ||
'target', | ||
'build', | ||
'node', | ||
'postcss.config.js', | ||
'__mocks__/styleMock.js', | ||
'__mocks__/exportCsvMock.js', | ||
'cypress/e2e/test.js', | ||
'.lintstagedrc.js', | ||
], | ||
}, | ||
eslint.configs.recommended, | ||
...tseslint.configs.recommended, | ||
{ | ||
files: ['src/**/*.ts'], | ||
|
||
rules: { | ||
'@typescript-eslint/explicit-function-return-type': ['error', { allowExpressions: true }], | ||
'@typescript-eslint/explicit-module-boundary-types': 'off', | ||
'@typescript-eslint/member-ordering': [ | ||
'error', | ||
{ | ||
default: [ | ||
'public-static-field', | ||
'protected-static-field', | ||
'private-static-field', | ||
'public-instance-field', | ||
'protected-instance-field', | ||
'private-instance-field', | ||
'constructor', | ||
'public-static-method', | ||
'protected-static-method', | ||
'private-static-method', | ||
'public-instance-method', | ||
'protected-instance-method', | ||
'private-instance-method', | ||
], | ||
}, | ||
], | ||
'@typescript-eslint/no-explicit-any': 'off', | ||
'@typescript-eslint/no-floating-promises': 'off', | ||
'@typescript-eslint/no-non-null-assertion': 'off', | ||
'@typescript-eslint/no-parameter-properties': 'off', | ||
'@typescript-eslint/no-shadow': ['error'], | ||
'@typescript-eslint/no-unsafe-argument': 'off', | ||
'@typescript-eslint/no-unsafe-assignment': 'off', | ||
'@typescript-eslint/no-unsafe-call': 'off', | ||
'@typescript-eslint/no-unsafe-member-access': 'off', | ||
'@typescript-eslint/unbound-method': 'off', | ||
'@typescript-eslint/prefer-promise-reject-errors': 'off', | ||
'arrow-body-style': 'error', | ||
curly: 'error', | ||
eqeqeq: ['error', 'always', { null: 'ignore' }], | ||
'guard-for-in': 'error', | ||
'no-bitwise': 'error', | ||
'no-caller': 'error', | ||
'no-console': ['error', { allow: ['warn', 'error'] }], | ||
'no-eval': 'error', | ||
'no-labels': 'error', | ||
'no-new': 'error', | ||
'no-new-wrappers': 'error', | ||
'object-shorthand': ['error', 'always', { avoidExplicitReturnArrows: true }], | ||
radix: 'error', | ||
'spaced-comment': ['warn', 'always'], | ||
}, | ||
}, | ||
]; |
Oops, something went wrong.