Skip to content

Commit

Permalink
Merge pull request #34 from atom-community/bundle-eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya authored Apr 6, 2021
2 parents 86f8001 + c9b408b commit 1ee301d
Show file tree
Hide file tree
Showing 4 changed files with 202 additions and 120 deletions.
17 changes: 15 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,25 @@ This includes the Eslint configuration used in atom-ide-community.
npm install --save-dev eslint-config-atomic
```

You should also install the peer dependencies:
<details>
<summary> You should have the peer dependencies. </summary>

If using `npm`, the bundled Eslint, TypeScript, Babel, etc is hoisted automatically.

If using `pnpm`, either add the following to your `.npmrc` to hoist the prettier bundled with the config

```
npm install -save-dev "eslint"
public-hoist-pattern[]=*
```

Or install these yourself in your `devDependencies`.

```
pnpm install -save-dev eslint typescript @babel/core
```

</details>

## Usage

Create a `.eslintrc.json` file at the root of the project with the following content:
Expand Down
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,10 @@
"bump": "ncu -u -x coffeescript"
},
"dependencies": {
"eslint": "^7",
"@babel/core": "^7",
"@typescript-eslint/eslint-plugin": "^4.18.0",
"@typescript-eslint/parser": "^4.18.0",
"@typescript-eslint/eslint-plugin": "^4.21.0",
"@typescript-eslint/parser": "^4.21.0",
"babel-eslint": "^10.1.0",
"coffeescript": "^1",
"eslint-config-prettier": "^8.1.0",
Expand All @@ -45,7 +46,7 @@
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-only-warn": "^1.0.2",
"eslint-plugin-optimize-regex": "^1.2.0",
"eslint-plugin-react": "^7.22.0",
"eslint-plugin-react": "^7.23.1",
"eslint-plugin-yaml": "^0.4.1",
"prettier": "^2",
"typescript": "^4"
Expand All @@ -56,7 +57,7 @@
"devDependencies": {
"eslint": "^7.22.0",
"execa": "^5.0.0",
"gitly": "^2.0.2",
"gitly": "^2.0.3",
"npm-check-updates": "11.3.0",
"prettier-config-atomic": "^1.0.1",
"shelljs": "^0.8.4"
Expand Down
Loading

0 comments on commit 1ee301d

Please sign in to comment.