From 737344a72d23dc97b0d0e73cc4ab7fdffd0fbf49 Mon Sep 17 00:00:00 2001 From: Brendan F Date: Sun, 14 May 2023 23:12:27 -0700 Subject: Merge in react app code From sluchajfun and youtube-heardle-template --- .eslintrc.js | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 .eslintrc.js (limited to '.eslintrc.js') diff --git a/.eslintrc.js b/.eslintrc.js new file mode 100644 index 0000000..3fccc68 --- /dev/null +++ b/.eslintrc.js @@ -0,0 +1,45 @@ +module.exports = { + env: { + browser: true, + es2021: true, + }, + extends: [ + "plugin:react/recommended", + "plugin:@typescript-eslint/recommended", + "plugin:import/errors", + "plugin:import/warnings", + "plugin:import/typescript", + ], + parser: "@typescript-eslint/parser", + parserOptions: { + ecmaFeatures: { + jsx: true, + }, + ecmaVersion: "latest", + sourceType: "module", + }, + plugins: ["react", "@typescript-eslint"], + rules: { + "no-console": [0], + "no-param-reassign": [0], + "no-else-return": [0], + "no-confusing-arrow": [0], + "no-prototype-builtins": [0], + + // "prettier/prettier": [2], + + "import/named": [0], + "import/first": [0], + "import/prefer-default-export": [0], + "import/no-extraneous-dependencies": [0], + "import/no-named-as-default": [0], + "import/namespace": [0], + + "react/prop-types": [0], + "react/display-name": [0], + + "@typescript-eslint/no-empty-interface": [0], + + "@typescript-eslint/explicit-module-boundary-types": [0], + }, +}; -- cgit v1.2.3