Skip to content
This repository was archived by the owner on Nov 14, 2021. It is now read-only.

Commit c8c3f20

Browse files
committed
ESLint - front
전역 ESLint 완성. front 만 린트칠한상태
1 parent 2bba99b commit c8c3f20

44 files changed

Lines changed: 17370 additions & 3751 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
**/node_modules/**

.eslintrc.js

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
module.exports = {
2+
"env": {
3+
"browser": true,
4+
"es6": true,
5+
"node": true
6+
},
7+
"extends": [
8+
"eslint:recommended",
9+
"plugin:vue/recommended"
10+
],
11+
"globals": {
12+
"Atomics": "readonly",
13+
"SharedArrayBuffer": "readonly"
14+
},
15+
"parserOptions": {
16+
"ecmaVersion": 2018
17+
},
18+
"plugins": [
19+
"vue"
20+
],
21+
"rules": {
22+
"semi": ["error", "always"],
23+
"quotes": ["error", "single"],
24+
"indent": ["error", 4],
25+
"vue/html-indent": ["error", 4, {
26+
"attribute": 2,
27+
"baseIndent": 1,
28+
"closeBracket": 0,
29+
"alignAttributesVertically": true,
30+
"ignores": []
31+
}]
32+
}
33+
};

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2019 LEE SANG-CHUL
3+
Copyright (c) 2019 LEE SANG-CHUL, 1ilsang
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
6. [채팅 소켓 로드벨런싱 - HAProxy, Docker, Redis-pubsub, ShellScript](http://1ilsang.blog.me/221563459499)
3333
7. [댓글 구현 및 문제점과 의문](http://1ilsang.blog.me/221566493707)
3434
8. [대댓글 구현하기 - 디비 성능 개선기](http://1ilsang.blog.me/221569040532)
35+
9. [ESLint 적용하기](https://1ilsang.blog.me/221570867392)
3536
<br>
3637
개발중 ...
3738

backend/Auth/app.js

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const app = express();
1414

1515
app.use(logger('dev'));
1616
app.use(express.json());
17-
app.use(express.urlencoded({ extended: false }));
17+
app.use(express.urlencoded({extended: false}));
1818
app.use(cookieParser());
1919
app.use(cors());
2020
app.use(helmet());
@@ -26,19 +26,19 @@ app.use('/auth', authRouter);
2626
app.use('/test', testRouter);
2727

2828
// catch 404 and forward to error handler
29-
app.use(function(req, res, next) {
30-
next(createError(404));
29+
app.use(function (req, res, next) {
30+
next(createError(404));
3131
});
3232

3333
// error handler
34-
app.use(function(err, req, res, next) {
35-
// set locals, only providing error in development
36-
res.locals.message = err.message;
37-
res.locals.error = req.app.get('env') === 'development' ? err : {};
38-
39-
// render the error page
40-
res.status(err.status || 500);
41-
res.send('error');
34+
app.use(function (err, req, res, next) {
35+
// set locals, only providing error in development
36+
res.locals.message = err.message;
37+
res.locals.error = req.app.get('env') === 'development' ? err : {};
38+
39+
// render the error page
40+
res.status(err.status || 500);
41+
res.send('error');
4242
});
4343

4444
module.exports = app;

backend/Auth/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "0.0.0",
44
"private": true,
55
"scripts": {
6-
"start": "node ./bin/www"
6+
"start": "nodemon bin/www"
77
},
88
"dependencies": {
99
"bcrypt": "^3.0.6",

backend/Auth/utils/redis.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ const redisConfig = require('../config/redis');
33

44
exports.client = redis.createClient(
55
process.env.REDIS_PORT || redisConfig.port || 6379,
6-
process.env.REDIS_HOST || redisConfig.host || "127.0.0.1"
6+
process.env.REDIS_HOST || redisConfig.host || '127.0.0.1'
77
);

backend/Board/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "0.0.0",
44
"private": true,
55
"scripts": {
6-
"start": "node ./bin/www"
6+
"start": "nodemon bin/www"
77
},
88
"dependencies": {
99
"axios": "^0.19.0",

backend/Chat/utils/redis.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
const redis = require('redis');
2-
const redisConfig = require('../config/redis');
32

43
exports.client = redis.createClient({
54
host: 'redis',

0 commit comments

Comments
 (0)