From e00eda997a68da722f16635840eb8b97ba74127d Mon Sep 17 00:00:00 2001 From: Abhinav Date: Tue, 14 Jun 2022 11:45:15 +0530 Subject: [PATCH] update eslintrc --- .eslintrc | 64 ++++++++++++++++++++++++++++++++++++++++++++++--------- 1 file changed, 54 insertions(+), 10 deletions(-) diff --git a/.eslintrc b/.eslintrc index 11643ef33..f7132a38a 100644 --- a/.eslintrc +++ b/.eslintrc @@ -1,12 +1,56 @@ { - "root": true, - "parser": "@typescript-eslint/parser", - "plugins": [ - "@typescript-eslint" - ], - "extends": [ - "eslint:recommended", - "plugin:@typescript-eslint/eslint-recommended", - "plugin:@typescript-eslint/recommended" - ] + "root": true, + "env": { + "browser": true, + "es2021": true, + "node": true + }, + "extends": [ + "plugin:react/recommended", + "eslint:recommended", + "plugin:@typescript-eslint/eslint-recommended", + "google", + "prettier" + ], + "parser": "@typescript-eslint/parser", + "parserOptions": { + "ecmaFeatures": { + "jsx": true + }, + "ecmaVersion": 12, + "sourceType": "module" + }, + "plugins": ["react", "@typescript-eslint"], + "rules": { + "indent": "off", + "class-methods-use-this": "off", + "react/prop-types": "off", + "react/display-name": "off", + "react/no-unescaped-entities": "off", + "no-unused-vars": "off", + "@typescript-eslint/no-unused-vars": ["error"], + "require-jsdoc": "off", + "valid-jsdoc": "off", + "max-len": "off", + "new-cap": "off", + "no-invalid-this": "off", + "eqeqeq": "error", + "object-curly-spacing": ["error", "always"], + "space-before-function-paren": "off", + "operator-linebreak": [ + "error", + "after", + { "overrides": { "?": "before", ":": "before" } } + ] + }, + "settings": { + "react": { + "version": "detect" + } + }, + "globals": { + "JSX": "readonly", + "NodeJS": "readonly", + "ReadableStreamDefaultController": "readonly" + } }