diff --git a/.gitignore b/.gitignore index d531217a9..00d144cca 100644 --- a/.gitignore +++ b/.gitignore @@ -63,7 +63,4 @@ node_modules /phasher dist .DS_Store -/.local* - -.eslintcache -.stylelintcache \ No newline at end of file +/.local* \ No newline at end of file diff --git a/ui/v2.5/.env b/ui/v2.5/.env index 6e49b46e4..6ce384e5c 100644 --- a/ui/v2.5/.env +++ b/ui/v2.5/.env @@ -1,2 +1 @@ BROWSER=none -ESLINT_NO_DEV_ERRORS=true diff --git a/ui/v2.5/.eslintrc.json b/ui/v2.5/.eslintrc.json deleted file mode 100644 index fc12fb963..000000000 --- a/ui/v2.5/.eslintrc.json +++ /dev/null @@ -1,79 +0,0 @@ -{ - "env": { - "browser": true - }, - "parser": "@typescript-eslint/parser", - "parserOptions": { - "project": "./tsconfig.json" - }, - "plugins": ["@typescript-eslint", "jsx-a11y"], - "extends": [ - "airbnb-typescript", - "plugin:import/recommended", - "plugin:react/recommended", - "plugin:react/jsx-runtime", - "airbnb/hooks", - "prettier" - ], - "settings": { - "react": { - "version": "detect" - } - }, - "ignorePatterns": [ - "node_modules/", - "src/core/generated-graphql.ts", - "src/pluginApi.d.ts" - ], - "rules": { - "@typescript-eslint/lines-between-class-members": "off", - "@typescript-eslint/naming-convention": [ - "error", - { - "selector": "interface", - "format": ["PascalCase"], - "custom": { - "regex": "^I[A-Z]", - "match": true - } - } - ], - "@typescript-eslint/no-explicit-any": 2, - "@typescript-eslint/no-use-before-define": [ - "error", - { "functions": false, "classes": false } - ], - "import/extensions": [ - "error", - "ignorePackages", - { - "js": "never", - "jsx": "never", - "ts": "never", - "tsx": "never" - } - ], - "import/named": "off", - "import/namespace": "off", - "import/no-unresolved": "off", - "lines-between-class-members": "off", - "no-nested-ternary": "off", - "prefer-destructuring": [ - "error", - { - "VariableDeclarator": { - "array": false, - "object": true - }, - "AssignmentExpression": { - "array": false, - "object": false - } - } - ], - "react/display-name": "off", - "react/prop-types": "off", - "react/style-prop-object": ["error", { "allow": ["FormattedNumber"] }], - "spaced-comment": ["error", "always", { "markers": ["/"] }] - } -} diff --git a/ui/v2.5/.gitignore b/ui/v2.5/.gitignore index 1d80f5fa8..824bfd26b 100755 --- a/ui/v2.5/.gitignore +++ b/ui/v2.5/.gitignore @@ -16,4 +16,7 @@ src/core/generated-graphql.ts .env.local .env.development.local .env.test.local -.env.production.local \ No newline at end of file +.env.production.local + +.eslintcache +.stylelintcache \ No newline at end of file diff --git a/ui/v2.5/README.md b/ui/v2.5/README.md index ece6502bf..c2b23c852 100755 --- a/ui/v2.5/README.md +++ b/ui/v2.5/README.md @@ -29,7 +29,7 @@ See the section about [deployment](https://facebook.github.io/create-react-app/d ### `npm run format` -Formats the whitespace of all typescript and scss code with prettier, to ease editing and ensure a common code style. +Formats the whitespace of all typescript and scss code with biome, to ease editing and ensure a common code style. Should ideally be run before all frontend PRs. @@ -39,7 +39,7 @@ Should ideally be run before all frontend PRs. If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project. -Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own. +Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own. You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it. diff --git a/ui/v2.5/package.json b/ui/v2.5/package.json index 9364cb555..785f869e0 100644 --- a/ui/v2.5/package.json +++ b/ui/v2.5/package.json @@ -15,8 +15,6 @@ "lint:css": "stylelint --cache \"src/**/*.scss\"", "lint:js": "biome check src/", "check": "tsc --noEmit", - "eslint": "eslint", - "prettier": "prettier", "stylelint": "stylelint", "format": "biome format --write . ../../graphql", "format-check": "biome format --check . ../../graphql",