From 4cf2a8c791cfd6bdbddfe2279f6ddb8545a3ee05 Mon Sep 17 00:00:00 2001 From: Ivar Date: Sun, 11 Sep 2016 22:56:17 +0200 Subject: [PATCH] fix linting #153 --- packages/unleash-frontend-next/src/.eslintrc | 24 ++++++++++++++++++++ packages/unleash-frontend-next/src/App.jsx | 12 +++++----- packages/unleash-frontend-next/src/index.js | 2 -- 3 files changed, 30 insertions(+), 8 deletions(-) create mode 100644 packages/unleash-frontend-next/src/.eslintrc diff --git a/packages/unleash-frontend-next/src/.eslintrc b/packages/unleash-frontend-next/src/.eslintrc new file mode 100644 index 0000000000..b2d0257498 --- /dev/null +++ b/packages/unleash-frontend-next/src/.eslintrc @@ -0,0 +1,24 @@ +{ + "extends": [ + "finn", + "finn-react" + ], + "env": { + "browser": true, + "commonjs": true, + "es6": true + }, + "rules": { + "react/sort-comp": "off" + }, + "ecmaFeatures": { + "sourceType": "module" + }, + "parserOptions": { + "sourceType": "module", + "ecmaFeatures": { + "jsx": true, + "experimentalObjectRestSpread": true + } + } +} diff --git a/packages/unleash-frontend-next/src/App.jsx b/packages/unleash-frontend-next/src/App.jsx index 5de2c5a813..36387b0b70 100644 --- a/packages/unleash-frontend-next/src/App.jsx +++ b/packages/unleash-frontend-next/src/App.jsx @@ -1,9 +1,9 @@ import React, { Component } from 'react'; export default class App extends Component { - render() { - return ( -

Hello, world

- ); - } -} + render () { + return ( +

Hello, world

+ ); + } +}; diff --git a/packages/unleash-frontend-next/src/index.js b/packages/unleash-frontend-next/src/index.js index 1a496ffac1..b597a44232 100644 --- a/packages/unleash-frontend-next/src/index.js +++ b/packages/unleash-frontend-next/src/index.js @@ -1,5 +1,3 @@ -'use strict'; - import React from 'react'; import ReactDOM from 'react-dom'; import App from './App';