@vlsergey/react-bootstrap-error-boundary
Version:
Ready-to-use error boundary with Bootstrap Alert as error text display
34 lines (32 loc) • 808 B
JavaScript
/* eslint-env node */
module.exports = {
env: {
browser: true,
es6: true,
},
globals: {
// for test:
afterEach: true,
beforeEach: true,
describe: true,
it: true,
},
plugins: [ 'promise' ],
rules: {
/* Reports:
modules without any exports
individual exports not being statically imported or requireed from other modules in the same project */
'import/no-unused-modules': 0,
/* Prevent unnecessary path segments in import and require statements. */
'import/no-useless-path-segments': 1,
/* JSX props should not use arrow functions */
'react/jsx-no-bind': 0,
},
settings: {
'import/resolver': {
node: {
moduleDirectory: [ 'node_modules', 'src', 'test' ],
},
},
},
};