diff --git a/.gitignore b/.gitignore index ce5c63d3..f34deca5 100644 --- a/.gitignore +++ b/.gitignore @@ -54,9 +54,6 @@ typings/ # Yarn Integrity file .yarn-integrity -# dotenv environment variables file -.env - # next.js build output .next diff --git a/packages/apps/app-typescript/.env b/packages/apps/app-typescript/.env new file mode 100644 index 00000000..69979cf6 --- /dev/null +++ b/packages/apps/app-typescript/.env @@ -0,0 +1,2 @@ +# Required for running external components! +EXTEND_ESLINT=true \ No newline at end of file diff --git a/packages/components-typescript/.eslintrc.js b/packages/components-typescript/.eslintrc.js index b23c3760..170d387d 100644 --- a/packages/components-typescript/.eslintrc.js +++ b/packages/components-typescript/.eslintrc.js @@ -1,8 +1,11 @@ module.exports = { parser: '@typescript-eslint/parser', // Specifies the ESLint parser extends: [ - 'plugin:react/recommended', // Uses the recommended rules from @eslint-plugin-react - 'plugin:@typescript-eslint/recommended', // Uses the recommended rules from @typescript-eslint/eslint-plugin + // Extend on the config used in `react-scripts` + require.resolve('eslint-config-react-app'), + // If you want extra rules/extensions, it can be added here: + // 'plugin:react/recommended', // Uses the recommended rules from @eslint-plugin-react + // 'plugin:@typescript-eslint/recommended', // Uses the recommended rules from @typescript-eslint/eslint-plugin ], parserOptions: { ecmaVersion: 2018, // Allows for the parsing of modern ECMAScript features