javascript icon indicating copy to clipboard operation
javascript copied to clipboard

JavaScript Style Guide

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

Hello, it seems that `Object.hasOwn` is now available in most major browsers (https://caniuse.com/mdn-javascript_builtins_object_hasown), so it might be worth adding it to section [3.7](https://github.com/airbnb/javascript#objects--prototype-builtins). It seems to be recommended as a...

pull request wanted

I gone through the eslint: `nonblock-statement-body-position` documentation where they didn't mention about the `function` as block for this rule so, I removed the function example and clearly mention the block...

editorial

Fix jsx display issue in webpage https://airbnb.io/javascript/react/#quotes Fixes #2301

The warning about using for...of states that regenerator-runtime is required: > iterators/generators require regenerator-runtime, which is too heavyweight for this guide to allow them. Separately, loops should be avoided in...

pull request wanted

https://github.com/airbnb/javascript/tree/master/packages/eslint-config-airbnb-base It looks like the packages are updated frequently. But the last publish on NPM was 6 month ago: https://www.npmjs.com/package/eslint-config-airbnb-base Is it possible that you update the package in the...

I've searched by `TODO: enable` to see what could be already enabled, based on the comment below de rule. Since `^6.8.0 || ^7.2.0` are already supported. Features added before those...

It might be worth revisiting [react/no-did-update-set-state](https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/no-did-update-set-state.md). Now that `componentWillReceiveProps()` is being deprecated, `componentDidUpdate()` is the only "safe" way to detect changes in props and set state accordingly. The [React docs](https://reactjs.org/docs/react-component.html#componentdidupdate)...