forked from codymikol/karma-webpack
-
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.
chore(style): Bring code quality tooling inline with Webpack
- Adds editorconfig - Adds eslint package and config - Adds jsBeautify and config - Adds lint npm script - Adds beautify-lint npm script - Adds pretest npm script to exec linting - Fixes existing linting errors
- Loading branch information
Showing
6 changed files
with
81 additions
and
19 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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
root = true | ||
|
||
[*.js] | ||
indent_style=tab | ||
trim_trailing_whitespace=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,24 @@ | ||
{ | ||
"env": { | ||
"node": true | ||
}, | ||
"rules": { | ||
"strict": 0, | ||
"camelcase": 0, | ||
"curly": 0, | ||
"indent": [2, "tab", { "SwitchCase": 1 }], | ||
"eol-last": 1, | ||
"no-shadow": 0, | ||
"no-redeclare": 2, | ||
"no-extra-bind": 1, | ||
"no-empty": 0, | ||
"no-process-exit": 1, | ||
"no-underscore-dangle": 0, | ||
"no-use-before-define": 0, | ||
"no-unused-vars": 0, | ||
"consistent-return": 0, | ||
"no-inner-declarations": 1, | ||
"no-loop-func": 1, | ||
"space-before-function-paren": [2, "never"] | ||
} | ||
} |
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,25 @@ | ||
{ | ||
"js": { | ||
"allowed_file_extensions": ["js", "json", "jshintrc", "jsbeautifyrc"], | ||
"brace_style": "collapse", | ||
"break_chained_methods": false, | ||
"e4x": true, | ||
"eval_code": false, | ||
"end_with_newline": true, | ||
"indent_char": "\t", | ||
"indent_level": 0, | ||
"indent_size": 1, | ||
"indent_with_tabs": true, | ||
"jslint_happy": false, | ||
"jslint_happy_align_switch_case": true, | ||
"space_after_anon_function": false, | ||
"keep_array_indentation": false, | ||
"keep_function_indentation": false, | ||
"max_preserve_newlines": 2, | ||
"preserve_newlines": true, | ||
"space_before_conditional": false, | ||
"space_in_paren": false, | ||
"unescape_strings": false, | ||
"wrap_line_length": 0 | ||
} | ||
} |
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
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
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