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

Commit

Permalink
C2LC-192: Configure ESLint to ignore dragdroptouch
Browse files Browse the repository at this point in the history
Configure ESLint to ignore errors in the dragdroptouch library.

We do this by turning on create-react-app's support for ESLint
customization. This support is currently marked as "experimental" in
the documentation (https://create-react-app.dev/docs/setting-up-your-editor/#experimental-extending-the-eslint-config).

There is currently a caching issue in create-react-app that causes
previous ESLint configurations to interfere with future runs. A
workaround is to delete the 'node_modules/.cache/eslint-loader'
directory. See:

- facebook/create-react-app#8683
- https://webpack.js.org/loaders/eslint-loader/
  • Loading branch information
simonbates committed Jul 8, 2020
1 parent bffd134 commit 6ac32d0
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
EXTEND_ESLINT=true
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@
"eject": "react-scripts eject"
},
"eslintConfig": {
"extends": "react-app"
"extends": "react-app",
"ignorePatterns": ["src/vendor/"]
},
"browserslist": {
"production": [
Expand Down
2 changes: 1 addition & 1 deletion src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import * as Utils from './Utils';
import type { DeviceConnectionStatus, Program, RobotDriver } from './types';
import messages from './messages.json';
import './App.scss';
import './dragdroptouch/DragDropTouch.js';
import './vendor/dragdroptouch/DragDropTouch.js';

// Uncomment to use the FakeRobotDriver (see driver construction below also)
//import FakeRobotDriver from './FakeRobotDriver';
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit 6ac32d0

Please sign in to comment.