Skip to content

Commit a5a4fd7

Browse files
committed
more lint fixes
1 parent ad6a9fc commit a5a4fd7

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

.eslintrc.cjs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ module.exports = {
55
files: ['**/*.?([cm])js'],
66
parser: 'espree',
77
rules: {
8+
'@exodus/import/no-extraneous-dependencies': [
9+
'error',
10+
{
11+
devDependencies: ['**/{tests,benchmarks}/**/*', '**/*.{test,bench}.*', '**/*.d.ts'],
12+
},
13+
],
814
'unicorn/no-new-array': 'off',
915
'unicorn/prefer-code-point': 'off',
1016
},

assert.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ export function assertEmptyRest(rest) {
66
if (Object.keys(rest).length > 0) throw new TypeError('Unexpected extra options')
77
}
88

9+
// eslint-disable-next-line sonarjs/no-nested-template-literals
910
const makeMessage = (name, extra) => `Expected${name ? ` ${name} to be` : ''} an Uint8Array${extra}`
1011

1112
const TypedArray = Object.getPrototypeOf(Uint8Array)

0 commit comments

Comments
 (0)