Commit b0047750 authored by Adam Parák's avatar Adam Parák 💬
Browse files

Merge branch 'eslint-rules-improv' into 'master'

Improvements to ESLint/Prettier rules, updates to package dependencies, and more...

See merge request inject/frontend!183
parents 9327c45e 1e370ef6
Loading
Loading
Loading
Loading

.eslintignore

deleted100644 → 0
+0 −5
Original line number Diff line number Diff line
router.ts
graphql/lib/**
shared/lib/**
*.generated.ts
vite.config.mts

.eslintrc.json

deleted100644 → 0
+0 −50
Original line number Diff line number Diff line
{
  "parser": "@typescript-eslint/parser",
  "parserOptions": {
    "project": true,
    "tsconfigRootDir": "."
  },
  "root": true,
  "extends": [
    "eslint:recommended",
    "standard",
    "prettier",
    "plugin:@typescript-eslint/recommended",
    "plugin:react/recommended",
    "plugin:react/jsx-runtime",
    "plugin:react-hooks/recommended"
  ],
  "plugins": ["@typescript-eslint", "consistent-default-export-name"],
  "env": {
    "es6": true,
    "node": true
  },
  "settings": {
    "react": {
      "version": "18.2.0"
    }
  },
  "rules": {
    "consistent-default-export-name/default-export-match-filename": "warn",
    "consistent-default-export-name/default-import-match-filename": [
      "warn",
      { "ignorePaths": ["**/*.svg", "**/*.svg?react"] }
    ],
    "@typescript-eslint/ban-ts-comment": "off",
    "react/function-component-definition": [
      2,
      {
        "namedComponents": "arrow-function"
      }
    ]
  },
  "ignorePatterns": ["dist", "node_modules", "examples", "scripts"],
  "overrides": [
    {
      "files": ["frontend/src/pages/**/*"],
      "rules": {
        "consistent-default-export-name/default-export-match-filename": 0
      }
    }
  ]
}
+3 −2
Original line number Diff line number Diff line
@@ -6,8 +6,9 @@
  "tabWidth": 2,
  "useTabs": false,
  "bracketSpacing": true,
  "bracketSameLine": true,
  "bracketSameLine": false,
  "jsxSingleQuote": true,
  "arrowParens": "avoid",
  "endOfLine": "auto"
  "endOfLine": "auto",
  "plugins": ["prettier-plugin-organize-imports"]
}
 No newline at end of file
+2 −5
Original line number Diff line number Diff line
{
  "editor.codeActionsOnSave": {
    "source.fixAll": "explicit"
  },
  "typescript.tsdk": ".yarn/sdks/typescript/lib",
  "javascript.updateImportsOnFileMove.enabled": "never",
  "typescript.updateImportsOnFileMove.enabled": "never",
@@ -9,7 +6,7 @@
    "**/.yarn": true,
    "**/.pnp.*": true
  },
  "eslint.nodePath": ".yarn/sdks",
  "prettier.prettierPath": ".yarn/sdks/prettier/index.cjs",
  "typescript.enablePromptUseWorkspaceTsdk": true
  "typescript.enablePromptUseWorkspaceTsdk": true,
  "eslint.nodePath": ".yarn/sdks"
}
+162 −162

File changed and moved.

Preview size limit exceeded, changes collapsed.

Loading