Skip to content

Commit

Permalink
feat(lint+prettier): adding code quality control with eslint (google)…
Browse files Browse the repository at this point in the history
… and prettier
  • Loading branch information
JamieSlome committed Dec 19, 2020
1 parent 3afbd99 commit bb99327
Show file tree
Hide file tree
Showing 7 changed files with 736 additions and 32 deletions.
15 changes: 15 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"env": {
"browser": true,
"commonjs": true,
"es2021": true
},
"extends": ["google", "prettier"],
"plugins": ["prettier"],
"parserOptions": {
"ecmaVersion": 12
},
"rules": {
"prettier/prettier": ["error"]
}
}
8 changes: 8 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"semi": true,
"trailingComma": "none",
"singleQuote": false,
"printWidth": 80,
"tabWidth": 4,
"endOfLine": "lf"
}
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"editor.formatOnSave": true
}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
<img alt="npm" src="https://img.shields.io/npm/v/polyfig?color=%23301934">
<img alt="NPM" src="https://img.shields.io/npm/l/polyfig?color=%23301934">
<img alt="GitHub repo size" src="https://img.shields.io/github/repo-size/JamieSlome/polyfig?color=%23301934">
</p>
</p>
2 changes: 1 addition & 1 deletion commitlint.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module.exports = {
extends: ["@commitlint/config-conventional"]
};
};
Loading

0 comments on commit bb99327

Please sign in to comment.