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

Enforces the existing [airbnb style guide rule about default parameters coming last](https://github.com/airbnb/javascript#functions--defaults-last) in eslint by using [default-param-last](https://eslint.org/docs/rules/default-param-last). As this rule was introduced in ESLint 6.4.0, I bumped the eslint version...

semver-breaking: guide change

remove `node_module` from `packages/eslint-config-airbnb-base/rules/imports.js` this pull request resolves the following issue: #2457

semver-breaking: guide change

I'm opening this issue specifically to gather a list of the rules that those in the community feel are controversial or problematic, such that they override them, and most importantly,...

question

## Include Private Class Member (# name) Hi Maintainers👋 I would like to make a modification for private class members. ECMA2022 standardized the private identifier `#`. It marks class members...

semver-breaking: guide change

Issue with `eslint-config-airbnb-base` and [optional chaining](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Optional_chaining) operator `?.` `(JavaScript)` ```javascript // .eslintrc.js module.exports = { env: { es2021: true }, extends: [ 'airbnb-base' ] }; ``` ```javascript const o =...

There were still deprecated lifecycle being mentioned in two places. Thus by removing them, it will make clear sense of latest React API after 16.2.

editorial
react

The airbnb-base/legacy configuration [is inheriting](https://github.com/airbnb/javascript/blob/master/packages/eslint-config-airbnb-base/legacy.js#L7) `no-restricted-globals` from [variables configuration file](https://github.com/airbnb/javascript/blob/master/packages/eslint-config-airbnb-base/rules/variables.js#L19). But this rule is set to enforce the use of `Number.isFinite` and `Number.isNaN` witch are ES6 features and [not compatible...

In the Resources -> 'Other Styles' section of the README, there is a link to 'Popular JavaScript Coding Conventions on GitHub'. That site shows the "current" JavaScript coding conventions by...

The [`no-param-reassign` rule](https://github.com/airbnb/javascript/blob/4ee732639396362c6981b1aa4730934c3baa7919/packages/eslint-config-airbnb-base/rules/best-practices.js#L228-L246) allows property modifications for params with certain names, like `acc` and `response`. I would like to suggest that `state` is also allowed, for users of Redux Toolkit....