session-desktop/test/.eslintrc.js

42 lines
806 B
JavaScript
Raw Normal View History

// For reference: https://github.com/airbnb/javascript
module.exports = {
env: {
mocha: true,
2018-04-20 21:11:56 +02:00
browser: true,
},
2018-04-25 19:28:28 +02:00
globals: {
2018-04-27 23:25:04 +02:00
assert: true,
2018-11-02 19:02:53 +01:00
assertEqualArrayBuffers: true,
clearDatabase: true,
dcodeIO: true,
getString: true,
hexToArrayBuffer: true,
MockServer: true,
MockSocket: true,
PROTO_ROOT: true,
stringToArrayBuffer: true,
2018-04-25 19:28:28 +02:00
},
2018-04-20 21:11:56 +02:00
parserOptions: {
sourceType: 'script',
},
rules: {
// We still get the value of this rule, it just allows for dev deps
2018-04-27 23:25:04 +02:00
'import/no-extraneous-dependencies': [
'error',
{
devDependencies: true,
},
],
// We want to keep each test structured the same, even if its contents are tiny
'arrow-body-style': 'off',
2018-11-02 19:02:53 +01:00
strict: 'off',
'more/no-then': 'off',
2018-04-27 23:25:04 +02:00
},
};