This repository has been archived by the owner on May 26, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat!: update to Angular 12 and Ivy distribution
- Loading branch information
Showing
22 changed files
with
36,472 additions
and
12,440 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
/** | ||
* @type {import('eslint').Linter.Config} | ||
*/ | ||
module.exports = { | ||
root: true, | ||
extends: [ | ||
// TODO: warning No cached ProjectGraph is available. The rule will be skipped. @nrwl/nx/enforce-module-boundaries | ||
// If you encounter this error as part of running standard `nx` commands then please open an issue on | ||
// https://github.com/nrwl/nx | ||
// './scripts/eslint/nx.js', | ||
'@tinkoff/eslint-config-angular', | ||
'@tinkoff/eslint-config-angular/html', | ||
'@tinkoff/eslint-config-angular/imports', | ||
'@tinkoff/eslint-config-angular/line-statements', | ||
'@tinkoff/eslint-config-angular/member-ordering', | ||
], | ||
ignorePatterns: ['projects/**/test.ts', '*.js', '*.json', '*.less', '*.md'], | ||
parserOptions: { | ||
ecmaVersion: 'latest', | ||
sourceType: 'module', | ||
project: [require.resolve('./tsconfig.eslint.json')], | ||
}, | ||
parser: '@typescript-eslint/parser', | ||
rules: { | ||
'dot-notation': 'off', | ||
'@typescript-eslint/dot-notation': [ | ||
'error', | ||
{ | ||
allowPrivateClassPropertyAccess: true, | ||
allowProtectedClassPropertyAccess: true, | ||
allowIndexSignaturePropertyAccess: true, | ||
}, | ||
], | ||
'@typescript-eslint/no-useless-constructor': 'off', | ||
'no-prototype-builtins': 'off', | ||
'@typescript-eslint/no-unnecessary-type-constraint': 'error', | ||
'@typescript-eslint/prefer-includes': 'error', | ||
'prefer-template': 'error', | ||
'@typescript-eslint/explicit-function-return-type': [ | ||
'error', | ||
{ | ||
allowExpressions: true, | ||
allowTypedFunctionExpressions: true, | ||
allowHigherOrderFunctions: true, | ||
allowDirectConstAssertionInArrowFunctions: true, | ||
allowConciseArrowFunctionExpressionsStartingWithVoid: true, | ||
}, | ||
], | ||
'@typescript-eslint/no-base-to-string': 'error', | ||
'@typescript-eslint/ban-types': 'error', | ||
'@typescript-eslint/no-for-in-array': 'error', | ||
'@typescript-eslint/prefer-nullish-coalescing': 'error', | ||
'@typescript-eslint/prefer-optional-chain': 'error', | ||
}, | ||
}; |
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,5 @@ | ||
#!/bin/sh | ||
# shellcheck disable=SC1090 | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
npx commitlint --edit $1 |
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,6 @@ | ||
#!/bin/sh | ||
# shellcheck disable=SC1090 | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
npx lint-staged | ||
npm run typecheck |
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 @@ | ||
module.exports = {extends: ['@commitlint/config-conventional']}; |
Oops, something went wrong.