Skip to content

Commit 4147371

Browse files
committed
feat(angular16): updates prettier and linter config and moves to lint staged
1 parent dad644e commit 4147371

43 files changed

Lines changed: 1615 additions & 1120 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.eslintrc.json

Lines changed: 8 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,11 @@
11
{
22
"root": true,
3-
"ignorePatterns": [
4-
"projects/**/*"
5-
],
3+
"ignorePatterns": ["projects/**/*"],
64
"overrides": [
75
{
8-
"files": [
9-
"*.ts"
10-
],
6+
"files": ["*.ts"],
117
"parserOptions": {
12-
"project": [
13-
"tsconfig.json"
14-
],
8+
"project": ["tsconfig.json"],
159
"createDefaultProgram": true
1610
},
1711
"plugins": [
@@ -79,9 +73,7 @@
7973
"@typescript-eslint/quotes": "off",
8074
"@typescript-eslint/naming-convention": "off",
8175
"@typescript-eslint/member-ordering": "off",
82-
"@typescript-eslint/no-shadow": [
83-
"error"
84-
],
76+
"@typescript-eslint/no-shadow": ["error"],
8577
"@typescript-eslint/no-unused-expressions": "off",
8678
"brace-style": [
8779
"error",
@@ -152,25 +144,17 @@
152144
"rxjs-angular/prefer-takeuntil": [
153145
"error",
154146
{
155-
"alias": [
156-
"untilDestroyed"
157-
],
147+
"alias": ["untilDestroyed"],
158148
"checkComplete": true,
159-
"checkDecorators": [
160-
"Component"
161-
],
149+
"checkDecorators": ["Component"],
162150
"checkDestroy": false
163151
}
164152
]
165153
}
166154
},
167155
{
168-
"files": [
169-
"*.html"
170-
],
171-
"extends": [
172-
"plugin:@angular-eslint/template/recommended"
173-
],
156+
"files": ["*.html"],
157+
"extends": ["plugin:@angular-eslint/template/recommended"],
174158
"rules": {
175159
"@angular-eslint/template/no-call-expression": "error",
176160
"@angular-eslint/template/no-any": "error",

.husky/pre-commit

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
#!/bin/sh
22
. "$(dirname "$0")/_/husky.sh"
33

4-
[ -n "$CI" ] && exit 0
54

6-
node_modules/.bin/pretty-quick --staged --pattern "**/*.*(ts|html|js|scss|css)"

.lintstagedrc.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
3+
}

cypress.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { addCucumberPreprocessorPlugin } from '@badeball/cypress-cucumber-prepro
44

55
async function setupNodeEvents(
66
on: Cypress.PluginEvents,
7-
config: Cypress.PluginConfigOptions
7+
config: Cypress.PluginConfigOptions,
88
): Promise<Cypress.PluginConfigOptions> {
99
await addCucumberPreprocessorPlugin(on, config);
1010

@@ -38,7 +38,7 @@ async function setupNodeEvents(
3838
],
3939
},
4040
},
41-
})
41+
}),
4242
);
4343

4444
return config;

0 commit comments

Comments
 (0)