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.

Feature Request: Rule Sets

See original GitHub issue

I find that some rules are rules I want while developing day-to-day, and some I would prefer to run periodically. A good example is arrow-body-style when building out React components - Temporarily adding some logging before rendering means changing between implicit and explicit return and the addition of curly braces. I would prefer to allow both day-to-day, however this is something I would want to run before a release. It might be nice to allow rules to be gathered into named sets that can easily be toggled on or off. One set could contain ongoing rules and one rules that are run occasionally. Obviously I can do this on an individual basis, but doing to as a set would make more sense.

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
mysticateacommented, Feb 25, 2017

There are some approaches.

  1. Prepare several .eslintrc files. For example: eslint src and eslint src --config .eslintrc-release.json
  2. Use .eslintrc.js and tweak configuration by environment variables such as process.env.NODE_ENV.
1reaction
platinumazurecommented, Feb 25, 2017

I agree that multiple configurations is the best way to go. To minimize duplication in your configuration, you can have one primary configuration file and then have others that extend that file and only do minor tweaks, so that most of the configuration is in the primary file.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Feature Request, user input rule sets - TechNet - Microsoft
The problem that I have with this is that I have no ability to direct ATA the way I want to. ATA directs...
Read more >
Feature Request: Rule Sets [Archive] - Lone Wolf Development ...
I wanted to make sure you had already tried the Duplicate Game System option in the Tools menu, keeping each campaign as a...
Read more >
Labels for rules within a ruleset - PagerDuty Community
As my global rulesets become more complicated, I'd really like the ability to give a name to each rule so I can know...
Read more >
Rules | Features | ObservePoint
Rules enable you to set custom parameters and test tag presence, variable presence, and data formatting of analytics and marketing tags against those...
Read more >
possibility to enable / disable specific rules sets · Issue #3315 ...
I have several rule sets configured. For example: Rule Set 1. Rule Set 2. Rule Set 3. Now I want to trouble shoot...
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