Skip to content

Commit

Permalink
Ignore import lint rules around use of require for importing package.…
Browse files Browse the repository at this point in the history
…json
  • Loading branch information
filmaj committed Aug 25, 2021
1 parent 7972b9c commit a029318
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/App.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ import { IncomingEventType, getTypeAndConversation, assertNever } from './helper
import { CodedError, asCodedError, AppInitializationError, MultipleListenerError } from './errors';
// eslint-disable-next-line import/order
import allSettled = require('promise.allsettled'); // eslint-disable-line @typescript-eslint/no-require-imports
// eslint-disable-next-line @typescript-eslint/no-require-imports
// eslint-disable-next-line @typescript-eslint/no-require-imports, import/no-commonjs
const packageJson = require('../package.json'); // eslint-disable-line @typescript-eslint/no-var-requires

// ----------------------------
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import pleaseUpgradeNode from 'please-upgrade-node';
// eslint-disable-next-line @typescript-eslint/no-require-imports
const packageJson = require('../package.json'); // eslint-disable-line @typescript-eslint/no-var-requires
const packageJson = require('../package.json'); // eslint-disable-line @typescript-eslint/no-var-requires, import/no-commonjs

pleaseUpgradeNode(packageJson);

Expand Down

0 comments on commit a029318

Please sign in to comment.