Allow specification of config within package.json #4543
Replies: 3 comments 5 replies
-
It's a good suggestion, but Rome is not there yet - it's not able to read the Although, this proposal comes with two big downsides:
|
Beta Was this translation helpful? Give feedback.
-
Could you share your current Rome configuration? This could help to identify better defaults? |
Beta Was this translation helpful? Give feedback.
-
Here it is: {
"vcs": {
"enabled": true,
"clientKind": "git",
"useIgnoreFile": true
},
"linter": {
"rules": {
"recommended": true,
"style": {
"noCommaOperator": "off"
}
}
}
} It's mostly default except for enabling VCS to allow the "useIgnoreFile" which saves me specifying ignoring things I've already specified once. This is an absolutely wonderful feature and I thank you for adding it. Also to the linter configuration I've added <button
type="button"
onClick={() => (setSelected(i), setOpen(!open))}
onKeyDown={() => (setSelected(i), setOpen(!open))}
className={`${styles.button} h-auto input`}
>
{option.name}
</button> |
Beta Was this translation helpful? Give feedback.
-
I find most of the default setting of Rome to be wonderful, with that being the case pretty much the only thing I need to enable and configure is the
vcs
settings. In turn I end up with a rather tinyrome.json
almost seems wasteful having a whole file just for it.Hence my proposition, allow me to place the 4 line configuration object in my
package.json
.Beta Was this translation helpful? Give feedback.
All reactions