forked from OpenZeppelin/openzeppelin-contracts
-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy patheslint.config.mjs
More file actions
29 lines (27 loc) · 733 Bytes
/
eslint.config.mjs
File metadata and controls
29 lines (27 loc) · 733 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import js from '@eslint/js';
import { includeIgnoreFile } from '@eslint/compat';
import prettier from 'eslint-config-prettier';
import globals from 'globals';
import path from 'path';
import { fileURLToPath } from 'node:url';
const __dirname = path.dirname(fileURLToPath(import.meta.url));
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(__dirname, '.gitignore')),
];