Toggle navigation
Toggle navigation
This project
Loading...
Sign in
2020-2-capstone-design2
/
2015104216
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
장준영
2020-12-12 01:43:45 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
c9414f6468cf37e12e68b041372adc99ae83bdeb
c9414f64
1 parent
1c0b33aa
feat : 파일 이동 및 린트, 프리티어 적용
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
42 additions
and
33 deletions
server/.eslintrc.js
server/.eslintrc.json
server/.prettierrc
server/package.json
server/routes/index.js
server/.eslintrc.js
deleted
100644 → 0
View file @
1c0b33a
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
server/.eslintrc.json
0 → 100644
View file @
c9414f6
{
"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"
}
]
}
}
server/.prettierrc
0 → 100644
View file @
c9414f6
{
"singleQuote"
:
true
,
"semi"
:
true
,
"useTabs"
:
false
,
"tabWidth"
:
2
,
"trailingComma"
:
"all"
,
"printWidth"
:
100
,
"endOfLine"
:
"lf"
}
\ No newline at end of file
server/package.json
View file @
c9414f6
...
...
@@ -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"
}
}
...
...
server/routes/index.js
View file @
c9414f6
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'
);
});
...
...
Please
register
or
login
to post a comment