장준영

feat : 파일 이동 및 린트, 프리티어 적용

module.exports = {
env: {
browser: true,
es2021: true,
node: true,
},
extends: ['eslint:recommended', 'plugin:prettier/recommended'],
parserOptions: {
ecmaVersion: 12,
sourceType: 'module',
},
rules: {
'prettier/prettier': [
'error',
{ singleQuote: true },
{
endOfLine: 'auto',
},
],
'no-unused-vars': 'warn',
'no-console': 'off',
'func-names': 'off',
'no-process-exit': 'off',
'object-shorthand': 'off',
'class-methods-use-this': 'off',
},
};
\ No newline at end of file
{
"env": {
"browser": true,
"es6": true
},
"extends": ["airbnb-base", "plugin:prettier/recommended"],
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module"
},
"plugins": ["prettier"],
"rules": {
"semi": "error",
"prettier/prettier": [
"error",
{
"endOfLine": "auto"
}
]
}
}
{
"singleQuote": true,
"semi": true,
"useTabs": false,
"tabWidth": 2,
"trailingComma": "all",
"printWidth": 100,
"endOfLine": "lf"
}
\ No newline at end of file
......@@ -11,12 +11,18 @@
"debug": "~2.6.9",
"dotenv": "^8.2.0",
"express": "~4.16.1",
"hangul-js": "^0.2.6",
"http-errors": "~1.6.3",
"jade": "~1.11.0",
"morgan": "~1.9.1",
"mysql2": "^2.2.5"
},
"devDependencies": {
"eslint": "^7.15.0"
"eslint": "^7.15.0",
"eslint-config-airbnb-base": "^14.2.1",
"eslint-config-prettier": "^7.0.0",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-prettier": "^3.2.0",
"prettier": "^2.2.1"
}
}
......
var express = require('express');
const insertDB = require('../data_json/data_insert');
var router = express.Router();
const express = require('express');
const router = express.Router();
/* GET home page. */
router.get('/', function(req, res, next) {
router.post('/checkProfanity', (req, res) => {
res.send('hello');
});
......