sindresorhus / eslint-plugin-unicorn
Showing 1 of 1 files from the diff.

@@ -139,7 +139,7 @@
Loading
139 139
140 140
		if (!nameProperty?.value || nameProperty.value.value !== name) {
141 141
			yield {
142 -
				node: nameProperty?.value ? nameProperty.value : constructorBodyNode,
142 +
				node: nameProperty?.value ?? constructorBodyNode,
143 143
				message: `The \`name\` property should be set to \`${name}\`.`,
144 144
			};
145 145
		}
Files Coverage
configs 100.00%
rules 99.87%
scripts 73.33%
index.js 100.00%
Project Totals (203 files) 99.70%
1
coverage:
2
  status:
3
    project:
4
      default:
5
        target: 99%
6
        threshold: 1%
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading