aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMiodec <[email protected]>2024-07-22 13:15:16 +0200
committerMiodec <[email protected]>2024-07-22 13:15:16 +0200
commitd812839dab0787f867673f71b7257ba3e7b96b03 (patch)
tree40fbd2512131d58d3a4d606644ea0c05575dfceb
parent7f772c1cac88d9f74f94152c37bf4444fe09258c (diff)
downloadmonkeytype-d812839dab0787f867673f71b7257ba3e7b96b03.tar.gz
monkeytype-d812839dab0787f867673f71b7257ba3e7b96b03.zip
yeet
-rw-r--r--oldeslintrc.json112
1 files changed, 0 insertions, 112 deletions
diff --git a/oldeslintrc.json b/oldeslintrc.json
deleted file mode 100644
index 734ac1dcf..000000000
--- a/oldeslintrc.json
+++ /dev/null
@@ -1,112 +0,0 @@
-{
- "env": {
- "browser": true,
- "es2021": true,
- "node": true
- },
- "globals": {
- "$": "readonly",
- "jQuery": "readonly",
- "html2canvas": "readonly",
- "ClipboardItem": "readonly",
- "grecaptcha": "readonly"
- },
- "ignorePatterns": [
- "backend/__tests__/**/*",
- "backend/jest.config.ts",
- "**/*.css",
- "**/*.scss",
- "frontend/static/js/*",
- "frontend/__tests__/**/*",
- "frontend/jest.config.ts"
- ],
- "extends": [
- "eslint:recommended",
- "plugin:json/recommended",
- "plugin:import/recommended",
- "plugin:import/typescript",
- "prettier"
- ],
- "plugins": ["json", "require-path-exists", "@typescript-eslint"],
- "rules": {
- "json/*": ["error"],
- "indent": ["off"],
- "no-empty": ["error", { "allowEmptyCatch": true }],
- "no-var": 2,
- "no-duplicate-imports": ["error"],
- // "import/default": "off",
- "import/no-unresolved": [
- "error",
- {
- "ignore": ["^./constants/firebase-config$"]
- }
- ],
- "import/no-duplicates": "off",
- "no-mixed-operators": [
- "error",
- {
- "groups": [["+", "??"]]
- }
- ]
- },
- "settings": {
- "import/resolver": {
- "typescript": {
- "alwaysTryTypes": true,
- "project": ["frontend/tsconfig.json", "backend/tsconfig.json"]
- },
- "node": true
- }
- },
- "overrides": [
- {
- // enable the rule specifically for TypeScript files
- "files": ["*.ts", "*.tsx"],
- "extends": [
- "plugin:@typescript-eslint/eslint-recommended",
- "plugin:@typescript-eslint/recommended",
- "plugin:@typescript-eslint/strict"
- // "plugin:@typescript-eslint/recommended-requiring-type-checking"
- ],
- "rules": {
- "@typescript-eslint/explicit-function-return-type": ["error"],
- "@typescript-eslint/ban-ts-comment": "off",
- "@typescript-eslint/no-empty-function": "warn",
- "@typescript-eslint/no-unused-vars": [
- "warn",
- { "argsIgnorePattern": "^(_|e|event)", "varsIgnorePattern": "^_" }
- ],
- "@typescript-eslint/no-var-requires": "error",
- "@typescript-eslint/no-this-alias": "off",
- "@typescript-eslint/no-misused-promises": [
- "error",
- {
- "checksVoidReturn": false
- }
- ],
- "@typescript-eslint/promise-function-async": "warn",
- "@typescript-eslint/no-floating-promises": "error",
- "@typescript-eslint/strict-boolean-expressions": [
- "error",
- { "allowNullableBoolean": true, "allowNullableNumber": true }
- ],
- //
- "@typescript-eslint/non-nullable-type-assertion-style": "off",
- "@typescript-eslint/no-unnecessary-condition": "off",
- "@typescript-eslint/consistent-type-definitions": ["warn", "type"],
- "@typescript-eslint/no-invalid-void-type": "off"
- },
- "parserOptions": {
- "ecmaVersion": 12,
- "sourceType": "module",
- "project": "**/tsconfig.json"
- }
- },
- {
- "files": ["backend/**/*.ts"],
- "rules": {
- "eqeqeq": "error"
- }
- }
- ]
-}