diff --git a/es6.js b/es6.js index b1724d0..c83b2b1 100644 --- a/es6.js +++ b/es6.js @@ -95,7 +95,7 @@ module.exports = { }, overrides: [ { - files: ['*.stories.*', '*test*', '**/test/**', '**/*mock*/**', '*mock*', '**/setupTests.*'], + files: ['*.stories.*', '*test*', '**/test/**', '**/*mock*/**', '*mock*', '**/setupTests.*', '**/fixtures/**'], extends: ['@fs/eslint-config-frontier-react/jest'], rules: { 'no-alert': 'off', diff --git a/index.js b/index.js index 9a06aad..7cd2d95 100644 --- a/index.js +++ b/index.js @@ -1,3 +1,3 @@ module.exports = { - extends: ['@fs/eslint-config-frontier-react/react', './es6'], + extends: ['@fs/eslint-config-frontier-react/react', './es6', './qa'], } diff --git a/package.json b/package.json index 19cb8f1..477993f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@fs/eslint-config-tree", - "version": "6.0.0-alpha.3", + "version": "6.0.0-alpha.4", "description": "Shared Tree configuration that contains overrides and enhancements on top of the base frontier configuration.", "main": "index.js", "repository": { diff --git a/qa.js b/qa.js new file mode 100644 index 0000000..c8f0ba1 --- /dev/null +++ b/qa.js @@ -0,0 +1,25 @@ +module.exports = { + overrides: [ + { + files: ['test/**/*.js'], + globals: { + 'browser': 'readonly', + '$': 'readonly', + '$$': 'readonly', + 'element': 'readonly', + 'by': 'readonly', + 'after': 'readonly' + }, + rules: { + 'jest/expect-expect': 'off', + 'global-require': 'off', + 'no-console': 'off', + 'object-shorthand': 'off', + 'import/no-extraneous-dependencies': ['error', { 'devDependencies': true }], + 'testing-library/no-await-sync-query': 'off', // All @testing-library/webdriverio queries are async (https://testing-library.com/docs/webdriverio-testing-library/intro/) + 'testing-library/prefer-screen-queries': 'off', // We use browser instead of screen for @testing-library/webdriverio + '@babel/no-unused-expressions': 'off' // to allow expressions like this: tree.expect(await (await $(tree.MBTpageObjects.getBCButton())).isDisplayed()).to.be.true + } + } + ] +}