Skip to content

Commit 5dd4af6

Browse files
committed
include linting and formatting in ci build
1 parent fa62f1c commit 5dd4af6

File tree

3 files changed

+35
-6
lines changed

3 files changed

+35
-6
lines changed

.gitattributes

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Auto detect text files and perform LF normalization
2+
* text=auto eol=lf
3+
4+
# Declare files that will always have LF line endings on checkout.
5+
*.sh text eol=lf
6+
7+
# Don't check these into the repo as LF to work around TeamCity bug
8+
*.xml -text
9+
*.targets -text
10+
11+
# Custom for Visual Studio
12+
*.cs diff=csharp
13+
*.sln
14+
*.csproj
15+
*.vbproj
16+
*.fsproj
17+
*.dbproj
18+
19+
# Denote all files that are truly binary and should not be modified.
20+
*.dll binary
21+
*.exe binary
22+
*.png binary
23+
*.ico binary
24+
*.snk binary
25+
*.pdb binary
26+
*.svg binary
27+
28+
# Don't check for trailing whitespace at end of lines in the doc pages
29+
*.md -whitespace=blank-at-eol

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ jobs:
3636
npm install
3737
name: Install dependencies
3838
- run: |
39-
npm run lint
40-
npm run format-check
39+
npm run lint:check
40+
npm run format:check
4141
name: Check code formatting
4242
- run: |
4343
npm run build:tools

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@
1414
"scripts": {
1515
"build": "run-p build:tools build:agents",
1616
"test": "run-p test:tools test:agents",
17-
"lint": "eslint --ext .ts src",
18-
"lint-fix": "eslint --ext .ts src --fix",
19-
"format": "prettier --write \"src/**/*.ts\"",
20-
"format-check": "prettier --check \"src/**/*.ts\"",
17+
"lint:check": "eslint --ext .ts src",
18+
"lint:fix": "eslint --ext .ts src --fix",
19+
"format:check": "prettier --check \"src/**/*.ts\"",
20+
"format:fix": "prettier --write \"src/**/*.ts\"",
2121

2222
"build:tools": "vite build --config src/tools/vite.config.mts",
2323
"build:agents": "run-p build:agent:local build:agent:azure build:agent:github",

0 commit comments

Comments
 (0)