Skip to content

Commit e212c3f

Browse files
committed
test(lint): eslint warnings will fail the build now
In practice the previous setup of reporting and annotating meant eslint warnings were ignored, even though the codebase is actually clean (except one item, fixed here)
1 parent a480895 commit e212c3f

File tree

2 files changed

+1
-15
lines changed

2 files changed

+1
-15
lines changed

.github/workflows/linting.yml

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -42,20 +42,6 @@ jobs:
4242
command: yarn --no-audit --prefer-offline
4343
- name: Lint
4444
run: yarn lint
45-
- name: Save Code Linting Report JSON
46-
run: yarn lint:report
47-
continue-on-error: true
48-
- name: Annotate Code Linting Results
49-
uses: ataylorme/[email protected]
50-
continue-on-error: true
51-
with:
52-
repo-token: '${{ secrets.GITHUB_TOKEN }}'
53-
report-json: 'eslint-report.json'
54-
- name: Upload ESLint report
55-
uses: actions/upload-artifact@v2
56-
with:
57-
name: eslint-report.json
58-
path: eslint-report.json
5945

6046
typescript:
6147
name: TypeScript Build Validation

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"prepare": "yarn run lerna:link && lerna run prepare --parallel",
77
"build:all:clean": "lerna run build:clean",
88
"build:all:build": "lerna run build",
9-
"lint": "eslint . --ext .js,.jsx,.ts,.tsx",
9+
"lint": "eslint . --ext .js,.jsx,.ts,.tsx --max-warnings=0",
1010
"lint:markdown": "prettier --check \"docs/**/*.md\"",
1111
"lint:report": "eslint --output-file=eslint-report.json --format=json . --ext .js,.jsx,.ts,.tsx",
1212
"lint:spellcheck": "spellchecker --quiet --files=\"docs/**/*.md\" --dictionaries=\"./.spellcheck.dict.txt\" --reports=\"spelling.json\" --plugins spell indefinite-article repeated-words syntax-mentions syntax-urls frontmatter",

0 commit comments

Comments
 (0)