question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[eslint] eslint-plugin-lit

See original GitHub issue

https://www.npmjs.com/package/eslint-plugin-lit is excellent, but we don’t include it in our config. Our config should work also when you’re not using lit, but since it’s our default recommendation I think we should offer this somehow.

How shall we do this? A separate package? I don’t think an eslint config can have multiple exports, right?

The create package would also need to update and include the correct linting configuration

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
LarsDenBakkercommented, Oct 28, 2019

Now that I think about it, how bad is it to just include this plugin in the default config? Most of it’s users will use lit, and for those who don’t the plugin just won’t do anything. There are lots of linting options that won’t ever apply to many people.

Our linting doesn’t include that much special anyway, it’s easy for people to assemble their own.

The lit plugin isn’t lit-element specific either, so for example people using haunted will benefit from it as well.

Our other tools are lit-biased here and there as well.

0reactions
LarsDenBakkercommented, Nov 20, 2019

Can you disable specific linting rules per package? I think option 1 is ok for now, it’s a more specialist use case anyway.

Read more comments on GitHub >

github_iconTop Results From Across the Web

eslint-plugin-lit - npm
eslint -plugin-lit. TypeScript icon, indicating that this package has built-in type declarations · Readme · Code Beta · 3 Dependencies · 32 ...
Read more >
43081j/eslint-plugin-lit: lit-html support for ESLint - GitHub
ESLint plugin for Lit. Install. Assuming you already have ESLint installed, run: # npm npm install eslint- ...
Read more >
EsLint Plugin Lit A11y: Overview - Open Web Components
Accessibility linting plugin for lit-html. Most of the rules are ported from eslint-plugin-jsx-a11y, and made to work with lit-html templates and custom ...
Read more >
eslint-plugin-lit - npm Package Health Analysis - Snyk
Ensure you're using the healthiest npm packages. Snyk scans all the packages in your projects for vulnerabilities and provides automated fix advice.
Read more >
Working with Plugins - ESLint - Pluggable JavaScript Linter
So if this plugin were named eslint-plugin-myplugin , then in your ... In the initial list of problems, the fix property will refer...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found