1
0
mirror of https://github.com/matt-fidd/stratos.git synced 2026-01-01 17:59:25 +00:00

Added linting package

This commit is contained in:
2022-01-13 09:58:11 +00:00
parent cfd4abc17e
commit ca893198e7
3 changed files with 1409 additions and 6 deletions

91
.eslintrc.json Normal file
View File

@@ -0,0 +1,91 @@
{
"globals": {},
"env": {
"commonjs": true,
"es2021": true,
"node": true
},
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": "latest"
},
"rules": {
"indent": [
"error",
"tab"
],
"linebreak-style": [
"error",
"unix"
],
"quotes": [
"error",
"single",
{
"allowTemplateLiterals": true
}
],
"semi": [
"error",
"always"
],
"no-unused-vars": [
"error",
{
"vars": "local",
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_"
}
],
"max-len": [
"error",
{
"code": 80,
"tabWidth": 8
}
],
"array-bracket-spacing": [
"error",
"always"
],
"object-curly-spacing": [
"error",
"always"
],
"no-extra-parens": [
"error"
],
"no-template-curly-in-string": [
"error"
],
"no-unreachable-loop": [
"error"
],
"block-scoped-var": [
"error"
],
"curly": [
"error",
"multi-or-nest",
"consistent"
],
"no-alert": [
"error"
],
"no-else-return": [
"error"
],
"no-empty-function": [
"error"
],
"no-self-compare": [
"error"
],
"no-useless-return": [
"error"
],
"brace-style": [
"error"
]
}
}

1321
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -19,5 +19,8 @@
"dependencies": {
"bcrypt": "^5.0.1",
"mysql2": "^2.3.3"
},
"devDependencies": {
"eslint": "^8.6.0"
}
}