thelounge/.eslintrc.yml
Jérémie Astori caa46042bf Enforce strict mode across all JS files with ESLint
Several ES6 additions are only available in strict mode. Example:
> SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode

Strict mode was also enabled in a few of our files already, and it is a good thing to have anyway.
2016-10-09 15:14:02 -04:00

48 lines
866 B
YAML

---
root: true
env:
browser: true
mocha: true
node: true
parserOptions:
ecmaVersion: 6
rules:
block-spacing: [2, always]
brace-style: [2, 1tbs]
comma-dangle: 0
curly: [2, all]
eqeqeq: 2
indent: [2, tab]
key-spacing: [2, {beforeColon: false, afterColon: true}]
keyword-spacing: [2, {before: true, after: true}]
linebreak-style: [2, unix]
no-console: 0
no-control-regex: 0
no-inner-declarations: 2
no-invalid-regexp: 2
no-irregular-whitespace: 2
no-trailing-spaces: 2
no-unexpected-multiline: 2
no-unreachable: 2
object-curly-spacing: [2, never]
quotes: [2, double, avoid-escape]
semi: [2, always]
space-before-blocks: 2
space-infix-ops: 2
spaced-comment: [2, always]
strict: 2
globals:
log: false
$: false
Favico: false
Handlebars: false
io: false
Mousetrap: false
extends: eslint:recommended