javascript icon indicating copy to clipboard operation
javascript copied to clipboard

JavaScript Style Guide

Results 181 javascript issues
Sort by recently updated
recently updated
newest added

_The following examples are based (but no dependent) on [Express router](https://expressjs.com/en/guide/routing.html)._ **Considering the following correct case:** [8.1 When you must use function expressions (as when passing an anonymous function), use...

question

For those new to ESLint, it's not clear from the README how to use the `.eslintrc`. Also [the link to .eslintrc](https://github.com/airbnb/javascript/blob/master/linters/.eslintrc) doesn't point to anything useful (that file just reads...

enhancement
pull request wanted
semver-patch: loosen/fix/document rules

Additional Links and References for Learning more about Javascript

editorial

I am wondering why there is no section of documentation or docblocks. Is it conventional to leave them out? What is the reason I don't see any docblocks in the...

pull request wanted
editorial

Using [typescript-eslint-parser](https://github.com/eslint/typescript-eslint-parser), ESLint configurations can be enforced on TypeScript files. Modifying `.js,.jsx` to `.js,.jsx,.ts,.tsx` in the following files would fix most of the issues with TypeScript integration: - https://github.com/airbnb/javascript/blob/master/packages/eslint-config-airbnb/rules/react.js -...

Hello, Curious if support for [ESnext classes](https://github.com/tc39/proposal-class-fields) is can be expected now that the feature has been [moved from stage-2 to stage-3](https://github.com/tc39/proposal-class-fields/commit/5a4ff5fa4bf30885188279f6fb8070f2e1903c32). If not, at what point (if any) will...

needs eslint rule change/addition

```js // mutations.js // @flow import { ICounter } from './constants'; export default { increment(state: ICounter): void { state.value += 1; }, decrement(state: ICounter): void { state.value -= 1; },...

Description states, "Use line breaks after open and before close array brackets if an array has multiple lines," which would imply the form reflected in the edit. If the intention...