-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc.cjs
41 lines (36 loc) · 1.29 KB
/
.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
34
35
36
37
38
39
40
41
/* eslint-disable no-restricted-syntax */
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint', 'prettier'],
extends: [
'@agoric',
'plugin:jsdoc/recommended-typescript',
'plugin:@typescript-eslint/recommended',
],
rules: {
'@typescript-eslint/no-empty-function': 'off',
'@typescript-eslint/no-unused-vars': 'off',
'@typescript-eslint/prefer-ts-expect-error': 'warn',
'jsdoc/require-param-description': 'off',
'jsdoc/require-returns-description': 'off',
// so that floating-promises can be explicitly permitted with void operator
'no-void': ['error', { allowAsStatement: true }],
// TS has this covered and eslint gets it wrong
'no-undef': 'off',
// n/a to frontend
'@jessie.js/safe-await-separator': 'off',
// Note: you must disable the base rule as it can report incorrect errors
'no-shadow': 'off',
'@typescript-eslint/no-shadow': 'error',
// CI has a separate format check but keep this warn to maintain that "eslint --fix" prettifies
// UNTIL https://github.com/Agoric/agoric-sdk/issues/4339
'prettier/prettier': 'warn',
},
settings: {
jsdoc: {
mode: 'typescript',
},
},
ignorePatterns: ['coverage/**', '**/dist/**', '*.html', 'ava*.config.js'],
};