Skip to content

Commit

Permalink
🎨 Add ESLint configuration & run
Browse files Browse the repository at this point in the history
  • Loading branch information
cp2004 committed Apr 2, 2021
1 parent 5811a30 commit d42c268
Show file tree
Hide file tree
Showing 8 changed files with 1,421 additions and 271 deletions.
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ indent_size = 4

[**.js]
indent_style = space
indent_size = 4
indent_size = 2
12 changes: 12 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
module.exports = {
env: {
browser: true,
es2021: true
},
extends: ['standard'],
parserOptions: {
ecmaVersion: 12,
sourceType: 'module'
},
rules: {}
}
11 changes: 8 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,15 @@ repos:
- id: flake8
additional_dependencies:
- flake8-bugbear
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v2.2.1
- repo: https://github.com/pre-commit/mirrors-eslint
rev: v7.23.0
hooks:
- id: prettier
- id: eslint
additional_dependencies:
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- repo: https://github.com/asottile/pyupgrade
rev: v2.10.0
hooks:
Expand Down
2 changes: 1 addition & 1 deletion octoprint_wled/static/dist/wled.js

Large diffs are not rendered by default.

Loading

0 comments on commit d42c268

Please sign in to comment.