Skip to content

Commit f9b812c

Browse files
committed
feat: rm global setting
1 parent 4c56914 commit f9b812c

File tree

3 files changed

+1
-4
lines changed

3 files changed

+1
-4
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ npm install eslint eslint-plugin-react --save-dev
1717

1818
It is also possible to install ESLint globally rather than locally (using npm install eslint --global). However, this is not recommended, and any plugins or shareable configs that you use must be installed locally in either case.
1919

20-
## Configuration
20+
## Configuration (legacy: eslintrc)
2121

2222
Use [our preset](#recommended) to get reasonable defaults:
2323

configs/recommended.js

-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
'use strict';
22

3-
const globals = require('globals');
43
const react = require('../index');
54
const legacy = require('../legacy');
65

76
module.exports = {
87
files: ['**/*.{js,jsx,ts,tsx}'],
9-
globals: Object.assign({}, globals.serviceworker, globals.browser),
108
plugins: {
119
react,
1210
},

package.json

-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
"array.prototype.flatmap": "^1.3.0",
4040
"doctrine": "^2.1.0",
4141
"estraverse": "^5.3.0",
42-
"globals": "^13.17.0",
4342
"jsx-ast-utils": "^2.4.1 || ^3.0.0",
4443
"minimatch": "^3.1.2",
4544
"object.entries": "^1.1.5",

0 commit comments

Comments
 (0)