Skip to content

Commit 788d9ed

Browse files
author
codingChewie
committed
init
1 parent 9676569 commit 788d9ed

File tree

8 files changed

+2962
-0
lines changed

8 files changed

+2962
-0
lines changed

.editorconfig

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Normalizes editor configuration.
2+
# http://editorconfig.org
3+
root = true
4+
5+
[*]
6+
indent_style = space
7+
indent_size = 2
8+
end_of_line = LF
9+
charset = utf-8
10+
trim_trailing_whitespace = true
11+
insert_final_newline = true
12+
13+
[*.md]
14+
trim_trailing_whitespace = false

.eslintignore

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

.eslintrc.json

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
{
2+
"extends": ["airbnb", "prettier", "plugin:node/recommended"],
3+
"plugins": ["prettier"],
4+
"env": {
5+
"node": true,
6+
"es6": true,
7+
"browser": true
8+
},
9+
"rules": {
10+
"prettier/prettier": "error",
11+
"spaced-comment": "off",
12+
"no-console": "warn",
13+
"consistent-return": "off",
14+
"func-names": "off",
15+
"object-shorthand": "off",
16+
"no-process-exit": "off",
17+
"no-param-reassign": "off",
18+
"no-return-await": "off",
19+
"no-underscore-dangle": "off",
20+
"class-methods-use-this": "off",
21+
"prefer-destructuring": [
22+
"error",
23+
{
24+
"object": true,
25+
"array": false
26+
}
27+
],
28+
"no-unused-vars": [
29+
"error",
30+
{
31+
"argsIgnorePattern": "req|res|next|val"
32+
}
33+
],
34+
"semi": [2, "never"],
35+
"object-curly-spacing": [2, "always"]
36+
}
37+
}

.gitignore

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
## node module dir
2+
node_modules/
3+
4+
## OS generated files
5+
.DS_Store
6+
.DS_Store?
7+
._*
8+
.Spotlight-V100
9+
.Trashes
10+
ehthumbs.db
11+
Thumbs.db

.prettierrc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"singleQuote": true,
3+
"semi": false,
4+
"bracketSpacing": true,
5+
"arrowParens": "always",
6+
"trailingComma": "all",
7+
"printWidth": 140
8+
}

app.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
const express = require('express')

0 commit comments

Comments
 (0)