prettier
This commit is contained in:
1 parent
327255b466
commit
2b5468090a
4 files changed
+37
-43
No files matched your search
+27
-27
@@ -4,31 +4,31 @@ import prettier from 'eslint-config-prettier';
|
|||||||
import prettierPlugin from 'eslint-plugin-prettier';
|
import prettierPlugin from 'eslint-plugin-prettier';
|
||||||
|
|
||||||
export default [
|
export default [
|
||||||
eslintJs.configs.recommended,
|
eslintJs.configs.recommended,
|
||||||
...tseslint.configs.recommended,
|
...tseslint.configs.recommended,
|
||||||
prettier,
|
prettier,
|
||||||
{
|
{
|
||||||
files: ['**/*.ts'],
|
files: ['**/*.ts'],
|
||||||
plugins: {
|
plugins: {
|
||||||
prettier: prettierPlugin,
|
prettier: prettierPlugin,
|
||||||
},
|
},
|
||||||
languageOptions: {
|
languageOptions: {
|
||||||
parserOptions: {
|
parserOptions: {
|
||||||
projectService: true,
|
projectService: true,
|
||||||
tsconfigRootDir: import.meta.dirname,
|
tsconfigRootDir: import.meta.dirname,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
rules: {
|
rules: {
|
||||||
'prettier/prettier': 'error',
|
'prettier/prettier': 'error',
|
||||||
'@typescript-eslint/no-explicit-any': 'warn',
|
'@typescript-eslint/no-explicit-any': 'warn',
|
||||||
'@typescript-eslint/explicit-function-return-type': 'off',
|
'@typescript-eslint/explicit-function-return-type': 'off',
|
||||||
'@typescript-eslint/no-unused-vars': [
|
'@typescript-eslint/no-unused-vars': [
|
||||||
'error',
|
'error',
|
||||||
{ argsIgnorePattern: '^_', varsIgnorePattern: '^_' },
|
{ argsIgnorePattern: '^_', varsIgnorePattern: '^_' },
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
ignores: ['dist/**', 'node_modules/**', '.angular/**', 'coverage/**'],
|
ignores: ['dist/**', 'node_modules/**', '.angular/**', 'coverage/**'],
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
@@ -3,7 +3,11 @@
|
|||||||
<div class="listOfDays">
|
<div class="listOfDays">
|
||||||
@for (day of daysOff; track day.id) {
|
@for (day of daysOff; track day.id) {
|
||||||
<div class="day-input-wrapper" animate.enter="day-enter" animate.leave="day-leave">
|
<div class="day-input-wrapper" animate.enter="day-enter" animate.leave="day-leave">
|
||||||
<app-day-input [day]="day" (dayChange)="updateDay($index, $event)" (deleteEntry)="removeFromList($index)"></app-day-input>
|
<app-day-input
|
||||||
|
[day]="day"
|
||||||
|
(dayChange)="updateDay($index, $event)"
|
||||||
|
(deleteEntry)="removeFromList($index)"
|
||||||
|
></app-day-input>
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
<mat-card class="add-day-card mat-elevation-z2" (click)="addDay()">
|
<mat-card class="add-day-card mat-elevation-z2" (click)="addDay()">
|
||||||
|
|||||||
+3
-9
@@ -4,14 +4,8 @@
|
|||||||
"extends": "./tsconfig.json",
|
"extends": "./tsconfig.json",
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"outDir": "./out-tsc/app",
|
"outDir": "./out-tsc/app",
|
||||||
"types": [
|
"types": ["node"]
|
||||||
"node"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
"include": [
|
"include": ["src/**/*.ts"],
|
||||||
"src/**/*.ts"
|
"exclude": ["src/**/*.spec.ts"]
|
||||||
],
|
|
||||||
"exclude": [
|
|
||||||
"src/**/*.spec.ts"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
+2
-6
@@ -4,11 +4,7 @@
|
|||||||
"extends": "./tsconfig.json",
|
"extends": "./tsconfig.json",
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"outDir": "./out-tsc/spec",
|
"outDir": "./out-tsc/spec",
|
||||||
"types": [
|
"types": ["jasmine"]
|
||||||
"jasmine"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
"include": [
|
"include": ["src/**/*.ts"]
|
||||||
"src/**/*.ts"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user