1234567891011121314151617181920212223242526 |
- 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')),
- ];
|