Skip to content

Commit

Permalink
Merge pull request #27 from lizozom/jslint
Browse files Browse the repository at this point in the history
JSLint using husky
  • Loading branch information
do-me authored Jul 25, 2023
2 parents 699e57e + 2181f13 commit 7eeddad
Show file tree
Hide file tree
Showing 8 changed files with 2,170 additions and 277 deletions.
29 changes: 29 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
module.exports = {
env: {
browser: true,
es2021: true
},
extends: 'standard',
overrides: [
{
env: {
node: true
},
files: [
'.eslintrc.{js,cjs}'
],
parserOptions: {
sourceType: 'script'
}
}
],
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module'
},
rules: {
indent: ['error', 4],
'space-before-function-paren': ['error', 'never'],
semi: ['error', 'always']
}
};
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"

npx lint-staged
Loading

0 comments on commit 7eeddad

Please sign in to comment.