From cdd0b6ed6d1a9e0b19038abfa2813137ab37da2d Mon Sep 17 00:00:00 2001 From: Franck Date: Mon, 3 Jan 2022 11:52:09 +1100 Subject: [PATCH] Remove dependency to external eslintrc --- examples/mainnet-poll-example/.eslintrc.json | 26 ++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/examples/mainnet-poll-example/.eslintrc.json b/examples/mainnet-poll-example/.eslintrc.json index 128cd29..6629872 100644 --- a/examples/mainnet-poll-example/.eslintrc.json +++ b/examples/mainnet-poll-example/.eslintrc.json @@ -1,5 +1,27 @@ { + "env": { + "es6": true, + "node": true, + "mocha": true, + "browser": true + }, "extends": [ - "../../.eslintrc.json" - ] + "plugin:@typescript-eslint/recommended", + "eslint:recommended" + ], + "parser": "@typescript-eslint/parser", + "parserOptions": { + "project": "./tsconfig.json", + "sourceType": "module" + }, + "rules": { + "@typescript-eslint/explicit-module-boundary-types": "off", + "@typescript-eslint/no-explicit-any": "off", + "no-redeclare": "off", + "no-unused-vars": "off", + "prefer-const": ["error", {"destructuring": "all"}], + "semi": ["error", "never"], + "no-extra-semi": "off", + "@typescript-eslint/no-extra-semi": "off" + } }