Skip to content

Commit 616ae0a

Browse files
committed
Update ESLint configuration, Dockerfile, and package dependencies; add GitHub Actions workflow for code quality checks
- Changed ESLint parser options to use 'module' as source type. - Updated Dockerfile to remove force flag from npm install command. - Upgraded 'mime' package from version 3.0.0 to 4.0.0 in package.json. - Added '@types/mime' as a development dependency. - Updated TypeScript configuration to use 'CommonJS' module format. - Introduced a new GitHub Actions workflow for checking code quality, including linting and build checks.
1 parent d598c4e commit 616ae0a

File tree

6 files changed

+230
-186
lines changed

6 files changed

+230
-186
lines changed

.eslintrc.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module.exports = {
33
parserOptions: {
44
project: 'tsconfig.json',
55
tsconfigRootDir: __dirname,
6-
sourceType: 'commonjs',
6+
sourceType: 'module',
77
warnOnUnsupportedTypeScriptVersion: false,
88
EXPERIMENTAL_useSourceOfProjectReferenceRedirect: true,
99
},
+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Check Code Quality
2+
3+
on: [pull_request]
4+
5+
jobs:
6+
check-lint-and-build:
7+
runs-on: ubuntu-latest
8+
timeout-minutes: 10
9+
10+
steps:
11+
- uses: actions/checkout@v2
12+
13+
- name: Install Node
14+
uses: actions/setup-node@v1
15+
with:
16+
node-version: 20.x
17+
18+
- name: Install packages
19+
run: npm install
20+
21+
- name: Check linting
22+
run: npm run lint:check
23+
24+
- name: Check build
25+
run: npm run db:generate
26+
27+
- name: Check build
28+
run: npm run build

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ WORKDIR /evolution
1111

1212
COPY ./package.json ./tsconfig.json ./
1313

14-
RUN npm install -f
14+
RUN npm install
1515

1616
COPY ./src ./src
1717
COPY ./public ./public

0 commit comments

Comments
 (0)