docbrown/app/assets/javascripts/.eslintrc.js
2022-07-21 09:26:13 -05:00

32 lines
736 B
JavaScript

/* eslint-env node */
module.exports = {
extends: ['eslint:recommended', 'prettier'],
parserOptions: {
ecmaVersion: 2018,
},
env: {
browser: true,
},
plugins: ['ignore-erb'],
rules: {
'no-unused-vars': 'off',
'vars-on-top': 'off',
},
globals: {
getCsrfToken: false,
sendFetch: false,
preventDefaultAction: false,
userData: false,
ga: false, // Google Analytics
gtag: false, // Google Analytics 4
handleOptimisticButtRender: false,
handleFollowButtPress: false,
browserStoreCache: false,
initializeBaseUserData: false,
initializeReadingListIcons: false,
initializeSponsorshipVisibility: false,
ActiveXObject: false,
AndroidBridge: false,
},
};