mirror of
https://github.com/BradNut/graphbrainz
synced 2025-09-08 17:40:32 +00:00
* wip: Modernize dependencies, syntax, imports * Use final release of ava-nock v2 * Update Travis config * Remove Node 13 from test matrix * Replace errorClass with parseErrorMessage in subclasses * define exports, apply updated lint rules * Remove markdown eslint plugin * Update README * v9.0.0-beta.1 * Add gql tag to exports * v9.0.0-beta.2 * Bump ava-nock, add test * Update dataloader loadMany usage * Add modules note to README * Add retry option to got calls
45 lines
901 B
JavaScript
45 lines
901 B
JavaScript
module.exports = {
|
|
env: {
|
|
es2020: true,
|
|
node: true,
|
|
},
|
|
parserOptions: {
|
|
ecmaVersion: 2020,
|
|
sourceType: 'module',
|
|
},
|
|
extends: [
|
|
'eslint:recommended',
|
|
'plugin:promise/recommended',
|
|
'plugin:node/recommended',
|
|
'plugin:import/errors',
|
|
'plugin:import/warnings',
|
|
'plugin:prettier/recommended',
|
|
],
|
|
rules: {
|
|
'no-unused-vars': [
|
|
'error',
|
|
{ vars: 'all', args: 'none', ignoreRestSiblings: false },
|
|
],
|
|
'import/default': 'off',
|
|
'import/no-named-as-default': 'off',
|
|
'node/no-unsupported-features/es-syntax': [
|
|
'error',
|
|
{
|
|
ignores: ['dynamicImport', 'modules'],
|
|
},
|
|
],
|
|
'prettier/prettier': [
|
|
'error',
|
|
{
|
|
singleQuote: true,
|
|
},
|
|
],
|
|
'promise/always-return': 'off',
|
|
'promise/catch-or-return': [
|
|
'error',
|
|
{
|
|
allowThen: true,
|
|
},
|
|
],
|
|
},
|
|
};
|