Skip to content

Commit 053d0b5

Browse files
authored
Merge pull request #118 from cwillisf/update-eslint-parser
chore(deps): use @babel/eslint-parser instead of babel-eslint
2 parents 4ef5da8 + eb7d60a commit 053d0b5

File tree

4 files changed

+5321
-508
lines changed

4 files changed

+5321
-508
lines changed

README.md

+5-2
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,17 @@
55
#### eslint-config-scratch defines the eslint rules used for Scratch Javascript projects
66

77
## Installation
8+
89
Install the config along with its peer dependencies, eslint and babel-eslint.
10+
911
```bash
10-
npm install -D eslint-config-scratch eslint@3 babel-eslint@7
12+
npm install -DE eslint-config-scratch eslint@^8 @babel/eslint-parser@^7
1113
```
1214

1315
If you're using the React config, also install the dependency for that
16+
1417
```bash
15-
npm install -D eslint-plugin-react@6
18+
npm install -DE eslint-plugin-react@^7
1619
```
1720

1821
## Usage

index.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
module.exports = {
2-
parser: 'babel-eslint',
2+
parser: '@babel/eslint-parser',
3+
parserOptions: {
4+
requireConfigFile: false
5+
},
36
rules: {
47
// Errors
58
'valid-jsdoc': [2, {

0 commit comments

Comments
 (0)