Skip to content

Commit 27ef08a

Browse files
authored
chore: add linting (#2)
1 parent 5f691cd commit 27ef08a

22 files changed

+1769
-112
lines changed

.eslintrc.json

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{
2+
"root": true,
3+
"overrides": [
4+
{
5+
"files": "*.ts",
6+
"parserOptions": {
7+
"project": [
8+
"./projects/angular-ecmascript-intl/tsconfig.lib.json",
9+
"./projects/angular-ecmascript-intl/tsconfig.spec.json",
10+
"./projects/angular-intl-demo/tsconfig.app.json"
11+
]
12+
},
13+
"extends": [
14+
"eslint:recommended",
15+
"plugin:@typescript-eslint/strict",
16+
"plugin:@angular-eslint/recommended",
17+
"plugin:@angular-eslint/template/process-inline-templates"
18+
],
19+
"rules": {
20+
"@typescript-eslint/no-extraneous-class": "off",
21+
"no-unused-vars": "off",
22+
"@typescript-eslint/no-unused-vars": "error",
23+
"comma-dangle": [
24+
"error",
25+
"always-multiline"
26+
]
27+
}
28+
},
29+
{
30+
"files": "*.html",
31+
"extends": [
32+
"plugin:@angular-eslint/template/recommended"
33+
],
34+
"rules": {
35+
}
36+
}
37+
]
38+
}

.github/workflows/verify-build.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,18 @@ jobs:
1818
- name: build
1919
run: npm run build
2020

21+
lint:
22+
runs-on: ubuntu-latest
23+
steps:
24+
- name: Checkout
25+
uses: actions/checkout@v3
26+
27+
- name: install
28+
run: npm ci
29+
30+
- name: lint
31+
run: npm run lint
32+
2133
test:
2234
runs-on: ubuntu-20.04
2335
steps:

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,8 +164,6 @@ For more context, see the following [GitHub issue](https://github.com/angular/an
164164

165165
## Chore Roadmap
166166

167-
* Linting
168-
* Pull request verification
169167
* Automatic dependency updates
170168
* Automatic npm publishing
171169
* Automatic changelog generation

0 commit comments

Comments
 (0)