-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from ntwb/eslint-1
Use eslint@1.0.0 and eslint-config-stylelint
- Loading branch information
Showing
2 changed files
with
3 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,53 +1 @@ | ||
--- | ||
ecmaFeatures: | ||
modules: true | ||
|
||
env: | ||
es6: true | ||
browser: true | ||
node: true | ||
|
||
# 0: off, 1: warning, 2: error | ||
rules: | ||
|
||
# trailing coma are cool for diff | ||
comma-dangle: [2, "always-multiline"] | ||
|
||
# enforce comma at eol (never before) | ||
comma-style: [2, "last"] | ||
|
||
# turn off consistent return | ||
consistent-return: 0 | ||
|
||
# 2 spaces indentation | ||
indent: [2, 2] | ||
|
||
# quotes are always double | ||
quotes: [2, "double"] | ||
|
||
# single empty lines only | ||
no-multiple-empty-lines: [2, {"max": 1}] | ||
|
||
# allow functions declarations at bottom of scope | ||
no-use-before-define: [2, "nofunc"] | ||
|
||
# semicolons are useless | ||
semi: [2, "never"] | ||
|
||
# consistent whitespace after keywords | ||
space-after-keywords: [2, "always"] | ||
|
||
# consistent whitespace before blocks | ||
space-before-blocks: [2, "always"] | ||
|
||
# consistent whitespace before function paren | ||
space-before-function-paren: [2, {"anonymous": "always", "named": "never"}] | ||
|
||
# consistent whitespace in brackets | ||
space-in-brackets: [2, "always", {"singleValue": false, "propertyName": false}] | ||
|
||
# consistent whitespace in parens | ||
space-in-parens: [2, "never"] | ||
|
||
# consistent whitespace in single line comments | ||
spaced-line-comment: [2, "always"] | ||
extends: 'stylelint' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters