Skip to content

Commit

Permalink
SetUp ESlint and pre-commit hooks configs
Browse files Browse the repository at this point in the history
  • Loading branch information
SHYAKA-Aime committed May 20, 2024
1 parent a85a8f9 commit 9578c47
Show file tree
Hide file tree
Showing 4 changed files with 3,488 additions and 391 deletions.
41 changes: 41 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"root": true,
"extends": "airbnb-base",
"env": {
"node": true,
"es6": true,
"mocha": true
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2020,
"sourceType": "module"
},
"plugins": [
"@typescript-eslint"
],
"rules": {
"one-var": 0,
"one-var-declaration-per-line": 0,
"new-cap": 0,
"consistent-return": 0,
"no-param-reassign": 0,
"comma-dangle": 0,
"curly": ["error", "multi-line"],
"import/no-unresolved": [2, { "commonjs": true }],
"no-shadow": ["error", { "allow": ["req", "res", "err"] }],
"valid-jsdoc": ["error", {
"requireReturn": true,
"requireReturnType": true,
"requireParamDescription": false,
"requireReturnDescription": true
}],
"require-jsdoc": ["error", {
"require": {
"FunctionDeclaration": true,
"MethodDefinition": true,
"ClassDeclaration": true
}
}]
}
}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div style="display: flex; justify-content: center;" align="center">
<img src="https://codecov.io/gh/atlp/e-commerce-furebo-32-bn/branch/main/graph/badge.svg?token=25aecf2d-ee44-4ac0-9f91-9f9c38ed5412" alt="Codecov" width="50%">
<img alt="GitHub Actions Workflow Status" src="https://img.shields.io/github/actions/workflow/status/atlp/e-commerce-furebo-32-bn/job.yaml" width="50%">
</div>
</div>
Loading

0 comments on commit 9578c47

Please sign in to comment.