Skip to content

Commit

Permalink
Changes to enforce code quality.
Browse files Browse the repository at this point in the history
  • Loading branch information
tech-consortium committed Nov 15, 2023
1 parent 61964d3 commit 56fe5b4
Show file tree
Hide file tree
Showing 6 changed files with 53 additions and 5 deletions.
16 changes: 16 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# https://editorconfig.org
root = true

[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.md]
trim_trailing_whitespace = false

[*.json]
indent_size = 2
5 changes: 0 additions & 5 deletions .eslintrc

This file was deleted.

27 changes: 27 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
module.exports = {
'env': {
'commonjs': true,
'es2021': true,
'node': true,
'mocha': true,
},
'extends': ['eslint:recommended', 'google'],
'overrides': [
{
'env': {
'node': true,
},
'files': [
'.eslintrc.{js,cjs}',
],
'parserOptions': {
'sourceType': 'script',
},
},
],
'parserOptions': {
'ecmaVersion': 'latest',
},
'rules': {
},
};
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npm test
4 changes: 4 additions & 0 deletions .lintstagedrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"*.js": "eslint --fix",
"*.{json,md}": "prettier --write"
}
2 changes: 2 additions & 0 deletions .pretterignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
package.json
package-lock.json

0 comments on commit 56fe5b4

Please sign in to comment.