signal-desktop/test/.eslintrc.js

37 lines
685 B
JavaScript
Raw Permalink Normal View History

2023-01-03 11:55:46 -08:00
// Copyright 2018 Signal Messenger, LLC
2020-10-30 15:34:04 -05:00
// SPDX-License-Identifier: AGPL-3.0-only
// For reference: https://github.com/airbnb/javascript
module.exports = {
env: {
mocha: true,
2018-04-20 12:11:56 -07:00
browser: true,
},
2018-04-25 13:28:28 -04:00
globals: {
2018-04-27 17:25:04 -04:00
assert: true,
2018-11-02 11:02:53 -07:00
getString: true,
2018-04-25 13:28:28 -04:00
},
2018-04-20 12:11:56 -07:00
parserOptions: {
sourceType: 'script',
},
rules: {
// We still get the value of this rule, it just allows for dev deps
2018-04-27 17:25:04 -04: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 11:02:53 -07:00
strict: 'off',
'more/no-then': 'off',
2018-04-27 17:25:04 -04:00
},
};