Adding automatic linter for checking commit

This commit is contained in:
seunghyunOh
2022-12-18 00:36:08 +09:00
parent 6af59e47f5
commit 4c29c88fde
7 changed files with 8 additions and 7 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ WORKDIR /app
COPY package.json package-lock.json ./ COPY package.json package-lock.json ./
RUN npm ci --only-production RUN npm ci --only-production --ignore-scripts
COPY . . COPY . .
+1
View File
@@ -31,6 +31,7 @@
"version": "1.0.0", "version": "1.0.0",
"main": "src/index.js", "main": "src/index.js",
"scripts": { "scripts": {
"prepare": "cd .. && npm install",
"start": "npm run build && node build/index.js", "start": "npm run build && node build/index.js",
"dev": "nodemon", "dev": "nodemon",
"build": "rimraf ./build && tsc && cp -R ./src/templates ./src/json ./build", "build": "rimraf ./build && tsc && cp -R ./src/templates ./src/json ./build",
+1 -1
View File
@@ -10,7 +10,7 @@ WORKDIR /app
COPY package.json package-lock.json next.config.js ./ COPY package.json package-lock.json next.config.js ./
# Install dependencies # Install dependencies
RUN npm ci --only-production RUN npm ci --only-production --ignore-scripts
# Rebuild the source code only when needed # Rebuild the source code only when needed
+2 -2
View File
@@ -9,7 +9,7 @@ COPY package.json ./
COPY package-lock.json ./ COPY package-lock.json ./
# Install # Install
RUN npm install RUN npm install --ignore-scripts
# Copy over next.js config # Copy over next.js config
COPY next.config.js ./next.config.js COPY next.config.js ./next.config.js
@@ -17,4 +17,4 @@ COPY next.config.js ./next.config.js
# Copy all files # Copy all files
COPY . . COPY . .
CMD ["npm", "run", "dev"] CMD ["npm", "run", "dev"]
+1 -1
View File
@@ -9,7 +9,7 @@ COPY package.json ./
COPY package-lock.json ./ COPY package-lock.json ./
# Install # Install
RUN npm install RUN npm install --ignore-scripts
# Copy over next.js config # Copy over next.js config
COPY next.config.js ./next.config.js COPY next.config.js ./next.config.js
+1
View File
@@ -1,6 +1,7 @@
{ {
"private": true, "private": true,
"scripts": { "scripts": {
"prepare": "cd .. && npm install",
"dev": "next dev", "dev": "next dev",
"build": "next build", "build": "next build",
"start": "next start", "start": "next start",
+1 -2
View File
@@ -16,8 +16,7 @@
"lint-staged": { "lint-staged": {
"**/*": "prettier --write --ignore-unknown", "**/*": "prettier --write --ignore-unknown",
"*.{js,jsx,ts,tsx}": [ "*.{js,jsx,ts,tsx}": [
"eslint --fix", "eslint --fix"
"prettier --write"
] ]
}, },
"devDependencies": { "devDependencies": {