diff options
author | Maxime Quandalle <maxime@quandalle.com> | 2015-10-14 23:50:12 +0200 |
---|---|---|
committer | Maxime Quandalle <maxime@quandalle.com> | 2015-10-14 23:50:12 +0200 |
commit | 944a1065d372095e8a0898a4162ca6bb562bab69 (patch) | |
tree | f179e744acc7adfe7d2354ce0127daadb6e4104f /.eslintrc | |
parent | 43de3b8a01b001ec665294fa8bd75f5d01df7df0 (diff) | |
download | wekan-944a1065d372095e8a0898a4162ca6bb562bab69.tar.gz wekan-944a1065d372095e8a0898a4162ca6bb562bab69.tar.bz2 wekan-944a1065d372095e8a0898a4162ca6bb562bab69.zip |
Add some ESLint rules and fix some related issues
Diffstat (limited to '.eslintrc')
-rw-r--r-- | .eslintrc | 58 |
1 files changed, 32 insertions, 26 deletions
@@ -2,41 +2,46 @@ ecmaFeatures: experimentalObjectRestSpread: true rules: - accessor-pairs: [2] - consistent-return: [2] + accessor-pairs: 2 + comma-dangle: [2, 'always-multiline'] + consistent-return: 2 + dot-notation: 2 + eqeqeq: 2 indent: [2, 2] - semi: [2, always] - comma-dangle: [2, always-multiline] + no-cond-assign: 2 + no-constant-condition: 2 + no-eval: 2 no-inner-declarations: [0] - dot-notation: [2] - eqeqeq: [2] - no-eval: [2] - radix: [2] + no-unneeded-ternary: 2 + radix: 2 + semi: [2, always] # Stylistic Issues - camelcase: [2] - comma-spacing: [2] - comma-style: [2] - new-parens: [2] - no-lonely-if: [2] - no-multiple-empty-lines: [2] - no-nested-ternary: [2] + camelcase: 2 + comma-spacing: 2 + comma-style: 2 linebreak-style: [2, unix] + new-parens: 2 + no-lonely-if: 2 + no-multiple-empty-lines: 2 + no-nested-ternary: 2 + no-spaced-func: 2 + operator-linebreak: 2 quotes: [2, single] - semi-spacing: [2] + semi-spacing: 2 + space-unary-ops: 2 spaced-comment: [2, always, markers: ['/']] - space-unary-ops: [2] # ECMAScript 6 - arrow-parens: [2] - arrow-spacing: [2] - no-class-assign: [2] - no-dupe-class-members: [2] - no-var: [2] - object-shorthand: [2] - prefer-const: [2] - prefer-template: [2] - prefer-spread: [2] + arrow-parens: 2 + arrow-spacing: 2 + no-class-assign: 2 + no-dupe-class-members: 2 + no-var: 2 + object-shorthand: 2 + prefer-const: 2 + prefer-spread: 2 + prefer-template: 2 globals: # Meteor globals @@ -78,6 +83,7 @@ globals: FS: false getSlug: false Migrations: false + moment: false Mousetrap: false Picker: false Presence: true |