Skip to content

Instantly share code, notes, and snippets.

@zerosrat
Last active March 27, 2019 12:52
Show Gist options
  • Save zerosrat/662bdd1ad71b9a95606990ce90360e4a to your computer and use it in GitHub Desktop.
Save zerosrat/662bdd1ad71b9a95606990ce90360e4a to your computer and use it in GitHub Desktop.
eslint config for react app or tinny eslint config
{
"extends": "standard",
"rules": {
"space-before-function-paren": ["error", {
"anonymous": "never",
"named": "never",
"asyncArrow": "always"
}]
}
}
module.exports = {
parser: 'babel-eslint',
extends: ['standard', 'standard-jsx'],
env: {
browser: true,
node: true
},
rules: {
'space-before-function-paren': ['error', {
anonymous: 'never',
named: 'never',
asyncArrow: 'always'
}],
'jsx-quotes': ['error', 'prefer-double']
}
}
@zerosrat
Copy link
Author

note:
eslint-config-standard
eslint-plugin-standard
eslint-plugin-import
eslint-plugin-node
eslint-plugin-promise

above dependencies required

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment