Comments (4)
Since I use same conventions, here are my JSHint configs (with comments)
https://gist.github.com/nkbt/7410960 - for NodeJS
https://gist.github.com/nkbt/7410965 - for Browser
from javascript.
It looks like those are not fully compatible with described conventions. I had a look at NodeJS config and it has "indent": 4
and here the conventions states: Use soft tabs set to 2 spaces. But they look good as a starting point.
from javascript.
You are right, Gargol. I reckon it's the only difference though. I still prefer to have 4 spaces indent to have better visual separation.
from javascript.
Thanks for checking out the guide!
Checkout out our sublime linter config file. It uses jshint options that are compliant with the guides conventions. https://github.com/airbnb/javascript/blob/master/linters/SublimeLinter/SublimeLinter.sublime-settings
🍻
from javascript.
Related Issues (20)
- [spam]
- Inconsistent Code Style Enforcement in React Components HOT 2
- [spam]
- Add Specificity, Responsiveness, and Common Pitfalls Sections to CSS-in-JavaScript Style Guide HOT 4
- [spam]
- Create a rule to prohibit the use of the `test` function in regular expressions HOT 1
- [spam]
- [spam]
- DEPRECATED : 19.5 End files with a single newline character. eslint: eol-last HOT 1
- [spam]
- [spam]
- Not Compatible with the Latest version of eslint HOT 1
- [spam]
- Does the "eslint-config-airbnb" contains the style set in "Airbnb CSS-in-JavaScript Style Guide"? HOT 1
- [spam]
- [spam]
- [spam]
- [spam]
- [spam]
- Incorrect constant export example HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from javascript.