forked from farcasterxyz/hub-monorepo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.cjs
33 lines (33 loc) · 965 Bytes
/
.eslintrc.cjs
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
30
31
32
33
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
'plugin:prettier/recommended',
'plugin:security/recommended',
],
plugins: ['prefer-arrow-functions'],
ignorePatterns: ['**/generated/*', '**/.config'],
rules: {
'@typescript-eslint/ban-ts-ignore': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'no-restricted-imports': [
'error',
{
paths: [
{
name: 'ethers',
importNames: ['logger'],
message: 'Did you mean to import ~/utils/logger instead?',
},
],
},
],
'prettier/prettier': ['error', {}, { usePrettierrc: true }],
'prefer-arrow-functions/prefer-arrow-functions': 'error',
'no-console': 'error',
},
};