-
Notifications
You must be signed in to change notification settings - Fork 190
/
.eslintrc.cjs
62 lines (62 loc) · 1.6 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
parserOptions: {
sourceType: 'module',
project: [
'./packages/*/tsconfig.json',
'./packages/*/jsconfig.json',
'./packages/wallet/*/jsconfig.json',
'./tsconfig.json',
],
tsconfigRootDir: __dirname,
extraFileExtensions: ['.cjs'],
},
plugins: [
'@jessie.js/eslint-plugin',
'@typescript-eslint',
'eslint-plugin-import',
'eslint-plugin-prettier',
],
extends: ['@agoric'],
rules: {
'@typescript-eslint/prefer-ts-expect-error': 'warn',
'jsdoc/no-multi-asterisks': 'off',
'jsdoc/multiline-blocks': 'off',
// Use these rules to warn about JSDoc type problems, such as after
// upgrading eslint-plugin-jsdoc.
// Bump the 1's to 2's to get errors.
// "jsdoc/valid-types": 1,
// "jsdoc/no-undefined-types": [1, {"definedTypes": ["never", "unknown"]}],
'jsdoc/tag-lines': 'off',
'import/no-extraneous-dependencies': [
'error',
{
devDependencies: [
'**/*.config.js',
'**/*.config.*.js',
'**/*test*/**/*.js',
'**/demo*/**/*.js',
'**/scripts/**/*.js',
],
},
],
// 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/**',
'**/output/**',
'bundles/**',
'bundle-*',
'dist/**',
'test262/**',
'ava*.config.js',
],
};