feature-sliced / steiger

Universal file structure and project architecture linter
https://www.npmjs.com/package/steiger
MIT License
18 stars 0 forks source link

Feature request: add warning mode #34

Open noveogroup-amorgunov opened 3 weeks ago

noveogroup-amorgunov commented 3 weeks ago

Hey. I have a feature request: I want to see errors in warning mode (like in eslint). This will allow you to see errors, but not crash in CI.

It could look like:

export default defineConfig({
  rules: {
    'forbidden-imports': 'warn'
  },
})
illright commented 3 weeks ago

Hi! I'm a bit hesitant to go forward with this, mostly after discovering the project https://github.com/bfanger/eslint-plugin-only-warn and reading its motivation in the readme. I've grown fond of the idea that all issues are issues, and if something is not an issue, it shouldn't be checked for.

What is your specific use case that would warrant having a warning as a diagnostic type?

noveogroup-amorgunov commented 2 weeks ago

What is your specific use case that would warrant having a warning as a diagnostic type?

@illright if u start new project, its good approach. But if I integrate FSD to existed project (or for example I want use steiger in project with FSD but have a lot of problems), I want to use incremental way.

And I want see warnings in CI