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:
91
.eslintrc.json
Normal file
91
.eslintrc.json
Normal 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
1321
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -19,5 +19,8 @@
|
||||
"dependencies": {
|
||||
"bcrypt": "^5.0.1",
|
||||
"mysql2": "^2.3.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"eslint": "^8.6.0"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user