This repository has been archived by the owner on May 29, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 9
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 (#25)
- Loading branch information
Showing
16 changed files
with
12,437 additions
and
11,769 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,32 @@ | ||
module.exports = { | ||
root: true, | ||
extends: [ | ||
// TODO: move rules to @tinkoff/eslint-config-angular | ||
'eslint:recommended', | ||
'plugin:@typescript-eslint/eslint-recommended', | ||
'@tinkoff/eslint-config-angular', | ||
], | ||
ignorePatterns: ['projects/**/test.ts'], | ||
parserOptions: { | ||
ecmaVersion: 2020, | ||
sourceType: 'module', | ||
project: [require.resolve('./tsconfig.eslint.json')], | ||
}, | ||
parser: '@typescript-eslint/parser', | ||
rules: { | ||
// TODO: move rules to @tinkoff/eslint-config-angular | ||
'@typescript-eslint/no-useless-constructor': 'off', | ||
'@typescript-eslint/no-inferrable-types': ['error', {ignoreParameters: true}], | ||
'@typescript-eslint/explicit-member-accessibility': [ | ||
'error', | ||
{accessibility: 'no-public'}, | ||
], | ||
'@typescript-eslint/prefer-readonly': ['error'], | ||
'no-console': ['error', {allow: ['info', 'assert', 'warn', 'error']}], | ||
|
||
'no-prototype-builtins': 'off', | ||
// note you must disable the base rule as it can report incorrect errors | ||
'no-unused-vars': 'off', | ||
'@typescript-eslint/no-unused-vars': ['error', {argsIgnorePattern: '^_'}], | ||
}, | ||
}; |
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,6 +1,6 @@ | ||
language: node_js | ||
node_js: | ||
- "10" | ||
- "14" | ||
script: | ||
- npm run lint | ||
- npm run build | ||
|
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']}; |
Large diffs are not rendered by default.
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
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,16 @@ | ||
const base = require('@tinkoff/prettier-config/angular'); | ||
|
||
module.exports = { | ||
...require('@tinkoff/linters/prettier/prettier.config'), | ||
...base, | ||
overrides: [ | ||
...base.overrides, | ||
{ | ||
files: ['*.js', '*.ts'], | ||
options: {printWidth: 90, parser: 'typescript'}, | ||
}, | ||
{ | ||
files: '*.html', | ||
options: {printWidth: 80, parser: 'html'}, | ||
}, | ||
], | ||
}; |
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,5 +1,10 @@ | ||
import {alwaysRejected} from '../utils/functions'; | ||
|
||
export class BlobMock implements Blob { | ||
size = 0; | ||
type = ''; | ||
arrayBuffer = () => alwaysRejected(); | ||
stream = () => new ReadableStream(); | ||
text = () => alwaysRejected(); | ||
slice = () => this; | ||
} |
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,9 @@ | ||
{ | ||
"extends": "./tsconfig.json", | ||
"compilerOptions": { | ||
"rootDir": ".", | ||
"baseUrl": "." | ||
}, | ||
"include": ["projects", "scripts", "**/*.js"], | ||
"exclude": ["**/node_modules", "**/.*/"] | ||
} |
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 was deleted.
Oops, something went wrong.