This repository has been archived by the owner on Jan 25, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(lint): make eslint work with yarn v2
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
Showing
9 changed files
with
1,274 additions
and
124 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
extends: | ||
- 'typescript-shareable' | ||
|
||
parserOptions: | ||
project: './tsconfig.json' | ||
ecmaVersion: 2019 | ||
ecmaFeatures: | ||
jsx: true | ||
|
||
env: | ||
browser: true | ||
es6: true | ||
node: true | ||
|
||
settings: | ||
react: | ||
version: detect | ||
|
||
rules: | ||
'@typescript-eslint/unbound-method': 'off' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,20 @@ | ||
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 | ||
|
||
packageExtensions: | ||
'@types/styled-components@*': | ||
dependencies: | ||
'react': '*' | ||
'@types/hoist-non-react-statics@*': | ||
dependencies: | ||
'react': '*' | ||
'@types/react-dom@*': | ||
dependencies: | ||
'react': '*' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.