Skip to content

Commit

Permalink
upgrade eslint & re-lint code
Browse files Browse the repository at this point in the history
  • Loading branch information
keithamus committed Jan 26, 2025
1 parent 838a11c commit 31a0ddf
Show file tree
Hide file tree
Showing 10 changed files with 4,922 additions and 4,080 deletions.
2 changes: 1 addition & 1 deletion bench/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const benches = []
const mapObjRefA = {}
const mapObjRefB = {}
function getArguments() {
return arguments // eslint-disable-line prefer-rest-params
return arguments
}
class A {}
const fixtures = {
Expand Down
41 changes: 41 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
import eslintjs from '@eslint/js'

const { configs: eslintConfigs } = eslintjs

export default [
eslintConfigs['recommended'],
{
languageOptions: {
globals: {
Buffer: false,
process: false,
document: false,
window: false,
global: false,
}
},
rules: {
'no-unused-vars': [
'error',
{
argsIgnorePattern: '^_',
caughtErrorsIgnorePattern: '^_',
},
],
},
},
{
files: ['test/*', 'bench/*'],
languageOptions: {
// if we ever use more globals than this, pull in the `globals` package
globals: {
Buffer: false,
process: false,
console: false,
describe: false,
beforeEach: false,
it: false,
}
},
},
]
Loading

0 comments on commit 31a0ddf

Please sign in to comment.