Skip to content

Commit

Permalink
Merge pull request #6 from TaiBIF/feature/eslint-base
Browse files Browse the repository at this point in the history
eslint + precommit hooks
  • Loading branch information
Chihjen Ko committed Nov 11, 2018
2 parents 0b8fd69 + baef36f commit 4b00ed0
Show file tree
Hide file tree
Showing 5 changed files with 6,945 additions and 144 deletions.
45 changes: 43 additions & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,44 @@
module.exports = {
"extends": "standard"
};
parser: 'babel-eslint',
extends: [
'airbnb',
'prettier',
'prettier/flowtype',
'prettier/react',
'prettier/standard',
'loopback',
],
plugins: ['prettier'],
rules: {
'object-curly-spacing': 0,
'no-console': 0,
'global-require': 0,
'no-unused-expressions': [2, { allowTaggedTemplates: true }],
'consistent-return': 0,
'no-underscore-dangle': 0,
'no-debugger': 0,
'no-param-reassign': [2, { props: false }],
'no-unused-vars': [
2,
{ vars: 'all', args: 'none', ignoreRestSiblings: true },
],

'prettier/prettier': 2,

'react/jsx-curly-brace-presence': [
2,
{ props: 'always', children: 'never' },
],
'react/no-unescaped-entities': 0,
'react/jsx-filename-extension': [1, { extensions: ['.js', '.jsx'] }],
'react/prefer-stateless-function': 0,
'react/prop-types': [
2,
{
ignore: ['children', 'style', 'location', 'className'],
},
],

'import/no-extraneous-dependencies': [2, { devDependencies: true }],
},
};
Loading

0 comments on commit 4b00ed0

Please sign in to comment.