summaryrefslogtreecommitdiffhomepage
path: root/README.md
diff options
context:
space:
mode:
authorJohannes Theiner <[email protected]>2025-12-18 11:53:40 +0100
committerGitHub <[email protected]>2025-12-18 11:53:40 +0100
commit2323eddbb126e0cc03ecffb176ba6cecc41f2753 (patch)
tree5e3817c1130e5c3b2f2195cc28524871cf4592fb /README.md
parente2a64e0534ec6cdfacaa2e70da3d65eca2776edb (diff)
parent911b773800976c41b4eafd6ad5a58594959d297c (diff)
downloadai-pulse-obsidian-plugin-2323eddbb126e0cc03ecffb176ba6cecc41f2753.tar.gz
ai-pulse-obsidian-plugin-2323eddbb126e0cc03ecffb176ba6cecc41f2753.zip
Merge pull request #164 from joethei/master
Include eslint config
Diffstat (limited to 'README.md')
-rw-r--r--README.md16
1 files changed, 6 insertions, 10 deletions
diff --git a/README.md b/README.md
index 23d9526..82bf6c6 100644
--- a/README.md
+++ b/README.md
@@ -7,7 +7,7 @@ The repo depends on the latest plugin API (obsidian.d.ts) in TypeScript Definiti
This sample plugin demonstrates some of the basic functionality the plugin API can do.
- Adds a ribbon icon, which shows a Notice when clicked.
-- Adds a command "Open Sample Modal" which opens a Modal.
+- Adds a command "Open modal (simple)" which opens a Modal.
- Adds a plugin setting tab to the settings page.
- Registers a global click event and output 'click' to the console.
- Registers a global interval which logs 'setInterval' to the console.
@@ -55,15 +55,11 @@ Quick starting guide for new plugin devs:
- Copy over `main.js`, `styles.css`, `manifest.json` to your vault `VaultFolder/.obsidian/plugins/your-plugin-id/`.
-## Improve code quality with eslint (optional)
+## Improve code quality with eslint
- [ESLint](https://eslint.org/) is a tool that analyzes your code to quickly find problems. You can run ESLint against your plugin to find common bugs and ways to improve your code.
-- To use eslint with this project, make sure to install eslint from terminal:
- - `npm install -g eslint`
-- To use eslint to analyze this project use this command:
- - `eslint main.ts`
- - eslint will then create a report with suggestions for code improvement by file and line number.
-- If your source code is in a folder, such as `src`, you can use eslint with this command to analyze all files in that folder:
- - `eslint ./src/`
+- This project already has eslint preconfigured, you can invoke a check by running`npm run lint`
+- Together with a custom eslint [plugin](https://github.com/eslint-plugin) for Obsidan specific code guidelines.
+- A GitHub action is preconfigured to automatically lint every commit on all branches.
## Funding URL
@@ -91,4 +87,4 @@ If you have multiple URLs, you can also do:
## API Documentation
-See https://github.com/obsidianmd/obsidian-api
+See https://docs.obsidian.md