Skip to content

Commit

Permalink
Update ESLint configuration, Dockerfile, and package dependencies; ad…
Browse files Browse the repository at this point in the history
…d 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.
  • Loading branch information
DavidsonGomes committed Jan 9, 2025
1 parent d598c4e commit 616ae0a
Show file tree
Hide file tree
Showing 6 changed files with 230 additions and 186 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module.exports = {
parserOptions: {
project: 'tsconfig.json',
tsconfigRootDir: __dirname,
sourceType: 'commonjs',
sourceType: 'module',
warnOnUnsupportedTypeScriptVersion: false,
EXPERIMENTAL_useSourceOfProjectReferenceRedirect: true,
},
Expand Down
28 changes: 28 additions & 0 deletions .github/workflows/check_code_quality.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Check Code Quality

on: [pull_request]

jobs:
check-lint-and-build:
runs-on: ubuntu-latest
timeout-minutes: 10

steps:
- uses: actions/checkout@v2

- name: Install Node
uses: actions/setup-node@v1
with:
node-version: 20.x

- name: Install packages
run: npm install

- name: Check linting
run: npm run lint:check

- name: Check build
run: npm run db:generate

- name: Check build
run: npm run build
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ WORKDIR /evolution

COPY ./package.json ./tsconfig.json ./

RUN npm install -f
RUN npm install

COPY ./src ./src
COPY ./public ./public
Expand Down
Loading

0 comments on commit 616ae0a

Please sign in to comment.