Merge pull request #118 from cwillisf/update-eslint-parser

chore(deps): use @babel/eslint-parser instead of babel-eslint
This commit is contained in:
Christopher Willis-Ford 2022-05-25 07:16:41 -07:00 committed by GitHub
commit 053d0b56c2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 5348 additions and 535 deletions

View file

@ -5,14 +5,17 @@
#### eslint-config-scratch defines the eslint rules used for Scratch Javascript projects
## Installation
Install the config along with its peer dependencies, eslint and babel-eslint.
```bash
npm install -D eslint-config-scratch eslint@3 babel-eslint@7
npm install -DE eslint-config-scratch eslint@^8 @babel/eslint-parser@^7
```
If you're using the React config, also install the dependency for that
```bash
npm install -D eslint-plugin-react@6
npm install -DE eslint-plugin-react@^7
```
## Usage

View file

@ -1,5 +1,8 @@
module.exports = {
parser: 'babel-eslint',
parser: '@babel/eslint-parser',
parserOptions: {
requireConfigFile: false
},
rules: {
// Errors
'valid-jsdoc': [2, {

5863
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -28,13 +28,13 @@
"eslint-plugin-react": ">=7.14.2"
},
"peerDependencies": {
"babel-eslint": ">=8.0.1",
"eslint": ">=5.3.0"
"@babel/eslint-parser": "^7.11.0",
"eslint": "^7.5.0 || ^8.0.0"
},
"devDependencies": {
"babel-eslint": "10.0.3",
"@babel/eslint-parser": "7.17.0",
"cz-conventional-changelog": "3.0.2",
"eslint": "6.0.1"
"eslint": "8.15.0"
},
"config": {
"commitizen": {