Skip to content

Commit

Permalink
feat(lint): Add eslint-plugin-node
Browse files Browse the repository at this point in the history
Ensures that no incompatible JS features are used.
  • Loading branch information
fb55 committed Oct 9, 2020
1 parent 98a0489 commit de90133
Show file tree
Hide file tree
Showing 3 changed files with 80 additions and 322 deletions.
14 changes: 12 additions & 2 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": ["eslint:recommended", "prettier"],
"extends": ["eslint:recommended", "plugin:node/recommended", "prettier"],
"env": {
"node": true,
"es6": true
Expand All @@ -21,7 +21,12 @@
"spaced-comment": 2,
"yoda": [2, "never"],
"curly": [2, "multi-line"],
"no-else-return": 2
"no-else-return": 2,

"node/no-unsupported-features/es-syntax": [
2,
{ "ignores": ["modules"] }
]
},
"overrides": [
{
Expand All @@ -35,6 +40,11 @@
"sourceType": "module",
"project": "./tsconfig.eslint.json"
},
"settings": {
"node": {
"tryExtensions": [".js", ".json", ".node", ".ts"]
}
},
"rules": {
"@typescript-eslint/prefer-for-of": 0,
"@typescript-eslint/member-ordering": 0,
Expand Down
Loading

0 comments on commit de90133

Please sign in to comment.