cursorless
cursorless copied to clipboard
Add lint rules from `eslint-plugin-import`
https://github.com/import-js/eslint-plugin-import/
Raised in https://github.com/cursorless-dev/cursorless/pull/1076/files#r1003316897
- [ ] https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/order.md
- [ ]
import/no-extraneous-dependencies. Might want to configure so thatscriptscan usedevDependencies, but all other files can only usedependencies - [ ] ~~should probably add the converse of
no-extraneous-dependencies, which is https://github.com/depcheck/depcheck~~ Probably better to just letknipdo that; see #1414 - [ ] enable recommended linters for
eslint-plugin-import - [ ] Disallow default imports. These don't play nicely with renames across module boundaries when you're using a barrel
- [ ] if there’s a barrel in a directory, disallow importing from anything within that directory other than barrel?
- [ ]
node:prefix usingunicorn/prefer-node-protocol