Skip to content
This repository has been archived by the owner on Jul 12, 2023. It is now read-only.

.readable.json with empty rules should override default.readable.json #6

Open
Illyism opened this issue Apr 21, 2020 · 1 comment
Open

Comments

@Illyism
Copy link
Contributor

Illyism commented Apr 21, 2020

Issue

Starting a new project with blank rules as below

{
  "pathes": [
    "src/"
  ],
  "rules": {}
}

I think the expected output is that the test will pass. As there is no configuration here that it should extend or include a base config file.

Removing a rule that is now in the default would mean having to set that rule manually to "false". This might be possible but it will cause issues if we add rules in the future, as package users would require to keep up with new rules at every upgrade in orde to disable them.

@denys-potapov
Copy link
Contributor

Not sure on it. Now --init inits the file with all the rules on, and you can change them to false. Probably something with --init-exclude all?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants