Skip to content

Commit

Permalink
Update JavaScript / ESLint guidance
Browse files Browse the repository at this point in the history
Remove deprecated Google ESLint config
  • Loading branch information
coliff committed Apr 17, 2024
1 parent 024acbc commit d696731
Show file tree
Hide file tree
Showing 4 changed files with 65 additions and 388 deletions.
1 change: 0 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"sourceType": "module"
},
"extends": [
"google",
"prettier"
],
"rules": {
Expand Down
9 changes: 5 additions & 4 deletions content/code-style/code-style-javascript.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,17 @@ The one exception is that preexisting libraries included in your applications sh
Some IDE’s provide linting support built into their package system. For command-line you’ll need to install the package with administrative/root privilege

```sh
npm install eslint eslint-config-google --save-dev
npm install eslint --save-dev
# or
yarn add eslint eslint-config-google --dev
yarn add eslint --dev
```

Once the eslint-config-google package is installed, you can use it by specifying google in the extends section of your [ESLint configuration](http://eslint.org/docs/user-guide/configuring).
Once eslint is installed, you can use it by specifying `eslint:recommended` in the extends section of your [ESLint configuration](http://eslint.org/docs/user-guide/configuring).

```json
{
"extends": "google",
"root": true,
"extends": ["eslint:recommended"],
"rules": {
// Additional, per-project rules...
}
Expand Down
Loading

0 comments on commit d696731

Please sign in to comment.