dgf-prototype/ethereum/.eslintrc.cjs

27 lines
618 B
JavaScript
Raw Normal View History

2024-03-05 21:21:27 -06:00
module.exports = {
root: true,
env: { browser: true, es2020: true, mocha: true },
extends: [
'eslint:recommended',
'airbnb',
'plugin:chai-friendly/recommended',
],
ignorePatterns: ['hardhat.config.js'],
parserOptions: { ecmaVersion: 'latest', sourceType: 'module' },
settings: { react: { version: '18.2' } },
plugins: [
'chai-friendly',
],
rules: {
'import/no-extraneous-dependencies': [
'error',
{
2024-03-06 16:50:59 -06:00
devDependencies: ['test/**', 'scripts/**'],
2024-03-05 21:21:27 -06:00
optionalDependencies: false,
peerDependencies: false,
},
],
2024-03-06 16:50:59 -06:00
'no-console': 0,
2024-03-05 21:21:27 -06:00
},
};