File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
apps/website/content/docs/getting-started Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -6,12 +6,13 @@ description: Getting started with JavaScript setup
66## Install
77
88``` package-install copy
9- npm install --save-dev eslint @eslint/js @eslint-react/eslint-plugin
9+ npm install --save-dev globals eslint @eslint/js @eslint-react/eslint-plugin
1010```
1111
1212## Setup
1313
1414``` js title="eslint.config.js"
15+ import globals from " globals" ;
1516import eslintJs from " @eslint/js" ;
1617import eslintReact from " @eslint-react/eslint-plugin" ;
1718import { defineConfig } from " eslint/config" ;
@@ -24,15 +25,16 @@ export default defineConfig([
2425 eslintReact .configs .recommended ,
2526 ],
2627 languageOptions: {
28+ globals: {
29+ ... globals .browser
30+ }
2731 parserOptions: {
2832 ecmaFeatures: {
2933 jsx: true ,
3034 },
3135 },
3236 },
3337 rules: {
34- // Add `globals` if you need this rule
35- " no-undef" : " off" ,
3638 // Put rules you want to override here
3739 " @eslint-react/prefer-shorthand-boolean" : " warn" ,
3840 },
You can’t perform that action at this time.
0 commit comments