Last active
March 27, 2019 12:52
-
-
Save zerosrat/662bdd1ad71b9a95606990ce90360e4a to your computer and use it in GitHub Desktop.
eslint config for react app or tinny eslint config
This file contains hidden or 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
{ | |
"extends": "standard", | |
"rules": { | |
"space-before-function-paren": ["error", { | |
"anonymous": "never", | |
"named": "never", | |
"asyncArrow": "always" | |
}] | |
} | |
} |
This file contains hidden or 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 = { | |
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'] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
note:
eslint-config-standard
eslint-plugin-standard
eslint-plugin-import
eslint-plugin-node
eslint-plugin-promise
above dependencies required