react-component-lazy-loader
Version:
A package which lazily loads it's children components based on viewport visibility of the component. Useful in lazyloading images or any other custom component.
77 lines • 2.08 kB
Plain Text
{
"parser": "babel-eslint",
"extends": ["airbnb", "prettier"],
"env": {
"browser": true,
"mocha": true,
"node": true
},
"plugins": ["react", "prettier"],
"ecmaFeatures": {
"arrowFunctions": true,
"blockBindings": true,
"classes": true,
"defaultParams": true,
"destructuring": true,
"forOf": true,
"generators": true,
"modules": true,
"spread": true,
"templateStrings": true,
"jsx": true
},
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"rules": {
"react/display-name": [1, { "ignoreTranspilerName": false }],
"react/jsx-boolean-value": [1],
"react/jsx-closing-bracket-location": [1, "tag-aligned"],
"react/jsx-curly-spacing": [1],
"react/jsx-indent-props": [1, 2],
"react/jsx-max-props-per-line": [1, { "maximum": 2 }],
"react/jsx-no-duplicate-props": [1],
"react/jsx-no-literals": [1],
"react/jsx-no-undef": [2],
"react/sort-prop-types": [1, { "callbacksLast": true }],
"react/jsx-sort-props": [1, { "callbacksLast": true }],
"react/jsx-uses-react": [1],
"react/no-did-mount-set-state": [1],
"react/no-did-update-set-state": [1],
"react/no-direct-mutation-state": [1],
"react/no-multi-comp": [2],
"react/no-unknown-property": [1],
"react/prefer-es6-class": [1],
"react/prop-types": [1],
"react/react-in-jsx-scope": [1],
"react/self-closing-comp": [1],
"react/sort-comp": [1],
"react/jsx-wrap-multilines": [1],
"react/no-find-dom-node": 0,
"jsx-quotes": [1, "prefer-double"],
"arrow-parens": ["error", "as-needed"],
"max-len": 0,
"comma-dangle": [
"error",
{
"arrays": "always-multiline",
"objects": "always-multiline",
"imports": "always-multiline",
"exports": "always-multiline",
"functions": "ignore"
}
],
"prettier/prettier": [
1,
{
"singleQuote": true,
"trailingComma": "es5"
}
],
"linebreak-style": 0
}
}