eslint-config-es
Version:
eslint-config-es contains a strict ESLint configuration for ES2015+ and TypeScript.
31 lines (28 loc) • 718 B
text/typescript
import { withPlugin } from '../betterRules/withPlugin';
const mochaRules = withPlugin('mocha', {
handleDoneCallback: [{ ignoreSkipped: false }],
maxTopLevelSuites: [{ limit: 1 }],
noAsyncDescribe: [],
noExclusiveTests: [],
noExports: [],
noGlobalTests: [],
noHooks: false,
noHooksForSingleCase: false,
noIdenticalTitle: [],
noMochaArrows: false,
noNestedTests: [],
noPendingTests: [],
noReturnAndCallback: [],
noReturnFromAsync: [],
noSetupInDescribe: false,
noSiblingHooks: [],
noSkippedTests: [],
noSynchronousTests: [],
noTopLevelHooks: [],
preferArrowCallback: false,
validSuiteDescription: [ '[^\\.]$' ],
validTestDescription: [ '\\.$' ]
});
export {
mochaRules
};