Skip to content

Commit

Permalink
Merge pull request #54 from pdehaan/add-eslint
Browse files Browse the repository at this point in the history
Adding basic ESLint config
  • Loading branch information
dannycoates authored Jun 9, 2017
2 parents e077160 + 837be5a commit 3c9889c
Show file tree
Hide file tree
Showing 4 changed files with 1,225 additions and 747 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
public/bundle.js
38 changes: 38 additions & 0 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
env:
browser: true
es6: true
jquery: true
node: true

extends:
- eslint:recommended
- plugin:node/recommended

plugins:
- node
- security

root: true

rules:
security/detect-buffer-noassert: warn
security/detect-child-process: warn
security/detect-disable-mustache-escape: warn
security/detect-eval-with-expression: warn
security/detect-new-buffer: warn
security/detect-no-csrf-before-method-override: warn
security/detect-non-literal-fs-filename: warn
security/detect-non-literal-regexp: warn
security/detect-non-literal-require: warn
security/detect-possible-timing-attacks: warn
security/detect-pseudoRandomBytes: warn
security/detect-unsafe-regex: warn

eqeqeq: error
no-console: warn
no-path-concat: error
no-unused-vars: [error, {argsIgnorePattern: "^_|next"}]
no-var: error
one-var: [error, never]
prefer-const: error
quotes: [error, single]
Loading

0 comments on commit 3c9889c

Please sign in to comment.