forked from viamrobotics/viam-typescript-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.cjs
30 lines (29 loc) · 922 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
'use strict';
module.exports = {
root: true,
extends: ['@viamrobotics/eslint-config'],
ignorePatterns: [
'src/gen',
'dist',
'docs',
/*
* TODO(mc, 2023-04-06): something about nested node_modules in examples
* is causing eslint to choke. Investigate workspaces as a solution
*/
'examples',
// TODO(RSDK-5406): setup custom linting rules for standalone JS scripts.
'scripts',
],
parserOptions: {
project: ['./tsconfig.json', './tsconfig.node.json'],
},
rules: {
'no-void': ['error', { allowAsStatement: true }],
// TODO(mc, 2023-04-06): remove overrides to default to error, fix issues
'@typescript-eslint/no-floating-promises': 'warn',
'@typescript-eslint/no-misused-promises': 'warn',
'@typescript-eslint/no-unsafe-argument': 'warn',
'@typescript-eslint/no-unsafe-call': 'warn',
'unicorn/prefer-add-event-listener': 'warn',
},
};