1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- {
- //TODO: reorder these based on eslint docs
- "parser": "babel-eslint", // for the <3 of generator comprehensions
- "env": {
- "es6": true,
- "node": true,
- "mocha": true,
- "jquery": true,
- },
- "rules": {
- // Possible Errors
- "comma-dangle": [2, "always-multiline"],
- "valid-jsdoc": 2,
- // Best Practices
- "block-scoped-var": 2,
- "complexity": [2, 15],
- "curly": [2, "multi-line"],
- "default-case": 2,
- "dot-location": [2, "property"],
- "guard-for-in": 2,
- "no-floating-decimal": 2,
- "wrap-iife": 2, //TODO: use "any" instead?
- // Strict Mode
- "strict": [2, "global"],
- // Variables
- //
- // Node.js
- //no-sync ? ? ?
- // Stylistic Issues
- "brace-style": [2, "1tbs"],
- "camelcase": [2, {"properties": "always"}],
- "quotes": [2, "double", "avoid-escape"],
- "require-jsdoc": 2,
- // ECMAScript 6
- //
- // Legacy
- "max-depth": [2, 7],
- "max-len": [2, 140],
- "max-params": [2, 11],
- "max-statements": [2, 42],
- },
- }
|