Skip to content

Commit

Permalink
feat: eslint add overrides
Browse files Browse the repository at this point in the history
  • Loading branch information
bingtsingw committed Nov 19, 2022
1 parent a23d5d1 commit cb4e202
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions eslint/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,22 @@ const task = () => {
})
.save();
}

packageJson()
.merge({
eslintConfig: {
overrides: [
{
files: ['*.config.js'],
rules: {
'import/no-commonjs': 'off',
'@typescript-eslint/no-require-imports': 'off',
},
},
],
},
})
.save();
};

task.description = 'Add eslint';
Expand Down

0 comments on commit cb4e202

Please sign in to comment.