From d01ffae999a4d6ec3cbd513347a06edf73f06427 Mon Sep 17 00:00:00 2001 From: Maxime Quandalle Date: Tue, 8 Sep 2015 21:53:35 +0200 Subject: Add some passing ESlint rules --- .eslintrc | 101 ++++++++++++++++++++++---------------------------------------- 1 file changed, 35 insertions(+), 66 deletions(-) (limited to '.eslintrc') diff --git a/.eslintrc b/.eslintrc index 3f6639a4..2187cf75 100644 --- a/.eslintrc +++ b/.eslintrc @@ -1,76 +1,43 @@ ecmaFeatures: experimentalObjectRestSpread: true + rules: - indent: - - 2 - - 2 - semi: - - 2 - - always - comma-dangle: - - 2 - - always-multiline - no-inner-declarations: - - 0 - dot-notation: - - 2 - eqeqeq: - - 2 - no-eval: - - 2 - radix: - - 2 + accessor-pairs: [2] + consistent-return: [2] + indent: [2, 2] + semi: [2, always] + comma-dangle: [2, always-multiline] + no-inner-declarations: [0] + dot-notation: [2] + eqeqeq: [2] + no-eval: [2] + radix: [2] # 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 - linebreak-style: - - 2 - - unix - quotes: - - 2 - - single - semi-spacing: - - 2 - spaced-comment: - - 2 - - always - - markers: - - '/' - space-unary-ops: - - 2 + camelcase: [2] + comma-spacing: [2] + comma-style: [2] + new-parens: [2] + no-lonely-if: [2] + no-multiple-empty-lines: [2] + no-nested-ternary: [2] + linebreak-style: [2, unix] + quotes: [2, single] + semi-spacing: [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-template: [2] + prefer-spread: [2] + globals: # Meteor globals Meteor: false @@ -152,8 +119,10 @@ globals: allowIsBoardAdmin: true allowIsBoardMember: true Emoji: true + env: es6: true node: true browser: true + extends: 'eslint:recommended' -- cgit v1.2.3-1-g7c22