Skip to content

Commit

Permalink
chore(deps): update dependency prettier to v3 (#99)
Browse files Browse the repository at this point in the history
* chore(deps): update dependency prettier to v3

* upgrade eslint & re-lint code

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Keith Cirkel <[email protected]>
  • Loading branch information
renovate[bot] and keithamus authored Jan 26, 2025
1 parent a0167c1 commit b5c80fa
Show file tree
Hide file tree
Showing 10 changed files with 4,957 additions and 4,113 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 b5c80fa

Please sign in to comment.