Skip to content

Commit b5c80fa

Browse files
chore(deps): update dependency prettier to v3 (#99)
* 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]>
1 parent a0167c1 commit b5c80fa

10 files changed

+4957
-4113
lines changed

bench/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const benches = []
55
const mapObjRefA = {}
66
const mapObjRefB = {}
77
function getArguments() {
8-
return arguments // eslint-disable-line prefer-rest-params
8+
return arguments
99
}
1010
class A {}
1111
const fixtures = {

eslint.config.js

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
import eslintjs from '@eslint/js'
2+
3+
const { configs: eslintConfigs } = eslintjs
4+
5+
export default [
6+
eslintConfigs['recommended'],
7+
{
8+
languageOptions: {
9+
globals: {
10+
Buffer: false,
11+
process: false,
12+
document: false,
13+
window: false,
14+
global: false,
15+
}
16+
},
17+
rules: {
18+
'no-unused-vars': [
19+
'error',
20+
{
21+
argsIgnorePattern: '^_',
22+
caughtErrorsIgnorePattern: '^_',
23+
},
24+
],
25+
},
26+
},
27+
{
28+
files: ['test/*', 'bench/*'],
29+
languageOptions: {
30+
// if we ever use more globals than this, pull in the `globals` package
31+
globals: {
32+
Buffer: false,
33+
process: false,
34+
console: false,
35+
describe: false,
36+
beforeEach: false,
37+
it: false,
38+
}
39+
},
40+
},
41+
]

0 commit comments

Comments
 (0)