diff options
| author | ojacobson <ojacobson@noreply.codeberg.org> | 2025-06-11 18:27:15 +0200 |
|---|---|---|
| committer | ojacobson <ojacobson@noreply.codeberg.org> | 2025-06-11 18:27:15 +0200 |
| commit | a6ae7ee0170e2235ffc9c4eacddae2fb6878ad07 (patch) | |
| tree | b183dc5557b9e6c6d46385581f74d30001d06065 /eslint.config.js | |
| parent | 71919b461f25bed1bb4708b0494d603de373ae11 (diff) | |
| parent | c0f3495ea54d12b2bad9b937ea9334594d0aa248 (diff) | |
Consolidate project linting into tool scripts.
The new `tools/check-lint` script checks lints across _all_ lintable files - JS (through `eslint`), and Rust (through `clippy` and `cargo check`). It also checks `eslint` against the whole project, not just against what's in the `ui` subdir, which means it now catches lintable issues in various JS config files.
This was originally part of [another proposal][pr-6]. I've broken it out to make the intent clearer, and to make the proposal easier to get a handle on in isolation from other, related changes. Thanks to @wlonk for their input on this!
[pr-6]: https://codeberg.org/ojacobson/pilcrow/pulls/6
Merges prop/lint-checks into main.
Diffstat (limited to 'eslint.config.js')
| -rw-r--r-- | eslint.config.js | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/eslint.config.js b/eslint.config.js index 7d23626..57b0875 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -1,3 +1,10 @@ import prettier from 'eslint-config-prettier'; import svelte from 'eslint-plugin-svelte'; -export default [prettier, ...svelte.configs['flat/prettier']]; + +export default [ + prettier, + ...svelte.configs['flat/prettier'], + { + ignores: ['target/', 'coverage/'], + }, +]; |
