Update to the latest ESLint and Prettier#1114
Conversation
|
BundleMonUnchanged files (133)
No change in files bundle size Final result: ✅ View report in BundleMon website ➡️ |
1a19470 to
49cbea4
Compare
|
Warning Review the following alerts detected in dependencies. According to your organization's Security Policy, it is recommended to resolve "Warn" alerts. Learn more about Socket for GitHub.
|
|
@lorisleiva, I think I heard you complaining about Prettier in another repo? This pr might be helpful. |
fda35c8 to
dfb2fab
Compare
49cbea4 to
f5e96ab
Compare
f5e96ab to
d320734
Compare
dfb2fab to
ae1c4e9
Compare
64c455d to
e11a5d3
Compare
|
Pretty sure that documentation build error will go away once we publish a new canary from the previous PR and then update this PR to use it. |
| import solanaConfig from '@solana/eslint-config-solana'; | ||
| import solanaJestConfig from '@solana/eslint-config-solana/jest'; | ||
|
|
||
| export default [ | ||
| ...solanaConfig, | ||
| ...solanaJestConfig, | ||
| { | ||
| rules: { | ||
| '@typescript-eslint/no-base-to-string': 'off', | ||
| '@typescript-eslint/no-unsafe-argument': 'off', | ||
| '@typescript-eslint/no-unsafe-assignment': 'off', | ||
| '@typescript-eslint/no-unsafe-call': 'off', | ||
| '@typescript-eslint/no-unsafe-enum-comparison': 'off', | ||
| '@typescript-eslint/no-unsafe-member-access': 'off', | ||
| '@typescript-eslint/no-unsafe-return': 'off', | ||
| '@typescript-eslint/only-throw-error': 'off', | ||
| '@typescript-eslint/prefer-promise-reject-errors': 'error', | ||
| '@typescript-eslint/restrict-plus-operands': 'error', | ||
| '@typescript-eslint/restrict-template-expressions': 'error', | ||
| '@typescript-eslint/unbound-method': 'off', | ||
| 'jest/expect-expect': [ | ||
| 'error', | ||
| { | ||
| assertFunctionNames: ['expect', 'expectNewPreOffset', 'expectNewPostOffset'], | ||
| }, | ||
| ], | ||
| }, | ||
| }, | ||
| ]; |
There was a problem hiding this comment.
Should we consider updating @solana/eslint-config-solana with these? I've been using @solana/eslint-config-solana directly lately for Codama & program repos and it would be nice if we were aligned on all these projects out-of-the-box.
There was a problem hiding this comment.
Yeah, that was totally the idea. You'll notice that most of these are 'off' and the reason for that is this: #13
The ones that ended up 'error' are, as you've noticed, just things that should have been moved into the common config.
ae1c4e9 to
0769816
Compare
e11a5d3 to
a59b071
Compare
a59b071 to
2d88dd5
Compare
0769816 to
109c78e
Compare
2d88dd5 to
8332305
Compare
8332305 to
95820e2
Compare
|
Documentation Preview: https://kit-docs-4i3brt09z-anza-tech.vercel.app |
|
Because there has been no activity on this PR for 14 days since it was merged, it has been automatically locked. Please open a new issue if it requires a follow up. |

Problem
This stuff was all super behind, and required updating of the upstream configs, some reorganizing of how we import the
eslint.config, and some fixing of new lint violations.Test Plan