2017-01-10 21:28:22 +00:00
|
|
|
module.exports = {
|
2017-10-01 05:06:06 +00:00
|
|
|
env: {
|
|
|
|
node: true,
|
2019-07-15 09:04:05 +00:00
|
|
|
jest: true,
|
2017-10-01 05:06:06 +00:00
|
|
|
},
|
2019-07-08 13:58:12 +00:00
|
|
|
extends: [
|
2019-07-10 08:41:12 +00:00
|
|
|
'plugin:promise/recommended',
|
2019-07-08 13:58:12 +00:00
|
|
|
'plugin:@typescript-eslint/recommended',
|
2019-07-10 08:41:12 +00:00
|
|
|
'airbnb-typescript/base',
|
2019-07-08 13:58:12 +00:00
|
|
|
'prettier',
|
|
|
|
'prettier/@typescript-eslint',
|
|
|
|
],
|
2019-04-26 10:59:51 +00:00
|
|
|
parserOptions: {
|
2019-05-21 15:23:30 +00:00
|
|
|
ecmaVersion: 9,
|
2019-07-08 13:58:12 +00:00
|
|
|
project: './tsconfig.json',
|
2019-04-26 10:59:51 +00:00
|
|
|
},
|
2017-10-01 05:06:06 +00:00
|
|
|
rules: {
|
2019-07-17 08:14:56 +00:00
|
|
|
'import/no-unresolved': 0, // done by typescript
|
2019-07-23 12:39:15 +00:00
|
|
|
'import/prefer-default-export': 0, // no benefit
|
2017-11-03 10:56:25 +00:00
|
|
|
'require-await': 'error',
|
2017-10-01 05:06:06 +00:00
|
|
|
'no-use-before-define': 0,
|
|
|
|
'no-restricted-syntax': 0,
|
|
|
|
'no-await-in-loop': 0,
|
2018-10-05 18:45:24 +00:00
|
|
|
'prefer-destructuring': 'off',
|
2017-10-31 12:45:28 +00:00
|
|
|
'prefer-template': 'off',
|
2019-05-20 13:08:18 +00:00
|
|
|
'no-underscore-dangle': 0,
|
2019-07-08 13:58:12 +00:00
|
|
|
|
|
|
|
// TODO: fix lint
|
|
|
|
'@typescript-eslint/camelcase': 'off', // disabled until ??
|
|
|
|
'@typescript-eslint/no-explicit-any': 0,
|
|
|
|
'@typescript-eslint/no-non-null-assertion': 0,
|
2019-07-17 08:14:56 +00:00
|
|
|
'@typescript-eslint/no-unused-vars': [
|
|
|
|
'error',
|
|
|
|
{
|
|
|
|
vars: 'all',
|
|
|
|
args: 'none',
|
|
|
|
ignoreRestSiblings: false,
|
2019-07-08 13:58:12 +00:00
|
|
|
},
|
2019-07-17 08:14:56 +00:00
|
|
|
], // disable until proper interfaced api
|
|
|
|
},
|
2019-11-20 07:55:53 +00:00
|
|
|
overrides: [
|
|
|
|
{
|
|
|
|
files: ['*.js'],
|
|
|
|
rules: {
|
|
|
|
'@typescript-eslint/no-var-requires': 0,
|
|
|
|
'@typescript-eslint/no-use-before-define': 0,
|
|
|
|
'@typescript-eslint/explicit-member-accessibility': 0,
|
|
|
|
'@typescript-eslint/explicit-function-return-type': 0,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
2017-01-10 21:28:22 +00:00
|
|
|
};
|