forked from Daninet/hash-wasm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.cjs
30 lines (30 loc) · 929 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
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
plugins: [
'@typescript-eslint',
],
extends: [
'airbnb-base',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
],
rules: {
'@typescript-eslint/consistent-type-imports': 'error',
'@typescript-eslint/explicit-function-return-type': 'warn',
'@typescript-eslint/explicit-module-boundary-types': 'warn',
'@typescript-eslint/no-empty-function': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'default-case': 'off',
camelcase: ['error', { allow: ['^Hash_'] }],
'import/extensions': 'off',
'import/no-unresolved': 'off',
'import/prefer-default-export': 'off',
'no-await-in-loop': 'off',
'no-param-reassign': 'off',
'no-plusplus': ['error', { allowForLoopAfterthoughts: true }],
},
ignorePatterns: [
'benchmark/node_modules/',
],
};