musicbrainz-userscripts/.eslintrc.js

30 lines
782 B
JavaScript

module.exports = {
env: {
browser: true,
es2017: true,
greasemonkey: true,
jquery: true,
},
extends: ['eslint:recommended', 'plugin:prettier/recommended'],
globals: {
LOGGER: true,
MBImportStyle: true,
MBImport: true,
MBLinks: true,
MBSearchItStyle: true,
},
rules: {
'prettier/prettier': 'error',
'prefer-template': 'error',
'no-console': 'off',
'no-inner-declarations': 'warn',
'no-global-assign': 'warn',
'no-redeclare': 'warn',
'no-self-assign': 'warn',
'no-undef': 'warn',
'no-useless-concat': 'warn',
'no-useless-escape': 'warn',
'no-unused-vars': 'warn',
'no-var': 'warn',
},
};