File tree 4 files changed +5321
-508
lines changed
4 files changed +5321
-508
lines changed Original file line number Diff line number Diff line change 5
5
#### eslint-config-scratch defines the eslint rules used for Scratch Javascript projects
6
6
7
7
## Installation
8
+
8
9
Install the config along with its peer dependencies, eslint and babel-eslint.
10
+
9
11
``` 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
11
13
```
12
14
13
15
If you're using the React config, also install the dependency for that
16
+
14
17
``` bash
15
- npm install -D eslint-plugin-react@6
18
+ npm install -DE eslint-plugin-react@^7
16
19
```
17
20
18
21
## Usage
Original file line number Diff line number Diff line change 1
1
module . exports = {
2
- parser : 'babel-eslint' ,
2
+ parser : '@babel/eslint-parser' ,
3
+ parserOptions : {
4
+ requireConfigFile : false
5
+ } ,
3
6
rules : {
4
7
// Errors
5
8
'valid-jsdoc' : [ 2 , {
You can’t perform that action at this time.
0 commit comments