Do you configure your linter with customs globals? If yes, please reply with your reasoning!
-
Show this thread
-
Context: In Rome, I want to allow configuration to specify custom global variables, but I don't want built-in presets for Jest, Jasmine etc.
2 replies 2 retweets 6 likesShow this thread -
Replying to @sebmck
Don’t build presets, they’re a nuisance to maintain. If Rome is awesome, which it sounds like it is, on first run it’ll say “hey these are your globals! Is this on purpose?” and update config if you say yes.
1 reply 0 retweets 5 likes -
-
Replying to @sebmck @mikesherov
At least I recall jscs setup running rules and choosing the ones that didn't result in errors.
1 reply 0 retweets 1 like -
Replying to @sebmck
Yes JSCS had a mode where it ran your code against multiple presets and found out which one errored least and asked if you wanted that one. A key insight is “you can discover user intent by imagining their ‘errors’ really aren’t ‘errors’” Applies to globals for sure!
2 replies 0 retweets 4 likes -
Replying to @mikesherov @sebmck
Btw what AST does Rome use? Shift? Babylon? Something else like a control flow graph?
1 reply 0 retweets 1 like
babel-parser format with changes. Flow AST nodes are prefixed with Flow. Removed a bunch of nodes like ClassBody. Bunch of other changes I can't completely remember.
-
-
Replying to @sebmck @mikesherov
There is a control flow/type graph but it's not exposed anywhere right now. Also a lot of work to be done to make it functional/stable.
0 replies 0 retweets 2 likesThanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
he/him 