generated from obsidianmd/obsidian-sample-plugin
-
Notifications
You must be signed in to change notification settings - Fork 12
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
Internal: Use eslint
to improve code readability
#242
Labels
refactoring
Rearranging internal stuff that does not show so much to the user.
Milestone
Comments
Taitava
added
the
refactoring
Rearranging internal stuff that does not show so much to the user.
label
Jul 17, 2022
Taitava
added a commit
that referenced
this issue
Jul 17, 2022
Taitava
added a commit
that referenced
this issue
Jul 17, 2022
Contains just the configuration for eslint. Code changes will be made in a later commit. Similar changes were made to obsidian-sample-plugin: obsidianmd/obsidian-sample-plugin@6fdd374 Exception: I needed to add "eslint": "8.20.0" myself to package.json.
Taitava
added a commit
that referenced
this issue
Jul 17, 2022
I used the following command to make these fixes automatically: eslint .\src\ --fix I didn't do any fixes indicated by eslint that need to be applied manually. That can be done in a later commit.
Taitava
added a commit
that referenced
this issue
Jul 17, 2022
'lib' contains code written by others (copied from the internet), and I want to minimize all changes to that kind of code. When there are fewer changes, it makes it easier to compare the code to the original source, if needed. Also bringing updates from the original source is easier.
Taitava
added a commit
that referenced
this issue
Jul 17, 2022
…onfig.js. I found this solution from: https://stackoverflow.com/a/50894051/2754026
Taitava
added a commit
that referenced
this issue
Jul 17, 2022
Taitava
added a commit
that referenced
this issue
Jul 17, 2022
I didn't replace all 'anys' because in some cases replacing them caused hard to fix TypeScript compiler errors.
Taitava
added a commit
that referenced
this issue
Jul 17, 2022
I didn't replace most of 'Objects' because in some cases replacing them caused hard to fix TypeScript compiler errors.
Taitava
added a commit
that referenced
this issue
Jul 17, 2022
Taitava
added a commit
that referenced
this issue
Jul 17, 2022
Done. |
Taitava
added a commit
that referenced
this issue
Jul 22, 2022
Taitava
added a commit
that referenced
this issue
Mar 4, 2023
The error was: ESLint: Unexpected any. Specify a different type.(@typescript-eslint/no-explicit-any)
Taitava
added a commit
that referenced
this issue
Mar 19, 2023
I didn't create an issue for this, but let's say it relates to an already closed and released issue #242.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
obsidianmd/obsidian-sample-plugin@6fdd374
The text was updated successfully, but these errors were encountered: