Skip to content

Commit

Permalink
Update dependency eslint to v9 (OpenZeppelin#4996)
Browse files Browse the repository at this point in the history
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Hadrien Croubois <[email protected]>
Co-authored-by: cairo <[email protected]>
  • Loading branch information
3 people authored Oct 23, 2024
1 parent 29f4059 commit 205f59e
Show file tree
Hide file tree
Showing 20 changed files with 310 additions and 228 deletions.
20 changes: 0 additions & 20 deletions .eslintrc

This file was deleted.

26 changes: 26 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import js from '@eslint/js';
import { includeIgnoreFile } from '@eslint/compat';
import prettier from 'eslint-config-prettier';
import globals from 'globals';
import path from 'path';

export default [
js.configs.recommended,
prettier,
{
languageOptions: {
ecmaVersion: 2022,
globals: {
...globals.browser,
...globals.mocha,
...globals.node,
artifacts: 'readonly',
contract: 'readonly',
web3: 'readonly',
extendEnvironment: 'readonly',
expect: 'readonly',
},
},
},
includeIgnoreFile(path.resolve(import.meta.dirname, '.gitignore')),
];
Loading

0 comments on commit 205f59e

Please sign in to comment.