@maeertin/medialoaded
Version:
A simple utility for checking whether images and/or videos have been loaded.
40 lines (39 loc) • 1.16 kB
JavaScript
module.exports = {
root: true, // So parent files don't get applied
env: {
amd: true,
browser: true,
es6: true,
node: true,
},
extends: ['airbnb-base', 'prettier'],
parser: 'babel-eslint',
parserOptions: {
ecmaVersion: 7,
sourceType: 'module',
},
plugins: ['babel'],
/**
* Sorted alphanumerically within each group. built-in and each plugin form
* their own groups.
*/
rules: {
'arrow-body-style': 'off', // Don't enforce, readability firsthand.
'consistent-this': ['error', 'self'],
'func-names': 'off',
'linebreak-style': 'off', // Doesn't play nicely with Windows
'no-alert': 'error',
'no-var': 'off',
'object-shorthand': 'off',
'vars-on-top': 'off',
// Strict, airbnb is using warn; allow warn and error for dev environments
'no-console': ['error', { allow: ['warn', 'error'] }],
'no-constant-condition': 'error',
// Airbnb use error
'no-param-reassign': 'off',
'no-prototype-builtins': 'off',
'no-prototype-builtins': 'off',
'prefer-arrow-callback': 'off',
'prefer-destructuring': 'off', // Destructuring harm grep potential.
},
}