diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..03a962f --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,6 @@ +# Changelog + +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). diff --git a/package.json b/package.json index ee38c18..192bdf4 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,7 @@ "linting", "code quality" ], - "version": "1.0.12", + "version": "1.1.0", "main": "lib/index.js", "scripts": { "prepack": "npmignore --auto --commentLines=autogenerated && npm run build", diff --git a/src/rules/jsx-explicit-boolean.test.tsx b/src/rules/jsx-explicit-boolean.test.tsx index 652a795..53ed2d7 100644 --- a/src/rules/jsx-explicit-boolean.test.tsx +++ b/src/rules/jsx-explicit-boolean.test.tsx @@ -31,6 +31,7 @@ ruleTester.run("jsx-explicit-boolean", require("./jsx-explicit-boolean"), { // Rest { code: "const a = true; a &&
;" }, + { code: "const a = true; const b = a; b && ;" }, { code: "const a = false; a && ;" }, { code: "const a = true; Boolean(a) && ;" }, { code: "const a = false; Boolean(a) && ;" }, @@ -143,5 +144,10 @@ ruleTester.run("jsx-explicit-boolean", require("./jsx-explicit-boolean"), { output: "const a = 1; const b = '0'; const c = 0;