Created
January 8, 2018 05:02
-
-
Save casprwang/da1be95b53d9690440e842d23b9fa23b to your computer and use it in GitHub Desktop.
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
Show hidden characters
{ | |
"env": { | |
"browser": true, | |
"es6": true, | |
"node": true | |
}, | |
"extends": ["eslint:recommended", "plugin:react/recommended"], | |
"parserOptions": { | |
"ecmaFeatures": { | |
"experimentalObjectRestSpread": true, | |
"jsx": true | |
}, | |
"sourceType": "module" | |
}, | |
"rules": { | |
"indent": [0, 2], | |
"linebreak-style": ["error", "unix"], | |
"quotes": [0, "single"], | |
"semi": ["error", "never"], | |
"brace-style": [2, "1tbs", { | |
"allowSingleLine": true | |
}], | |
"curly": [2, "all"], | |
"no-console": ["error", { | |
"allow": ["warn", "error", "log"] | |
}], | |
"no-unused-vars": 0, | |
"no-empty": [0, "never"], | |
"curly": 0, | |
"comma-dangle": [2, "always-multiline"], | |
"no-constant-condition": [2, { | |
"checkLoops": false | |
}], | |
"key-spacing": [ | |
0, { | |
"multiLine": { | |
"beforeColon": false, | |
"afterColon": true | |
}, | |
"align": { | |
"beforeColon": false, | |
"afterColon": false, | |
"on": "colon" | |
} | |
} | |
], | |
"react/jsx-indent": [2, 2], | |
"react/jsx-tag-spacing": { | |
"closingSlash": "never" | |
}, | |
"react/self-closing-comp": ["error", { | |
"component": true, | |
"html": true | |
}] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment