Skip to content

Commit

Permalink
feat: add eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
bendehaan committed Mar 10, 2023
1 parent d8a2d02 commit fab510b
Show file tree
Hide file tree
Showing 7 changed files with 3,937 additions and 91 deletions.
15 changes: 15 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
module.exports = {
env: {
browser: true,
commonjs: true,
es2021: true
},
extends: 'standard',
overrides: [
],
parserOptions: {
ecmaVersion: 'latest'
},
rules: {
}
}
6 changes: 6 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,9 @@ repos:
hooks:
- id: commitlint
stages: [commit-msg]
- repo: https://github.com/eslint/eslint
rev: v8.35.0
hooks:
- id: eslint
args:
- "--fix"
8 changes: 4 additions & 4 deletions commitlint.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// commitlint.config.js
module.exports = {
extends: [
"@commitlint/config-conventional", // scoped packages are not prefixed
],
};
extends: [
'@commitlint/config-conventional' // scoped packages are not prefixed
]
}
9 changes: 5 additions & 4 deletions js/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
function secret() {
var password = "jLJIQZM=" + 9 + "aG7l" + 6 + "LAQ=" + 2 + "UdiM" + 7;
return password;
}
/* eslint-disable no-unused-vars */
function secret () {
const password = 'jLJIQZM=' + 9 + 'aG7l' + 6 + 'LAQ=' + 2 + 'UdiM' + 7
return password
}
Loading

0 comments on commit fab510b

Please sign in to comment.