From 732dc03df807fe2bdec162fb54cdd5aaee158617 Mon Sep 17 00:00:00 2001 From: AlexKVal Date: Thu, 3 Sep 2015 14:54:42 +0300 Subject: [PATCH] Impose 'vars-on-top' --- .eslintrc | 3 +-- karma.conf.js | 2 +- webpack.config.js | 2 +- webpack.docs.js | 2 +- 4 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.eslintrc b/.eslintrc index 07f7f4cf36..2540658dc5 100644 --- a/.eslintrc +++ b/.eslintrc @@ -29,7 +29,6 @@ "react/jsx-boolean-value": [2, "never"], "react/jsx-no-duplicate-props": 2, "react/prop-types": [2, { "ignore": [ "children", "className", "style" ] }], - "react/sort-comp": 0, - "vars-on-top": 0 + "react/sort-comp": 0 } } diff --git a/karma.conf.js b/karma.conf.js index e38956b913..26e3954034 100644 --- a/karma.conf.js +++ b/karma.conf.js @@ -1,4 +1,4 @@ -/* eslint no-var: 0, babel/object-shorthand: 0 */ +/* eslint no-var: 0, babel/object-shorthand: 0, vars-on-top: 0 */ require('babel/register'); var webpackConfig = require('./webpack/test.config.js'); diff --git a/webpack.config.js b/webpack.config.js index 9d7bf6d0f3..faf8e55ad8 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -1,4 +1,4 @@ -/* eslint no-var: 0 */ +/* eslint no-var: 0, vars-on-top: 0 */ require('babel/register'); var config = require('./webpack/webpack.config'); module.exports = config; diff --git a/webpack.docs.js b/webpack.docs.js index 80f0eec6fe..dc6139decf 100644 --- a/webpack.docs.js +++ b/webpack.docs.js @@ -1,4 +1,4 @@ -/* eslint no-var: 0 */ +/* eslint no-var: 0, vars-on-top: 0 */ require('babel/register'); var config = require('./webpack/docs.config'); module.exports = config;