Created
August 3, 2016 13:34
-
-
Save jeffschwartz/77ee4b1d601842f209aea26866b83934 to your computer and use it in GitHub Desktop.
My default ESLint configuration
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 = { | |
| "extends": "standard", | |
| "plugins": [ | |
| "standard", | |
| "promise", | |
| "react" | |
| ], | |
| "env": { | |
| "browser": true, | |
| "node": true, | |
| "es6": true | |
| }, | |
| "parserOptions": { | |
| "ecmaFeatures": { | |
| "jsx": true, | |
| "modules": true, | |
| "classes": true | |
| } | |
| }, | |
| "settings": { | |
| "react": { | |
| "pragma": "React", // Pragma to use, default to "React" | |
| "version": "15.0" // React version, default to the latest React stable release | |
| } | |
| }, | |
| "rules": { | |
| "semi": ["error", "always"], | |
| "quotes": ["error", "double"], | |
| "indent": ["error", 4], | |
| "react/jsx-uses-vars": "error", | |
| "eol-last": 0 | |
| } | |
| }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment