Skip to content

Commit 3c9889c

Browse files
authored
Merge pull request timvisee#54 from pdehaan/add-eslint
Adding basic ESLint config
2 parents e077160 + 837be5a commit 3c9889c

File tree

4 files changed

+1225
-747
lines changed

4 files changed

+1225
-747
lines changed

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
public/bundle.js

.eslintrc.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
env:
2+
browser: true
3+
es6: true
4+
jquery: true
5+
node: true
6+
7+
extends:
8+
- eslint:recommended
9+
- plugin:node/recommended
10+
11+
plugins:
12+
- node
13+
- security
14+
15+
root: true
16+
17+
rules:
18+
security/detect-buffer-noassert: warn
19+
security/detect-child-process: warn
20+
security/detect-disable-mustache-escape: warn
21+
security/detect-eval-with-expression: warn
22+
security/detect-new-buffer: warn
23+
security/detect-no-csrf-before-method-override: warn
24+
security/detect-non-literal-fs-filename: warn
25+
security/detect-non-literal-regexp: warn
26+
security/detect-non-literal-require: warn
27+
security/detect-possible-timing-attacks: warn
28+
security/detect-pseudoRandomBytes: warn
29+
security/detect-unsafe-regex: warn
30+
31+
eqeqeq: error
32+
no-console: warn
33+
no-path-concat: error
34+
no-unused-vars: [error, {argsIgnorePattern: "^_|next"}]
35+
no-var: error
36+
one-var: [error, never]
37+
prefer-const: error
38+
quotes: [error, single]

0 commit comments

Comments
 (0)