Created
February 6, 2017 15:24
-
-
Save lydell/59a69352139182b9465f01f1d9207587 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
'plugins': ['flowtype', 'prettier'], | |
"globals": { | |
"window": true | |
}, | |
'rules': { | |
'import/extensions': 'off', | |
'import/no-extraneous-dependencies': 'off', | |
'import/no-unresolved': 'off', | |
'no-underscore-dangle': 'off', | |
'no-unused-vars': ["error", { "varsIgnorePattern": "_" }], | |
'import/prefer-default-export': 'off', | |
'prefer-template': 'off', | |
'react/prop-types': 'off', | |
'react/no-multi-comp': 'off', | |
'jsx-a11y/href-no-hash': 'off', | |
"react/jsx-filename-extension": 'off', | |
'react/jsx-closing-bracket-location': 'off', | |
'react/jsx-indent-props': 'off', | |
'react/jsx-indent': 'off', | |
'no-return-assign': 'off', | |
'no-throw-literal': 'off', | |
'no-use-before-define': 'off', | |
'no-param-reassign': ['error', { 'props': false }], | |
"prettier/prettier": ['warn', {'singleQuote': true}], | |
'no-nested-ternary': 'off', | |
'no-constant-condition': 'off' | |
}, | |
"parserOptions": { | |
"ecmaVersion": 2016, | |
"sourceType": "module", | |
"ecmaFeatures": { | |
"jsx": true | |
} | |
}, | |
"env": { | |
"es6": true, | |
"node": true | |
}, | |
'extends': ['airbnb', 'plugin:flowtype/recommended', 'prettier', 'prettier/react' ] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"private": true, | |
"scripts": { | |
"test": "eslint test.js" | |
}, | |
"devDependencies": { | |
"babel-eslint": "^7.1.1", | |
"eslint": "^3.15.0", | |
"eslint-config-airbnb": "^14.1.0", | |
"eslint-config-prettier": "^1.0.3", | |
"eslint-plugin-flowtype": "^2.30.0", | |
"eslint-plugin-import": "^2.2.0", | |
"eslint-plugin-jsx-a11y": "^4.0.0", | |
"eslint-plugin-prettier": "^2.0.0", | |
"eslint-plugin-react": "^6.9.0", | |
"prettier": "^0.16.0" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
export const Hello = () => ( | |
<div> | |
<p>Hello {this.props.name}</p> | |
</div> | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment