Skip to content

Commit 52c7821

Browse files
renovate[bot]Amxx
andauthored
Update linters (major) (#146)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Hadrien Croubois <[email protected]>
1 parent e4105b9 commit 52c7821

File tree

4 files changed

+1330
-2491
lines changed

4 files changed

+1330
-2491
lines changed

.eslintrc.js

Lines changed: 0 additions & 37 deletions
This file was deleted.

eslint.config.mjs

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
import js from '@eslint/js';
2+
import { includeIgnoreFile } from '@eslint/compat';
3+
import prettier from 'eslint-config-prettier';
4+
import globals from 'globals';
5+
import path from 'path';
6+
7+
export default [
8+
js.configs.recommended,
9+
prettier,
10+
{
11+
languageOptions: {
12+
ecmaVersion: 2022,
13+
globals: {
14+
...globals.browser,
15+
...globals.mocha,
16+
...globals.node,
17+
artifacts: 'readonly',
18+
contract: 'readonly',
19+
web3: 'readonly',
20+
extendEnvironment: 'readonly',
21+
expect: 'readonly',
22+
},
23+
},
24+
},
25+
includeIgnoreFile(path.resolve(import.meta.dirname, '.gitignore')),
26+
];

0 commit comments

Comments
 (0)