eslint-config-edx
Version:
ESLint config for edX JavaScript ES2015+ code.
18 lines (14 loc) • 325 B
JavaScript
export default () => {
const propertyQuote = {
bar: 'buzz',
'mixed-quote-prop': 'mixed quotes are ok!',
};
const simpleESLintTest = 'This file should have no errors';
if (propertyQuote.bar === 'X') {
return false;
}
if (simpleESLintTest.charAt(0) === 'X') {
return false;
}
return true;
};