Skip to content

Commit

Permalink
Add more rules
Browse files Browse the repository at this point in the history
  • Loading branch information
pieter-pon committed Oct 27, 2021
1 parent a3274c8 commit 505c80e
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 11 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

JavaScript Standard Style with custom PON tweaks

The default standardjs lint rules: https://github.com/standard/eslint-config-standard/blob/master/.eslintrc.json

## Install

```
Expand Down
63 changes: 52 additions & 11 deletions eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,24 @@
]
}
],
"block-scoped-var": "error",
"camelcase": [
"error",
{
"properties": "never"
}
],
"complexity": [
"error",
{
"max": 20
}
],
"consistent-return": "error",
"max-classes-per-file": [
"error",
1
],
"max-params": [
"warn",
5
Expand All @@ -37,27 +49,41 @@
"warn",
"last"
],
"no-alert": "error",
"no-caller": "error",
"no-extra-label": "error",
"no-labels": [
"error",
{
"allowLoop": false,
"allowSwitch": false
}
],
"no-loop-func": "error",
"no-mixed-spaces-and-tabs": [
"warn"
],
"no-prototype-builtins": "off",
"no-return-assign": [
"error",
"except-parens"
],
"no-restricted-syntax": [
"error",
"ForInStatement",
"LabeledStatement",
"WithStatement"
],
"no-return-await": "error",
"no-unused-vars": [
"error",
{
"ignoreRestSiblings": true,
"argsIgnorePattern": "res|next|^err"
}
],
"no-else-return": [
"error",
{
"allowElseIf": false
}
],
"prefer-const": [
"error",
{
Expand All @@ -68,18 +94,23 @@
"error",
"as-needed"
],
"no-unused-expressions": [
"error",
{
"allowTaggedTemplates": true
}
],
"no-console": "warn",
"no-param-reassign": [
"error",
{
"props": false
"props": false,
"ignorePropertyModificationsFor": [
"acc",
"accumulator",
"e",
"req",
"request",
"res",
"response"
]
}
],
"no-useless-concat": "error",
"max-len": [
"error",
{
Expand Down Expand Up @@ -110,8 +141,18 @@
"allowTemplateLiterals": true
}
],
"radix": "error",
"import/prefer-default-export": "off",
"vars-on-top": "error",
"for-direction": "error",
"getter-return": [
"error",
{
"allowImplicit": true
}
],
"no-await-in-loop": "error",
"no-inner-declarations": "error",
"valid-jsdoc": [
"error",
{
Expand Down

0 comments on commit 505c80e

Please sign in to comment.