Skip to content

Commit 45569f6

Browse files
committed
v6 alpha release to play with testing-library and jest-dom eslint plugins
1 parent d9f4c4e commit 45569f6

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@fs/eslint-config-frontier-react",
3-
"version": "5.0.2",
3+
"version": "6.0.0-alpha.0",
44
"description": "A common ESLint configuration setup for frontier apps",
55
"main": "index.js",
66
"scripts": {
@@ -39,6 +39,7 @@
3939
"eslint-plugin-html": "^6.0.0",
4040
"eslint-plugin-import": "^2.16.0",
4141
"eslint-plugin-jest": "^23.0.4",
42+
"eslint-plugin-jest-dom": "^2.1.0",
4243
"eslint-plugin-jsdoc": "^18.0.1",
4344
"eslint-plugin-json": "^2.0.1",
4445
"eslint-plugin-jsx-a11y": "^6.1.2",
@@ -47,6 +48,7 @@
4748
"eslint-plugin-prettier": "^3.0.0",
4849
"eslint-plugin-react": "^7.16.0",
4950
"eslint-plugin-react-hooks": "^3.0.0",
51+
"eslint-plugin-testing-library": "^3.1.3",
5052
"eslint-plugin-you-dont-need-lodash-underscore": "^6.10.0",
5153
"prettier": "^1.15.3"
5254
},

scripts/combineRules.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ configsToCombine.forEach((config) => {
3131
})
3232

3333
fs.writeFileSync(
34-
path.join(process.cwd(), 'codeclimateEslintRulesv5.js'),
34+
path.join(process.cwd(), 'codeclimateEslintRulesv6.js'),
3535
`// THIS FILE IS AUTO-GENERATED. DO NOT MODIFY THIS FILE BY HAND
3636
module.exports = ${JSON.stringify(codeclimateConfig, null, 2)}`
3737
)

test-helpers.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/*
2+
* We can't combine this into the jest.js file because codeclimate uses the jest.js configuration
3+
* and codeclimate doesn't work with eslint-plugin-jest-dom and eslint-plugin-testing-library
4+
**/
5+
module.exports = {
6+
extends: ['plugin:jest-dom/recommended', 'plugin:testing-library/react'],
7+
}

0 commit comments

Comments
 (0)