-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
mat1th
committed
May 23, 2017
1 parent
bd89031
commit cd2968e
Showing
5 changed files
with
124 additions
and
1 deletion.
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"presets": [ | ||
"react", | ||
"es2015", | ||
"stage-2" | ||
], | ||
"plugins": [ | ||
"transform-class-properties", | ||
"transform-es2015-modules-commonjs" | ||
] | ||
} |
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# editorconfig.org | ||
root = true | ||
|
||
[*] | ||
indent_style = space | ||
indent_size = 2 | ||
end_of_line = lf | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = false | ||
|
||
[*.md] | ||
trim_trailing_whitespace = false | ||
insert_final_newline = false |
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 |
---|---|---|
@@ -0,0 +1,51 @@ | ||
{ | ||
"rules": { | ||
"linebreak-style": [2, "unix"], | ||
"eol-last": 1, | ||
"quotes": [1, "single", "avoid-escape"], | ||
"semi": [2, "always"], | ||
"camelcase": [2, { | ||
"properties": "never" | ||
}], | ||
"brace-style": [1, "1tbs", { | ||
"allowSingleLine": true | ||
}], | ||
"no-nested-ternary": 1, | ||
"no-unused-vars": [2, { | ||
"argsIgnorePattern": "event" | ||
}], | ||
"no-console": 0, | ||
"max-depth": [2, 4], | ||
"dot-notation": 1, | ||
"eqeqeq": 2, | ||
"no-implied-eval": 2, | ||
"no-loop-func": 1, | ||
"radix": 2, | ||
"no-magic-numbers": [1, { | ||
"ignore": [0, 1, 2, -1, 10] | ||
}], | ||
"complexity": [2, 10], | ||
"yoda": [2, "never"] | ||
}, | ||
"env": { | ||
"browser": true, | ||
"node": true, | ||
"es6": true, | ||
"webextensions": true | ||
}, | ||
"globals": { | ||
"config": true, | ||
"import": true, | ||
"Promise": true, | ||
"React": true, | ||
"moment": true | ||
}, | ||
"parserOptions": { | ||
"sourceType": "module" | ||
}, | ||
"extends": "eslint:recommended", | ||
"ecmaFeatures": { | ||
"jsx": true, | ||
"modules": true | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,46 @@ | ||
severity: error | ||
|
||
linters: | ||
|
||
BorderZero: | ||
enabled: true | ||
convention: zero | ||
|
||
BemDepth: | ||
enabled: true | ||
|
||
DeclarationOrder: | ||
enabled: false | ||
|
||
ExtendDirective: | ||
enabled: true | ||
|
||
LeadingZero: | ||
enabled: false | ||
|
||
NameFormat: | ||
enabled: true | ||
|
||
PrivateNamingConvention: | ||
enabled: true | ||
prefix: _ | ||
|
||
PropertySortOrder: | ||
enabled: false | ||
|
||
QualifyingElement: | ||
enabled: false | ||
|
||
SelectorFormat: | ||
enabled: true | ||
convention: hyphenated_BEM | ||
class_convention: ^(?!js-).* | ||
class_convention_explanation: should not be written in the form js-* | ||
|
||
SingleLinePerProperty: | ||
enabled: true | ||
allow_single_line_rule_sets: false | ||
|
||
StringQuotes: | ||
enabled: true | ||
style: single_quotes |
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