Repository navigation
Expand file tree
/
Copy patheslint.config.js
More file actions
53 lines (52 loc) · 1.56 KB
/
Copy patheslint.config.js
File metadata and controls
53 lines (52 loc) · 1.56 KB
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
import js from '@eslint/js'
import globals from 'globals'
export default [
{
ignores: [
'dist/**',
'examples/**',
'dev/**',
'tmp/**',
// Third party / generated, kept as shipped upstream
'js/vendor/**',
'js/canvas2svg.js',
'js/cram/cram-bundle.js'
]
},
js.configs.recommended,
{
languageOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
globals: {
...globals.browser,
Atomics: 'readonly',
SharedArrayBuffer: 'readonly',
gapi: 'readonly',
Buffer: 'readonly',
QUnit: 'readonly',
global: 'readonly',
require: 'readonly'
}
},
rules: {
'no-unused-vars': 'off',
'no-prototype-builtins': 'off',
'no-empty': 'off',
'no-useless-escape': 'off',
'no-cond-assign': 'off',
'no-constant-condition': ['error', {checkLoops: false}],
'no-control-regex': 'off',
// Stylistic here: declarations in an unbraced `case` are used
// throughout and are not a defect.
'no-case-declarations': 'off',
'require-atomic-updates': 'off',
'no-inner-declarations': 'off'
}
},
{
// Ported from Python; reuses `var` names freely within a function.
files: ['js/cnvpytor/**'],
rules: {'no-redeclare': 'off'}
}
]