eslint-plugin-jest-dom 3.0.0 → 3.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -10,7 +10,7 @@ var _default = ({
10
10
  negatedPreferred,
11
11
  attributes
12
12
  }) => context => {
13
- const getCorrectFunctionFor = (node, negated = false) => (node.arguments.length === 1 || node.arguments[1].value === true || node.arguments[1].value === "") && !negated ? preferred : negatedPreferred;
13
+ const getCorrectFunctionFor = (node, negated = false) => (node.arguments.length === 1 || node.arguments[1].value === true || typeof node.arguments[1].value === "string" && node.arguments[1].value.toLowerCase() === "true" || node.arguments[1].value === "") && !negated ? preferred : negatedPreferred;
14
14
 
15
15
  const isBannedArg = node => attributes.some(attr => attr === node.arguments[0].value);
16
16
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-jest-dom",
3
- "version": "3.0.0",
3
+ "version": "3.0.1",
4
4
  "description": "ESLint plugin to follow best practices and anticipate common mistakes when writing tests with jest-dom",
5
5
  "main": "dist/index.js",
6
6
  "keywords": [
@@ -41,7 +41,10 @@
41
41
  "eslint": "^7.0.0"
42
42
  },
43
43
  "eslintConfig": {
44
- "extends": "./node_modules/kcd-scripts/eslint.js"
44
+ "extends": "./node_modules/kcd-scripts/eslint.js",
45
+ "rules": {
46
+ "babel/quotes": "off"
47
+ }
45
48
  },
46
49
  "eslintIgnore": [
47
50
  "node_modules",