forked from RobotWebTools/roslibjs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheslint.config.js
More file actions
40 lines (39 loc) · 730 Bytes
/
eslint.config.js
File metadata and controls
40 lines (39 loc) · 730 Bytes
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
import globals from 'globals';
export default [
{
languageOptions: {
'globals': {
...globals.browser,
...globals.node,
'bson': true
},
'parserOptions': {
'ecmaFeatures': {
'jsx': true
}
}
}
},
{
ignores: ['dist']
},
{
rules: {
curly: 2,
eqeqeq: 2,
'wrap-iife': [2, 'any'],
'no-use-before-define': 0,
'no-caller': 2,
'dot-notation': 0,
'no-undef': 2,
'no-cond-assign': 0,
'no-eq-null': 0,
strict: 0,
quotes: [2, 'single'],
'no-proto': 2,
'linebreak-style': 2,
'key-spacing': [2, {afterColon: true}]
},
files: ['**/*.{js,jsx,cjs}']
}
];