Skip to content

Commit 2430281

Browse files
authored
Merge pull request #30 from jmyrland/fix-issue-29
Fix related to issue #29
2 parents 6dadcc5 + 425b518 commit 2430281

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

Diff for: .gitignore

-3
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,6 @@ typings/
5454
# Yarn Integrity file
5555
.yarn-integrity
5656

57-
# dotenv environment variables file
58-
.env
59-
6057
# next.js build output
6158
.next
6259

Diff for: packages/apps/app-typescript/.env

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Required for running external components!
2+
EXTEND_ESLINT=true

Diff for: packages/components-typescript/.eslintrc.js

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
module.exports = {
22
parser: '@typescript-eslint/parser', // Specifies the ESLint parser
33
extends: [
4-
'plugin:react/recommended', // Uses the recommended rules from @eslint-plugin-react
5-
'plugin:@typescript-eslint/recommended', // Uses the recommended rules from @typescript-eslint/eslint-plugin
4+
// Extend on the config used in `react-scripts`
5+
require.resolve('eslint-config-react-app'),
6+
// If you want extra rules/extensions, it can be added here:
7+
// 'plugin:react/recommended', // Uses the recommended rules from @eslint-plugin-react
8+
// 'plugin:@typescript-eslint/recommended', // Uses the recommended rules from @typescript-eslint/eslint-plugin
69
],
710
parserOptions: {
811
ecmaVersion: 2018, // Allows for the parsing of modern ECMAScript features

0 commit comments

Comments
 (0)