open-nomad/ui/tests/.eslintrc.js

46 lines
1 KiB
JavaScript
Raw Normal View History

2017-09-19 14:47:10 +00:00
module.exports = {
globals: {
server: true,
2017-10-11 17:12:10 +00:00
selectChoose: true,
selectSearch: true,
removeMultipleOption: true,
clearSelected: true,
getCodeMirrorInstance: true,
2017-09-19 14:47:10 +00:00
},
env: {
embertest: true,
},
overrides: [
{
files: ['acceptance/**/*-test.js'],
plugins: ['ember-a11y-testing'],
rules: {
'ember-a11y-testing/a11y-audit-called': 'error',
},
settings: {
'ember-a11y-testing': {
auditModule: {
package: 'nomad-ui/tests/helpers/a11y-audit',
exportName: 'default',
},
},
},
},
{
files: ['integration/components/**/*-test.js'],
plugins: ['ember-a11y-testing'],
rules: {
'ember-a11y-testing/a11y-audit-called': 'error',
},
settings: {
'ember-a11y-testing': {
auditModule: {
package: 'nomad-ui/tests/helpers/a11y-audit',
exportName: 'componentA11yAudit',
},
},
},
},
],
2017-09-19 14:47:10 +00:00
};