mirror of
https://github.com/BradNut/graphbrainz
synced 2025-09-08 17:40:32 +00:00
46 lines
901 B
JavaScript
46 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,
|
||
|
|
},
|
||
|
|
],
|
||
|
|
},
|
||
|
|
};
|