File tree Expand file tree Collapse file tree 3 files changed +10
-1
lines changed Expand file tree Collapse file tree 3 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 20
20
strategy :
21
21
fail-fast : true
22
22
matrix :
23
- script : ["format", "lint", "typecheck:ci"]
23
+ script : ["format", "lint:ci ", "typecheck:ci"]
24
24
25
25
steps :
26
26
- name : Checkout repo
Original file line number Diff line number Diff line change @@ -3,7 +3,15 @@ import { withContentlayer } from "next-contentlayer"
3
3
import withBundleAnalyzer from "@next/bundle-analyzer"
4
4
5
5
const nextConfig : NextConfig = {
6
+ eslint : {
7
+ /**
8
+ * Now eslint requires typecheck so we have to run build before executing lint
9
+ * These check are performed via `.github/workflows/ci.yml` action
10
+ */
11
+ ignoreDuringBuilds : true ,
12
+ } ,
6
13
typescript : {
14
+ /** @see `eslint.ignoreDuringBuilds` comment */
7
15
ignoreBuildErrors : true ,
8
16
} ,
9
17
reactStrictMode : true ,
Original file line number Diff line number Diff line change 63
63
"format:fix" : " prettier . --write" ,
64
64
"lint" : " next lint" ,
65
65
"lint:fix" : " next lint --fix" ,
66
+ "lint:ci" : " next build --no-lint && next lint" ,
66
67
"now-build" : " pnpm run build" ,
67
68
"start" : " next start" ,
68
69
"typecheck" : " tsc --noEmit" ,
You can’t perform that action at this time.
0 commit comments