Skip to content

Commit

Permalink
Chore: eslint, support nodejs, protractor environment.
Browse files Browse the repository at this point in the history
  • Loading branch information
huang-xiao-jian committed Jun 3, 2016
1 parent 78e157c commit 1b1aa18
Showing 1 changed file with 38 additions and 32 deletions.
70 changes: 38 additions & 32 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,34 +1,40 @@
{
"env": {
"browser": true,
"jquery": true,
"jasmine": true
},
"extends": "eslint:recommended",
"plugins": ["angular"],
"globals": {
"angular": true,
"echarts": true,
"module": true,
"inject": true
},
"rules": {
"indent": [
"error",
2,
{ "SwitchCase": 1 }
],
"linebreak-style": [
"error",
"unix"
],
"quotes": [
"error",
"double"
],
"semi": [
"error",
"always"
]
}
"env": {
"browser": true,
"jquery": true,
"jasmine": true,
"protractor": true,
"node": true
},
"extends": "eslint:recommended",
"plugins": [
"angular"
],
"globals": {
"angular": true,
"echarts": true,
"module": true,
"inject": true
},
"rules": {
"indent": [
"error",
2,
{
"SwitchCase": 1
}
],
"linebreak-style": [
"error",
"unix"
],
"quotes": [
"error",
"double"
],
"semi": [
"error",
"always"
]
}
}

0 comments on commit 1b1aa18

Please sign in to comment.