Skip to content

Commit

Permalink
use eslint instead of
Browse files Browse the repository at this point in the history
  • Loading branch information
JacksonTian committed Dec 5, 2016
1 parent 21c6ddf commit 5fa388d
Show file tree
Hide file tree
Showing 4 changed files with 59 additions and 42 deletions.
3 changes: 3 additions & 0 deletions .eslintignore
@@ -0,0 +1,3 @@
*.debug.js
*.min.js
node_modules/*
56 changes: 56 additions & 0 deletions .eslintrc
@@ -0,0 +1,56 @@
{
"rules": {
"indent": [
2,
2
],
"quotes": [
2,
"single",
{"avoidEscape": true, "allowTemplateLiterals": true}
],
"linebreak-style": [
2,
"unix"
],
"semi": [2, "always"],
"strict": [2, "global"],
"curly": 2,
"eqeqeq": 2,
"no-eval": 2,
"guard-for-in": 2,
"no-caller": 2,
"no-else-return": 2,
"no-eq-null": 2,
"no-extend-native": 2,
"no-extra-bind": 2,
"no-floating-decimal": 2,
"no-implied-eval": 2,
"no-labels": 2,
"no-with": 2,
"no-loop-func": 1,
"no-native-reassign": 2,
"no-redeclare": [2, {"builtinGlobals": true}],
"no-delete-var": 2,
"no-shadow-restricted-names": 2,
"no-undef-init": 2,
"no-use-before-define": 2,
"no-unused-vars": 2,
"no-undef": 2,
"global-require": 0,
"no-console": 0,
"generator-star-spacing": ["error", "after"]
},
"env": {
"es6": true,
"node": true,
"browser": true
},
"globals": {
"describe": true,
"it": true,
"before": true,
"after": true
},
"extends": "eslint:recommended"
}
42 changes: 0 additions & 42 deletions .jshintrc

This file was deleted.

File renamed without changes.

0 comments on commit 5fa388d

Please sign in to comment.