mirror of
https://github.com/scratchfoundation/eslint-config-scratch.git
synced 2025-08-28 22:40:13 -04:00
Merge pull request #118 from cwillisf/update-eslint-parser
chore(deps): use @babel/eslint-parser instead of babel-eslint
This commit is contained in:
commit
053d0b56c2
4 changed files with 5348 additions and 535 deletions
|
@ -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
|
||||
|
|
5
index.js
5
index.js
|
@ -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
5863
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -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": {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue