From 632ed1c1c38ec350a8e489c02763f078ad43c795 Mon Sep 17 00:00:00 2001 From: Ali Sabzevari Date: Tue, 3 Aug 2021 15:25:38 +0200 Subject: [PATCH] chore: import examples eslintrc for getting-started eslint config --- examples/{.eslintrc => .eslintrc.json} | 0 getting-started/.eslintrc | 16 ---------------- getting-started/.eslintrc.js | 6 ++++++ 3 files changed, 6 insertions(+), 16 deletions(-) rename examples/{.eslintrc => .eslintrc.json} (100%) delete mode 100644 getting-started/.eslintrc create mode 100644 getting-started/.eslintrc.js diff --git a/examples/.eslintrc b/examples/.eslintrc.json similarity index 100% rename from examples/.eslintrc rename to examples/.eslintrc.json diff --git a/getting-started/.eslintrc b/getting-started/.eslintrc deleted file mode 100644 index 6b385b62156..00000000000 --- a/getting-started/.eslintrc +++ /dev/null @@ -1,16 +0,0 @@ -{ - "env": { - "node": true - }, - "extends": "airbnb-base", - "parserOptions": { - "sourceType": "script" - }, - "rules": { - "no-use-before-define": ["error", "nofunc"], - "no-console": "off", - "import/no-unresolved": "off", - "no-unused-vars": ["error"], - "strict": ["error", "global"] - } -} diff --git a/getting-started/.eslintrc.js b/getting-started/.eslintrc.js new file mode 100644 index 00000000000..8580fbfb045 --- /dev/null +++ b/getting-started/.eslintrc.js @@ -0,0 +1,6 @@ +/* eslint-disable global-require */ +/* eslint-disable strict */ + +module.exports = { + ...require('../examples/.eslintrc.json'), +};