Skip to content
This repository has been archived by the owner on Aug 2, 2023. It is now read-only.

Commit

Permalink
JSX support added
Browse files Browse the repository at this point in the history
  • Loading branch information
dhinesh03 committed Aug 2, 2018
1 parent b4dcf69 commit 7f91283
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
7 changes: 5 additions & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,15 @@ module.exports = {
globals: {
'm': true
},
extends: 'eslint:recommended',
extends: [
'eslint:recommended',
],
parserOptions: {
sourceType: 'module',
ecmaVersion: 6,
ecmaFeatures: {
experimentalObjectRestSpread: true
experimentalObjectRestSpread: true,
jsx: true,
}
},
rules: {
Expand Down
4 changes: 2 additions & 2 deletions src/view/pages/landing-page.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ export default function() {
]); */
return (
<div>
<h2>Congratulations, you made it!'</h2>
<h2>Congratulations, you made it!</h2>
<p>You've spun up your very first Mithril app :-)</p>
<SampleComponent />
</div>
)
);
},
};
}
8 changes: 4 additions & 4 deletions webpack.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@ module.exports = {
options: {
presets: ['env', 'stage-3'],
plugins: [
["transform-react-jsx", {
"pragma": "m"
}]
]
['transform-react-jsx', {
'pragma': 'm',
}],
],
},
}],
}],
Expand Down

0 comments on commit 7f91283

Please sign in to comment.