Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: eslintrc.json

Issue 29346539: Issue 3692 - Created global eslintrc (Closed)
Patch Set: Changed all "warn"ings to "error"s Created Oct. 13, 2016, 2:05 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: eslintrc.json
===================================================================
new file mode 100644
--- /dev/null
+++ b/eslintrc.json
@@ -0,0 +1,51 @@
+{
+ "extends": "eslint:recommended",
+ "rules": {
+ /* MDN General practices */
+ "no-else-return": "error",
+ "no-alert": "error",
+ "indent": ["error", 2],
+ "valid-jsdoc": "error",
+ "eol-last": "error",
+ "vars-on-top": "off",
+ /* MDN Naming and formatting code */
+ "no-trailing-spaces": "error",
+ "max-len": ["error", 80],
+ "brace-style": ["error", "allman"],
+ /* MDN JavaScript practices */
+ "no-eq-null": "off",
+ "consistent-return": "error",
+ "no-array-constructor": "error",
+ "no-new-object": "error",
+ /* ABP General */
+ "no-warning-comments": "error",
+ /* Palant recommends */
+ "array-bracket-spacing": "error",
+ "arrow-spacing": "error",
+ "comma-spacing": "error",
+ "comma-style": "error",
+ "computed-property-spacing": "error",
+ "key-spacing": "error",
+ "keyword-spacing": "error",
+ "new-parens": "error",
+ "func-call-spacing": "error",
+ "no-var": "error",
+ "no-whitespace-before-property": "error",
+ "object-curly-spacing": "error",
+ "operator-assignment": "error",
+ "operator-linebreak": "error",
+ "padded-blocks": ["error", "never"],
+ "prefer-rest-params": "error",
+ "prefer-spread": "error",
+ "require-yield": "error",
+ "quotes": ["error", "double", {"avoidEscape": true}],
+ "semi": "error",
+ "semi-spacing": "error",
+ "space-before-function-paren": ["error", "never"],
+ "space-in-parens": "error",
+ "space-infix-ops": "error",
+ "space-unary-ops": "error",
+ "spaced-comment": "error",
+ "yield-star-spacing": "error"
+ }
+}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld