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: removed rules covered by eslint:recommends Created Oct. 13, 2016, 2:03 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": "warn",
+ "no-alert": "warn",
+ "indent": ["warn", 2],
+ "valid-jsdoc": "warn",
+ "eol-last": "warn",
+ "vars-on-top": "off",
+ /* MDN Naming and formatting code */
+ "no-trailing-spaces": "warn",
+ "max-len": ["warn", 80],
+ "brace-style": ["warn", "allman"],
+ /* MDN JavaScript practices */
+ "no-eq-null": "off",
+ "consistent-return": "error",
+ "no-array-constructor": "warn",
+ "no-new-object": "warn",
+ /* ABP General */
+ "no-warning-comments": "warn",
+ /* Palant recommends */
+ "array-bracket-spacing": "warn",
+ "arrow-spacing": "warn",
+ "comma-spacing": "warn",
+ "comma-style": "warn",
+ "computed-property-spacing": "warn",
+ "key-spacing": "warn",
+ "keyword-spacing": "warn",
+ "new-parens": "warn",
+ "func-call-spacing": "warn",
+ "no-var": "warn",
+ "no-whitespace-before-property": "warn",
+ "object-curly-spacing": "warn",
+ "operator-assignment": "warn",
+ "operator-linebreak": "warn",
+ "padded-blocks": ["warn", "never"],
+ "prefer-rest-params": "warn",
+ "prefer-spread": "warn",
+ "require-yield": "warn",
+ "quotes": ["warn", "double", {"avoidEscape": true}],
+ "semi": "warn",
+ "semi-spacing": "warn",
+ "space-before-function-paren": ["warn", "never"],
+ "space-in-parens": "warn",
+ "space-infix-ops": "warn",
+ "space-unary-ops": "warn",
+ "spaced-comment": "warn",
+ "yield-star-spacing": "warn"
+ }
+}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld