javascript-style-guide
javascript-style-guide copied to clipboard
:art: Javascript styleguide followed by us here at Pagar.me
## Context We are using mongodb's `_id` identifier, but our linter rules do not support this. Rule to [allow underscore dangle on specific variables](https://github.com/eslint/eslint/blob/master/docs/rules/no-underscore-dangle.md#allow).
Recebi esse warning depois de rodar o lint da pagar.me. (node:9018) [ESLINT_LEGACY_OBJECT_REST_SPREAD] DeprecationWarning: The 'parserOptions.ecmaFeatures.experimentalObjectRestSpread' option is deprecated. Use 'parserOptions.ecmaVersion' instead. (found in "airbnb-base") package.json ``` "devDependencies": { "eslint": "^5.6.1",...
Currently, the lint doesn't allow a code like: ```js value = .001 ``` then, we must rewrite to ```js value = 0.001 ``` But, the number `.001` is easy to...
I noticed that there is no standard declaration of order. And that is bad because each person of the time can take a different approach or none at all. I'd...
Fora a obviedade, escrever ```(a * x) + b``` Tira a clareza frente à: ```a*x + b``` É extremamente comum até mesmo omitir o operador multiplicativo, quando se escreve algo...
Hi! > `Dangling comma may cause weird errors when used on functions, you should avoid it.` Could you please elaborate this problem? Maybe this isn't an issue with this repository...