Skip to content

Commit

Permalink
ESLint (#4)
Browse files Browse the repository at this point in the history
* Dev dependency from JSHint to ESLint
  • Loading branch information
Alkarex authored Jan 24, 2022
1 parent 32cc478 commit 46e4e05
Show file tree
Hide file tree
Showing 7 changed files with 3,768 additions and 171 deletions.
1 change: 1 addition & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true

[*.html]
indent_style = tab
Expand Down
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules/
32 changes: 32 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"env": {
"node": true
},
"extends": [
"eslint:recommended",
"standard"
],
"rules": {
"comma-dangle": ["warn", "always-multiline"],
"eqeqeq": "off",
"indent": ["warn", "tab", { "SwitchCase": 1 }],
"linebreak-style": ["error", "unix"],
"max-len": ["warn", 160],
"no-tabs": "off",
"semi": ["warn", "always"],
"space-before-function-paren": ["warn", {
"anonymous": "always",
"named": "never",
"asyncArrow": "always"
}]
},
"plugins": [
"html"
],
"settings": {
"html/html-extensions": [".html"],
"html/indent": "tab",
"html/report-bad-indent": "warn"
},
"root": true
}
Loading

0 comments on commit 46e4e05

Please sign in to comment.