33 lines
636 B
JavaScript
33 lines
636 B
JavaScript
// Copyright 2018-2020 Signal Messenger, LLC
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
// For reference: https://github.com/airbnb/javascript
|
|
|
|
module.exports = {
|
|
env: {
|
|
mocha: true,
|
|
browser: true,
|
|
},
|
|
|
|
globals: {
|
|
check: true,
|
|
gen: true,
|
|
},
|
|
|
|
parserOptions: {
|
|
sourceType: 'module',
|
|
},
|
|
|
|
rules: {
|
|
// We still get the value of this rule, it just allows for dev deps
|
|
'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',
|
|
},
|
|
};
|