Skip to content

Commit

Permalink
chore: avoid crash of eslint-plugin-import
Browse files Browse the repository at this point in the history
  • Loading branch information
dpinol committed Jun 30, 2020
1 parent 1b1f05b commit 9cfce18
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,3 +114,8 @@ module.exports = {
node: true,
},
}
if (typeof AVOID_IMPORT_CRASH !== 'undefined' && AVOID_IMPORT_CRASH) {
// avoid eslint-plugin-import crash https://github.com/benmosher/eslint-plugin-import/issues/1818#issuecomment-651547125
delete module.exports['settings']['import/parsers']
}

3 changes: 3 additions & 0 deletions packages/botonic-cli/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
AVOID_IMPORT_CRASH = true
const base = require('../.eslintrc.js')
module.exports = base
1 change: 1 addition & 0 deletions packages/botonic-cli/.eslintrc_slow.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
AVOID_IMPORT_CRASH = true
const base = require('../.eslintrc_slow.js')

base.rules['@typescript-eslint/restrict-template-expressions'] = 'off'

0 comments on commit 9cfce18

Please sign in to comment.