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

chore(client): migrate eslint to 8.57.0, bump prettier to 3.3.3 #383

Merged
merged 2 commits into from
Aug 31, 2024
Merged
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
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ COPY --chown=node:node client/public ./client/public
COPY --chown=node:node client/typings ./client/typings
COPY --chown=node:node client/vcs ./client/vcs
COPY --chown=node:node client/tsconfig.json ./client/tsconfig.json
COPY --chown=node:node client/.eslintrc.js ./client/
COPY --chown=node:node client/.eslintrc.cjs ./client/
COPY --chown=node:node client/.prettierignore ./client/
COPY --chown=node:node client/.prettierrc ./client/

Expand Down
17 changes: 11 additions & 6 deletions client/.eslintrc.js → client/.eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,7 @@ module.exports = {
},
ignorePatterns: ['cypress', 'node_modules', 'build', 'public', 'assets'],
plugins: ['@typescript-eslint/eslint-plugin'],
extends: [
'plugin:@typescript-eslint/recommended',
'prettier/@typescript-eslint',
'plugin:prettier/recommended'
],
extends: ['plugin:@typescript-eslint/recommended', 'prettier'],
env: {
browser: true
},
Expand All @@ -20,5 +16,14 @@ module.exports = {
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-explicit-any': 'off'
}
},
overrides: [
{
files: ['cypress/**/*.ts', 'cypress.config.ts'],
parserOptions: {
project: ['./cypress/tsconfig.json'],
tsconfigRootDir: __dirname
}
}
]
};
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module.exports = {
ignorePatterns: ['!**/*'],
extends: ['../.eslintrc.js'],
extends: ['../.eslintrc.cjs'],
overrides: [
{
files: ['*.ts'],
Expand Down
5 changes: 1 addition & 4 deletions client/cypress/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
{
"extends": "../tsconfig.json",
"compilerOptions": {
"isolatedModules": false,
"target": "es5",
"lib": ["es5", "dom"],
"types": ["cypress"]
},
"include": ["**/*", "../src/**/*"]
"include": ["**/*.ts", "../cypress.config.ts"]
}
Loading