-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create git hooks for eslint/format to run on commit
- Loading branch information
surahj
committed
Sep 20, 2023
1 parent
77159e6
commit 2bbadfd
Showing
9 changed files
with
2,551 additions
and
96 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"extends": ["airbnb/base", "prettier", "plugin:node/recommended"], | ||
"plugins": ["prettier"], | ||
"rules": { | ||
"prettier/prettier": "error", | ||
"spaced-comment": "off", | ||
"no-console": "warn", | ||
"consistent-return": "off", | ||
"func-names": "off", | ||
"object-shorthand": "off", | ||
"no-process-exit": "off", | ||
"no-param-reassign": "off", | ||
"no-return-await": "off", | ||
"no-underscore-dangle": 1, | ||
"class-methods-use-this": "off", | ||
"prefer-destructuring": ["error", { "object": true, "array": false }], | ||
"no-unused-vars": ["error", { "argsIgnorePattern": "req|res|next|val" }] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/usr/bin/env sh | ||
. "$(dirname -- "$0")/_/husky.sh" | ||
|
||
npm run lint | ||
npm run format |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"singleQuote": true, | ||
"trailingComma": "all" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
require('dotenv').config() | ||
const express = require('express') | ||
const app = express() | ||
require('dotenv').config(); | ||
const express = require('express'); | ||
|
||
const URI = process.env.MYSQL_ADDON_URI | ||
const app = express(); | ||
|
||
const URI = process.env.MYSQL_ADDON_URI; | ||
|
||
app.listen() | ||
app.listen(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
const Seqeulize = require("seqeulize") | ||
require('dotenv').config() | ||
const URI = process.env.MYSQL_ADDON_URI | ||
const Seqeulize = require('seqeulize'); | ||
require('dotenv').config(); | ||
|
||
const URI = process.env.MYSQL_ADDON_URI; | ||
|
||
const seqeulize = new Seqeulize(URI, { dialect: 'mysql' }) | ||
const seqeulize = new Seqeulize(URI, { dialect: 'mysql' }); | ||
|
||
module.exports = seqeulize | ||
module.exports = seqeulize; |
Oops, something went wrong.