diff --git a/coral/.eslintrc.cjs b/coral/.eslintrc.cjs index 354c266fa8..3d9d510c23 100644 --- a/coral/.eslintrc.cjs +++ b/coral/.eslintrc.cjs @@ -7,7 +7,8 @@ module.exports = { "eslint:recommended", "plugin:react/recommended", "plugin:@typescript-eslint/recommended", - "plugin:react/jsx-runtime" + "plugin:react/jsx-runtime", + "prettier" ], "overrides": [ ], diff --git a/coral/package.json b/coral/package.json index ed44bdc0b1..9829aaeb2c 100644 --- a/coral/package.json +++ b/coral/package.json @@ -27,6 +27,7 @@ "@typescript-eslint/parser": "^5.40.1", "@vitejs/plugin-react": "^2.1.0", "eslint": "^8.25.0", + "eslint-config-prettier": "^8.5.0", "eslint-plugin-react": "^7.31.10", "prettier": "^2.7.1", "typescript": "^4.6.4", diff --git a/coral/pnpm-lock.yaml b/coral/pnpm-lock.yaml index 2f5c0fec69..8eb5dfcff9 100644 --- a/coral/pnpm-lock.yaml +++ b/coral/pnpm-lock.yaml @@ -7,6 +7,7 @@ specifiers: '@typescript-eslint/parser': ^5.40.1 '@vitejs/plugin-react': ^2.1.0 eslint: ^8.25.0 + eslint-config-prettier: ^8.5.0 eslint-plugin-react: ^7.31.10 prettier: ^2.7.1 react: ^18.2.0 @@ -25,6 +26,7 @@ devDependencies: '@typescript-eslint/parser': 5.40.1_z4bbprzjrhnsfa24uvmcbu7f5q '@vitejs/plugin-react': 2.1.0_vite@3.1.8 eslint: 8.25.0 + eslint-config-prettier: 8.5.0_eslint@8.25.0 eslint-plugin-react: 7.31.10_eslint@8.25.0 prettier: 2.7.1 typescript: 4.8.4 @@ -1084,6 +1086,15 @@ packages: engines: {node: '>=10'} dev: true + /eslint-config-prettier/8.5.0_eslint@8.25.0: + resolution: {integrity: sha512-obmWKLUNCnhtQRKc+tmnYuQl0pFU1ibYJQ5BGhTVB08bHe9wC8qUeG7c08dj9XX+AuPj1YSGSQIHl1pnDHZR0Q==} + hasBin: true + peerDependencies: + eslint: '>=7.0.0' + dependencies: + eslint: 8.25.0 + dev: true + /eslint-plugin-react/7.31.10_eslint@8.25.0: resolution: {integrity: sha512-e4N/nc6AAlg4UKW/mXeYWd3R++qUano5/o+t+wnWxIf+bLsOaH3a4q74kX3nDjYym3VBN4HyO9nEn1GcAqgQOA==} engines: {node: '>=4'}