Skip to content

Commit

Permalink
Add ESLint for StandardJS
Browse files Browse the repository at this point in the history
  • Loading branch information
ZandercraftGames committed Sep 26, 2023
1 parent b87ddda commit 561baa9
Show file tree
Hide file tree
Showing 4 changed files with 127 additions and 12 deletions.
27 changes: 27 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
module.exports = {

Check failure on line 1 in .eslintrc.js

View workflow job for this annotation

GitHub Actions / Qodana for JS

Standard code style

Standard code style: Install the 'eslint' package
env: {
browser: true,
commonjs: true,
es2021: true,
node: true
},
extends: 'standard',
overrides: [
{
env: {
node: true
},
files: [
'.eslintrc.{js,cjs}'
],
parserOptions: {
sourceType: 'script'
}
}
],
parserOptions: {
ecmaVersion: 'latest'
},
rules: {
}
}
Binary file modified README.md
Binary file not shown.
104 changes: 93 additions & 11 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 7 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,17 @@
"cookie-parser": "~1.4.4",
"current-git-branch": "^1.1.0",
"debug": "~4.3.4",
"eslint": "^8.50.0",
"express": "~4.16.1",
"hbs": "~4.2.0",
"http-errors": "~1.6.3",
"morgan": "~1.9.1",
"standard": "^17.1.0"
},
"devDependencies": {
"eslint": "^8.50.0",
"eslint-config-standard": "^17.1.0",
"eslint-plugin-import": "^2.28.1",
"eslint-plugin-n": "^16.1.0",
"eslint-plugin-promise": "^6.1.1"
}
}

0 comments on commit 561baa9

Please sign in to comment.