Skip to content

Commit

Permalink
update(eslint): add eslint to package.json. Fix rules for 1.x.
Browse files Browse the repository at this point in the history
Rules are disabled by default now, so just remove rules instead of marking false.
False now causes eslint to throw a type exception.
Add a basic EditorConfig file.
  • Loading branch information
Splaktar committed Nov 16, 2015
1 parent 4a8876d commit d95f919
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 11 deletions.
17 changes: 17 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# EditorConfig helps developers define and maintain consistent coding styles between different editors and IDEs
# editorconfig.org

root = true

[*]
indent_style = space
indent_size = 2

# We recommend you to keep these unchanged
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.md]
trim_trailing_whitespace = false
11 changes: 0 additions & 11 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,9 @@
"browser": true
},
"rules": {
"quotes": false,
"no-underscore-dangle": false,
"no-unused-expressions": false,
"curly": [2, "multi-line"],
"strict": false,
"no-use-before-define": false,
"eqeqeq": false,
"new-cap": [2, {"capIsNew": false}],
"dot-notation": [2, {"allowKeywords": false}],
"no-console": false,
"no-return-assign": false,
"no-shadow": false,
"comma-dangle": false,
"camelcase": [2, {"properties": "never"}]
}
}

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"babel": "5.8.21",
"browser-sync": "2.8.2",
"del": "1.2.0",
"eslint": "^1.9.0",
"gulp": "3.9.0",
"gulp-autoprefixer": "2.3.1",
"gulp-sass": "2.0.4",
Expand Down

0 comments on commit d95f919

Please sign in to comment.