Skip to content
This repository has been archived by the owner on Jan 25, 2023. It is now read-only.

Commit

Permalink
fix(lint): make eslint work with yarn v2
Browse files Browse the repository at this point in the history
Uses eslint-config-typescript-shareable to import
linting rules from a shared config instead of specifying
own rules.

Temporary disabled global cache to avoid bug.
  • Loading branch information
steabert committed Aug 14, 2020
1 parent 9991fce commit f35b547
Show file tree
Hide file tree
Showing 5 changed files with 1,209 additions and 76 deletions.
21 changes: 0 additions & 21 deletions .eslintrc.json

This file was deleted.

17 changes: 17 additions & 0 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
extends:
- 'typescript-shareable'

parserOptions:
project: './tsconfig.json'
ecmaVersion: 2019
ecmaFeatures:
jsx: true

env:
browser: true
es6: true
node: true

settings:
react:
version: detect
6 changes: 4 additions & 2 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
enableGlobalCache: true
# Prefer global cache, but currently this doesn't work with eslint
# because of: https://github.com/yarnpkg/berry/issues/706
enableGlobalCache: false

plugins:
- path: .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs
spec: "@yarnpkg/plugin-interactive-tools"
spec: '@yarnpkg/plugin-interactive-tools'

yarnPath: .yarn/releases/yarn-berry.js
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,11 @@
"conventional-recommended-bump": "6.0.10",
"css-loader": "3.6.0",
"eslint": "7.6.0",
"eslint-config-prettier": "6.11.0",
"eslint-config-typescript-shareable": "0.10.0",
"eslint-plugin-functional": "3.0.1",
"eslint-plugin-import": "2.22.0",
"eslint-plugin-node": "11.1.0",
"eslint-plugin-promise": "4.2.1",
"eslint-plugin-react": "7.20.6",
"eslint-plugin-react": "7.20.5",
"eslint-plugin-react-hooks": "4.0.8",
"file-loader": "6.0.0",
"html-webpack-plugin": "4.3.0",
Expand Down
Loading

0 comments on commit f35b547

Please sign in to comment.