musicbrainz-userscripts/.eslintrc.js

31 lines
782 B
JavaScript
Raw Normal View History

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',
},
};