From 7abc599347ec2fc8a8e5d4b8ffe752540710acf3 Mon Sep 17 00:00:00 2001 From: Nikita Galkin Date: Fri, 8 Dec 2017 11:04:48 +0200 Subject: [PATCH] Migrate from json to js for eslint config --- .eslintrc.json => .eslintrc.js | 5 +++-- .hound.yml | 2 +- test/{.eslintrc.json => .eslintrc.js} | 4 ++-- 3 files changed, 6 insertions(+), 5 deletions(-) rename .eslintrc.json => .eslintrc.js (91%) rename test/{.eslintrc.json => .eslintrc.js} (60%) diff --git a/.eslintrc.json b/.eslintrc.js similarity index 91% rename from .eslintrc.json rename to .eslintrc.js index f6f62b141..025a2d9be 100644 --- a/.eslintrc.json +++ b/.eslintrc.js @@ -1,9 +1,10 @@ -{ +module.exports = { "extends": "airbnb-base", "env": { "node": true }, "rules": { + // @todo: Add todo for every rull what we want to validte. "func-names": 0, "no-use-before-define": 0, "no-unused-vars": 0, @@ -38,4 +39,4 @@ "no-await-in-loop": 0, "arrow-body-style": 0 } -} +}; diff --git a/.hound.yml b/.hound.yml index 6728a4cba..5133f32e0 100644 --- a/.hound.yml +++ b/.hound.yml @@ -1,3 +1,3 @@ eslint: enabled: true - config_file: .eslintrc.json \ No newline at end of file + config_file: .eslintrc.js diff --git a/test/.eslintrc.json b/test/.eslintrc.js similarity index 60% rename from test/.eslintrc.json rename to test/.eslintrc.js index 7eeefc33b..f908d386f 100644 --- a/test/.eslintrc.json +++ b/test/.eslintrc.js @@ -1,5 +1,5 @@ -{ +module.exports = { "env": { "mocha": true } -} +};