Skip to content

Commit

Permalink
fix: eslint 제거 후 scripts 파일 mjs로 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
gxxrxn committed Jun 24, 2024
1 parent ec2efa1 commit 977008d
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 20 deletions.
10 changes: 1 addition & 9 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,5 @@
"caughtErrors": "all"
}
]
},
"overrides": [
{
"files": ["scripts/**/*.js"],
"rules": {
"@typescript-eslint/no-var-requires": "off"
}
}
]
}
}
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
"dev": "next dev -H local.dev.dadok.app",
"build": "next build",
"start": "next start -H local.dev.dadok.app",
"dev-ssl": "node scripts/server.js local.dev.dadok.app",
"start-ssl": "NODE_ENV=production node scripts/server.js local.dev.dadok.app",
"dev-ssl": "node scripts/server.mjs local.dev.dadok.app",
"start-ssl": "NODE_ENV=production node scripts/server.mjs local.dev.dadok.app",
"lint": "next lint",
"prepare": "husky install",
"storybook": "storybook dev -p 6006",
"build-storybook": "storybook build",
"update-host": "node scripts/updateDevHost.js local.dev.dadok.app",
"update-host": "node scripts/updateDevHost.mjs local.dev.dadok.app",
"init-https": "sh scripts/init-mkcert.sh local.dev.dadok.app",
"postinstall": "patch-package"
},
Expand Down
12 changes: 6 additions & 6 deletions scripts/server.js → scripts/server.mjs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
const fs = require('fs');
const https = require('https');
const path = require('path');
const { parse } = require('url');
const { execSync } = require('child_process');
const next = require('next');
import fs from 'fs';
import https from 'https';
import path from 'path';
import { parse } from 'url';
import { execSync } from 'child_process';
import next from 'next';

const dev = process.env.NODE_ENV !== 'production';
const hostname = process.argv[2];
Expand Down
4 changes: 2 additions & 2 deletions scripts/updateDevHost.js → scripts/updateDevHost.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const fs = require('fs');
const { EOL } = require('os');
import * as fs from 'fs';
import { EOL } from 'os';

const LOCALHOST = '127.0.0.1';
const IS_WINDOWS = process.platform === 'win32';
Expand Down

0 comments on commit 977008d

Please sign in to comment.