Meteor Style Guide - Lint tool configurations (jshint, jscs, eslint)

瀏覽次數:1,159 次
跳到第一則未讀訊息

Stephan Hochhaus

未讀,
2015年2月19日 上午9:31:332015/2/19
收件者:meteo...@googlegroups.com
Hello fellow Meteorites,

I am preparing a talk on coding styles in Meteor and naturally I came across the official style guide[1] as well as Morten's jshintrc[2]. 
In order to avoid re-inventing anything that is already a well established practice I would like to know if there are any "official" MDG style linting files (either jshint, jscs, or aslant) available.

One other thing I would like to know is how you deal with globals that get introduced by either collection names or packages. Do you add them manually to your linting configurations or do you have a better way of dealing with them?

Eventually I will publish both the slides and the code for getting started with stylish Meteor code on Github[3].

Thanks!
Stephan

Abigail Watson

未讀,
2015年2月20日 下午4:08:042015/2/20
收件者:meteo...@googlegroups.com
A few config files for setting up IDEs to implement the MDG styleguide would be great, too. 

Some WebStorm Configs
https://github.com/awatson1978/meteor-cookbook/blob/master/cookbook/webstorm.md#settings--code-style--javascript

Atom Beautify Package

Stephan Hochhaus

未讀,
2015年2月27日 凌晨3:50:302015/2/27
收件者:meteo...@googlegroups.com
Seeing there is an .eslintignore file in the official Meteor repo I have hopes there might be an official linting config somewhere :)
Let's continue on the forums.

回覆所有人
回覆作者
轉寄
0 則新訊息