Skip to content

Commit

Permalink
fix lint issues in sample apps (#1909)
Browse files Browse the repository at this point in the history
* added no unknown property rule

* update eslintrc.js file

* update eslintrc.js file

* update eslintrc.js file

* fix lint issues in stylus-sample app

* fix lint issues in react-jest-app

* fix lint issues in react-jest-app

Co-authored-by: smuthya <[email protected]>
  • Loading branch information
smuthya and srinathm85 authored Oct 18, 2022
1 parent 6c4c9bb commit abd1175
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
3 changes: 2 additions & 1 deletion samples/react-jest-app/src/client/components/home.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class Home extends React.Component {
constructor(props) {
super(props);
}

/*eslint-disable */
render() {
return (
<div styleName="custom.container">
Expand All @@ -46,6 +46,7 @@ class Home extends React.Component {
</div>
);
}
/*eslint-enable */
}

Home.propTypes = {};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { toggleCheck, incNumber, decNumber } from "../actions";

const DemoPureStates = props => {
const { checked, value, dispatch } = props;
/*eslint-disable */
return (
<div>
<h6 className="docs-header">Demo Managing States in Pure Functional Component</h6>
Expand All @@ -33,6 +34,7 @@ const DemoPureStates = props => {
</div>
</div>
);
/*eslint-enable */
};

DemoPureStates.propTypes = {
Expand Down
2 changes: 2 additions & 0 deletions samples/stylus-sample/src/client/components/demo-states.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { toggleCheck, incNumber, decNumber } from "../actions";
class DemoStates extends React.Component {
render() {
const { checked, value, dispatch } = this.props;
/*eslint-disable */
return (
<div>
<h6 className="docs-header">Demo Managing States with Redux</h6>
Expand All @@ -29,6 +30,7 @@ class DemoStates extends React.Component {
</div>
</div>
);
/*eslint-enable */
}
}

Expand Down
6 changes: 5 additions & 1 deletion samples/stylus-sample/src/client/components/home.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import { DemoButtons } from "./demo-buttons";

/**/

export default () => (
const Home = () => (
<div className="container">
{/**/}

Expand All @@ -48,3 +48,7 @@ export default () => (
</div>
</div>
);

Home.displayName = "Home";

export default Home;

0 comments on commit abd1175

Please sign in to comment.