diff --git a/.eslintignore b/.eslintignore index 32c436742..bf25b304a 100644 --- a/.eslintignore +++ b/.eslintignore @@ -1,4 +1,3 @@ -public/js/bundle.js +/dist +/public components/index.js -dist/ -**/*.jsx diff --git a/.eslintrc.json b/.eslintrc.json index 1cb4ed3b0..d09cebee9 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -1,5 +1,5 @@ { - "extends": "standard", + "extends": ["standard", "standard-jsx"], "env": { "node": true, "es6": true, @@ -9,5 +9,9 @@ "ecmaFeatures": { "jsx": true } - } + }, + "plugins": ["react"], + "settings": { + "react": { "pragma": "createElement" } + } } diff --git a/components/_preview.jsx b/components/_preview.jsx index a901241ab..45b7b38e9 100644 --- a/components/_preview.jsx +++ b/components/_preview.jsx @@ -1,19 +1,19 @@ -import { createElement } from "complate-stream"; +import { createElement } from 'complate-stream' -export default function PreviewLayout(params, ...children) { - const stylesheetPath = params.context.app.uri("css/bundle.css"); +export default function PreviewLayout ({ context }, ...children) { + const stylesheetPath = context.app.uri('css/bundle.css') - return - - - - - - Preview Layout - - - {children} - - - ; + return + + + + + + Preview Layout + + + {children} + +