Skip to content
This repository has been archived by the owner on May 22, 2021. It is now read-only.

Commit

Permalink
Adding basic ESLint config
Browse files Browse the repository at this point in the history
  • Loading branch information
pdehaan committed Jun 8, 2017
1 parent 24abf66 commit 635a243
Show file tree
Hide file tree
Showing 4 changed files with 678 additions and 7 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
public/bundle.js
36 changes: 36 additions & 0 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
env:
browser: true
es6: true
jquery: true
node: true

extends:
- eslint:recommended

plugins:
- 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 635a243

Please sign in to comment.