chore: apply amnesty on existing not fixable issues (#32215)

* fix: eslint operator-linebreak issue

* fix: eslint quotes issue

* fix: react jsx indent and props issues

* fix: eslint trailing spaces issues

* fix: eslint line around directives issue

* fix: eslint semi rule

* fix: eslint newline per chain rule

* fix: eslint space infix ops rule

* fix: eslint space-in-parens issue

* fix: eslint space before function paren issue

* fix: eslint space before blocks issue

* fix: eslint arrow body style issue

* fix: eslint dot-location issue

* fix: eslint quotes issue

* fix: eslint quote props issue

* fix: eslint operator assignment issue

* fix: eslint new line after import issue

* fix: indent issues

* fix: operator assignment issue

* fix: all autofixable eslint issues

* fix: all react related fixable issues

* fix: autofixable eslint issues

* chore: remove all template literals

* fix: remaining autofixable issues

* chore: apply amnesty on all existing issues

* fix: failing xss-lint issues

* refactor: apply amnesty on remaining issues

* refactor: apply amnesty on new issues

* fix: remove file level suppressions

* refactor: apply amnesty on new issues
This commit is contained in:
Syed Ali Abbas Zaidi
2023-08-07 19:13:19 +05:00
committed by GitHub
parent e94af3c2d3
commit 8480dbc228
305 changed files with 1043 additions and 202 deletions

View File

@@ -18,6 +18,7 @@ class CircleChart extends React.Component {
getCenter() {
const {centerHole, sliceBorder} = this.props;
if (centerHole) {
// eslint-disable-next-line no-shadow
const size = center / 2;
return (
<circle cx={center} cy={center} r={size} fill={sliceBorder.strokeColor} />
@@ -43,6 +44,7 @@ class CircleChart extends React.Component {
cx={center}
cy={center}
className="slice-1"
// eslint-disable-next-line react/no-array-index-key
key={index}
/>
);
@@ -85,6 +87,7 @@ class CircleChart extends React.Component {
<path
d={d}
className={`slice-${sliceIndex}`}
// eslint-disable-next-line react/no-array-index-key
key={index}
stroke={strokeColor}
strokeWidth={strokeWidth}
@@ -115,8 +118,11 @@ CircleChart.defaultProps = {
};
CircleChart.propTypes = {
// eslint-disable-next-line react/forbid-prop-types
slices: PropTypes.array.isRequired,
// eslint-disable-next-line react/require-default-props
centerHole: PropTypes.bool,
// eslint-disable-next-line react/forbid-prop-types
sliceBorder: PropTypes.object
};