cursorless icon indicating copy to clipboard operation
cursorless copied to clipboard

Add lint rules from `eslint-plugin-import`

Open pokey opened this issue 3 years ago • 0 comments

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 that scripts can use devDependencies, but all other files can only use dependencies
  • [ ] ~~should probably add the converse of no-extraneous-dependencies, which is https://github.com/depcheck/depcheck~~ Probably better to just let knip do 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 using unicorn/prefer-node-protocol

pokey avatar Nov 18 '22 15:11 pokey