signal-desktop/test/modules/.eslintrc.js

34 lines
636 B
JavaScript
Raw Normal View History

2020-10-30 20:34:04 +00:00
// Copyright 2018-2020 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
2018-04-20 19:11:56 +00:00
// For reference: https://github.com/airbnb/javascript
module.exports = {
env: {
mocha: true,
browser: true,
},
2018-04-27 21:25:04 +00:00
globals: {
2018-04-20 19:11:56 +00:00
check: true,
gen: true,
},
parserOptions: {
sourceType: 'module',
},
rules: {
// We still get the value of this rule, it just allows for dev deps
2018-04-27 21:25:04 +00:00
'import/no-extraneous-dependencies': [
'error',
{
devDependencies: true,
},
],
2018-04-20 19:11:56 +00:00
// We want to keep each test structured the same, even if its contents are tiny
'arrow-body-style': 'off',
2018-04-27 21:25:04 +00:00
},
2018-04-20 19:11:56 +00:00
};