Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "rules": {
- // Possible errors
- "comma-dangle": "never",
- "no-cond-assign": "except-parens",
- // Best Practices
- "block-scoped-var": true,
- "no-eq-null": true,
- "no-floating-decimal": true,
- "no-self-compare": true,
- "wrap-iife": true,
- "radix": true,
- "no-throw-literal": true,
- // Variables
- "no-undefined": true,
- "no-use-before-define": "nofunc",
- // Stylistic Issues
- "indent": [2, 2],
- "brace-style": "1tbs",
- "comma-spacing": [2, {"before": false, "after": true}],
- "comma-style": [2, "last"],
- "func-names": true,
- "func-style": [1, "declaration"],
- "max-nested-callbacks": [2, 3],
- "no-inline-comments": [1, true],
- "no-lonely-if": [1, true],
- "no-multiple-empty-lines": [1, {"max": 2}],
- "no-nested-ternary": [2, true],
- "no-trailing-spaces": [1, true],
- "operator-assignment": [2, "never"],
- "quotes": [1, "single", "avoid-escape"],
- "space-after-keywords": [2, "always"],
- "space-before-blocks": [2, "always"],
- "space-infix-ops": [2, true],
- "space-return-throw-case": [2, true],
- "space-unary-ops": [2, { "words": true, "nonwords": false }],
- // Legacy
- "max-depth": [1, 5],
- "max-len": [1, 80, 4],
- "max-statements": [1, 20]
- },
- "env": {
- "browser": true,
- "node": true
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement