forked from webmachinelearning/webnn-polyfill
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrcforjs.js
30 lines (30 loc) · 868 Bytes
/
.eslintrcforjs.js
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
module.exports = {
root: true,
ignorePatterns: ['**/*.ts', 'node_modules/', 'dist/', 'docs/', 'webpack.config.js', 'test/lib/', '.eslintrc.js'],
env: { 'es6': true, 'browser': true, 'node': true, 'mocha': true },
parserOptions: { ecmaVersion: 2020, sourceType: 'module'},
globals: {
'chai': 'readonly',
'ML': 'readonly',
'NeuralNetworkContext': 'readonly',
'ModelBuilder': 'readonly',
'Model': 'readonly',
'Compilation': 'readonly',
'Operand': 'readonly',
'_tfengine': 'readonly',
'BigInt64Array': 'readonly',
'BigUint64Array': 'readonly',
'fs': 'readonly',
'numpy': 'readonly'
},
rules: {
'semi': 'error',
'no-multi-spaces': ['error', { 'exceptions': { 'ArrayExpression': true } }],
'indent': 'off',
'require-jsdoc': 'off',
},
extends: [
'eslint:recommended',
'google',
],
}