Skip to content

Commit

Permalink
feat: rm global setting
Browse files Browse the repository at this point in the history
  • Loading branch information
jjangga0214 committed Sep 13, 2022
1 parent 4c56914 commit f9b812c
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ npm install eslint eslint-plugin-react --save-dev

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.

## Configuration
## Configuration (legacy: eslintrc)

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

Expand Down
2 changes: 0 additions & 2 deletions configs/recommended.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
'use strict';

const globals = require('globals');
const react = require('../index');
const legacy = require('../legacy');

module.exports = {
files: ['**/*.{js,jsx,ts,tsx}'],
globals: Object.assign({}, globals.serviceworker, globals.browser),
plugins: {
react,
},
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
"array.prototype.flatmap": "^1.3.0",
"doctrine": "^2.1.0",
"estraverse": "^5.3.0",
"globals": "^13.17.0",
"jsx-ast-utils": "^2.4.1 || ^3.0.0",
"minimatch": "^3.1.2",
"object.entries": "^1.1.5",
Expand Down

0 comments on commit f9b812c

Please sign in to comment.