-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update .eslintrc.cjs, based on meta-package's breaking change
- Loading branch information
1 parent
ef49a50
commit c8e3414
Showing
1 changed file
with
8 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,19 @@ | ||
'use strict'; | ||
|
||
const { configs } = require('@nullvoxpopuli/eslint-configs'); | ||
const { baseConfig: CJS } = require('@nullvoxpopuli/eslint-configs/configs/node'); | ||
|
||
let mts = configs.nodeTS(); | ||
let config = configs.node(); | ||
|
||
module.exports = { | ||
...mts, | ||
...config, | ||
overrides: [ | ||
...mts.overrides, | ||
...config.overrides, | ||
{ | ||
// Top-level JS files are CJS | ||
files: ['*.js'], | ||
...CJS, | ||
files: ['**/*.ts'], | ||
rules: { | ||
// Requires passing your tsconfig to eslint, which we can do later | ||
'@typescript-eslint/prefer-optional-chain': 'off', | ||
}, | ||
}, | ||
], | ||
}; |