Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update eslint to latest versions #334

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .eslintignore

This file was deleted.

41 changes: 0 additions & 41 deletions .eslintrc.json

This file was deleted.

52 changes: 52 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
import eslint from "@eslint/js";
import tseslint from "typescript-eslint";
import reactPlugin from "eslint-plugin-react";
import nodePlugin from "eslint-plugin-n";
import flowtypePlugin from "eslint-plugin-flowtype";

export default tseslint.config(
// Load in recommended eslint configs
eslint.configs.recommended,

// Load in recommended tslint configs
tseslint.configs.recommended,

// Plugins and rules overrides
{
plugins: {
"@typescript-eslint": tseslint.plugin,
react: reactPlugin,
node: nodePlugin,
flowtype: flowtypePlugin,
},
rules: {
// Change 'off' to 'warn' to work out where cleanup is required
// Change 'off' to 'error' for show-stopper issues

"@/no-undef": "off",

"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/no-require-imports": "off",
"@typescript-eslint/no-this-alias": "off",
"@typescript-eslint/no-unused-expressions": "off",
"@typescript-eslint/no-unused-vars": "off",

"no-cond-assign": "off",
"no-constant-binary-expression": "off",
"no-constant-condition": "off",
"no-empty": "off",
"no-fallthrough": "off",
"no-func-assign": "off",
"no-prototype-builtins": "off",
"no-redeclare": "off",
"no-undef": "off",
"no-unsafe-finally": "off",
"no-unsafe-optional-chaining": "off",
"no-useless-escape": "off",

"node/no-unsupported-features/node-builtins": "off",

"react/display-name": "off",
},
}
);
13 changes: 7 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"graphql-refresh": "graphql-codegen --config graphql-refresh.yml",
"prettier-write": "prettier --write .",
"prettier-check": "prettier --check .",
"lint": "eslint . --ext .ts --ext .tsx",
"lint": "eslint",
"watch-client": "yarn --cwd 'client' watch 2>&1",
"watch-bootstrapping-lambda": "yarn --cwd 'bootstrapping-lambda' watch 2>&1",
"watch": "run-p --print-label watch-client watch-bootstrapping-lambda",
Expand All @@ -34,6 +34,7 @@
"generate-appsync-auth-token": "ts-node-dev bootstrapping-lambda/generateAppSyncAuthToken.ts"
},
"devDependencies": {
"@eslint/js": "^9.17.0",
"@graphql-codegen/cli": "5.0.2",
"@graphql-codegen/introspection": "1.18.0",
"@graphql-codegen/typescript": "1.17.11",
Expand All @@ -43,12 +44,11 @@
"@types/node": "^22.10.1",
"@types/node-fetch": "^2.6.3",
"@types/prompts": "^2.0.14",
"@typescript-eslint/eslint-plugin": "^4.11.1",
"@typescript-eslint/parser": "^4.11.1",
"esbuild": "^0.14.18",
"eslint": "^7.16.0",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-react": "^7.21.5",
"eslint": "^9.17.0",
"eslint-plugin-flowtype": "^8.0.3",
"eslint-plugin-n": "^17.15.1",
"eslint-plugin-react": "^7.37.3",
"husky": "^7.0.0",
"jest": "^26.6.3",
"lint-staged": ">=10",
Expand All @@ -57,6 +57,7 @@
"ts-jest": "^26.5.4",
"tsafe": "^1.0.1",
"typescript": "^5.7.2",
"typescript-eslint": "^8.18.2",
"wsrun": "^5.2.4",
"yarn-run-all": "^3.1.1"
},
Expand Down
Loading
Loading