Skip to content

Commit

Permalink
Update .eslintrc.cjs, based on meta-package's breaking change
Browse files Browse the repository at this point in the history
  • Loading branch information
NullVoxPopuli committed Aug 16, 2023
1 parent ef49a50 commit c8e3414
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .eslintrc.cjs
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',
},
},
],
};

0 comments on commit c8e3414

Please sign in to comment.