Skip to content

Commit e74815b

Browse files
committed
chore: run lint on CI
1 parent db82778 commit e74815b

File tree

4 files changed

+6
-9
lines changed

4 files changed

+6
-9
lines changed

.eslintrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ module.exports = {
2626
rules: {
2727
'@typescript-eslint/array-type': ['error', { default: 'array-simple' }],
2828
'@typescript-eslint/no-require-imports': 'off',
29-
'@typescript-eslint/ban-ts-ignore': 'warn',
29+
'@typescript-eslint/prefer-ts-expect-error': 'error',
3030
'@typescript-eslint/ban-types': 'error',
3131
'@typescript-eslint/no-unused-vars': 'error',
3232
'no-else-return': 'error',

.github/workflows/nodejs.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ jobs:
2828
cache: yarn
2929
- name: install
3030
run: yarn
31+
- name: run eslint
32+
run: yarn lint
3133
- name: run prettylint
3234
run: yarn prettylint
3335
- name: run typecheck

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"scripts": {
1313
"build": "ncc build src/index.ts --external @jest/reporters --minify --no-source-map-register",
1414
"build:watch": "ncc build src/index.ts --external @jest/reporters --watch",
15-
"lint": "eslint . --ignore-pattern '!.eslintrc.js' --ext js,ts,tsx",
15+
"lint": "eslint . --ignore-pattern '!.eslintrc.js'",
1616
"prepare": "yarn build",
1717
"prettylint": "prettier README.md package.json --check",
1818
"test": "jest",

src/Reporter.tsx

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -233,13 +233,8 @@ const Reporter: React.FC<Props> = ({
233233
const { stdout } = useStdout();
234234
const width = stdout.columns;
235235

236-
const {
237-
currentTests,
238-
completedTests,
239-
aggregatedResults,
240-
done,
241-
contexts,
242-
} = state;
236+
const { currentTests, completedTests, aggregatedResults, done, contexts } =
237+
state;
243238
const { estimatedTime = 0 } = options;
244239

245240
const { exit } = useApp();

0 commit comments

Comments
 (0)