Last active
February 4, 2017 06:19
-
-
Save mathew-kurian/dbd7700a30c9d1791cab to your computer and use it in GitHub Desktop.
ESLint config
This file contains 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
**/*.compiled.js | |
node_modules/ | |
public/ | |
cordova/ | |
resources/ | |
other/ |
This file contains 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
{ | |
"root": true, | |
"extends": "airbnb", | |
"plugins": [ | |
"react", | |
"mocha", | |
"markdown" | |
], | |
"parser": "babel-eslint", | |
"env": { | |
"node": true, | |
"mocha": true, | |
"es6": true | |
}, | |
"rules": { | |
"mocha/no-exclusive-tests": 2, | |
"comma-dangle": [ | |
2, | |
"never" | |
], | |
"object-curly-spacing": [ | |
2, | |
"never" | |
], | |
"object-shorthand": [ | |
2, | |
"always" | |
], | |
"no-console": 0, | |
"no-extra-parens": 2, | |
"arrow-body-style": [ | |
2, | |
"as-needed" | |
], | |
"arrow-parens": [ | |
2, | |
"as-needed" | |
], | |
"valid-jsdoc": 2, | |
"no-unreachable": 2, | |
"prefer-template": 2, | |
"prefer-arrow-callback": 2, | |
"react/jsx-no-bind": [ | |
2, | |
{ | |
"ignoreRefs": true, | |
"allowArrowFunctions": true, | |
"allowBind": false | |
} | |
], | |
"arrow-spacing": [ | |
2, | |
{ | |
"before": true, | |
"after": true | |
} | |
], | |
"no-useless-call": 2, | |
"no-proto": 2, | |
"no-useless-concat": 2, | |
"max-len": [2, 120, 4], | |
"no-param-reassign": 0, | |
"jsx-quotes": [2, "prefer-single"], | |
"react/jsx-indent-props": 0 | |
}, | |
"ecmaFeatures": { | |
"jsx": true, | |
"objectLiteralShorthandProperties": true, | |
"spread": true | |
} | |
} |
This file contains 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
npm install eslint -g | |
npm install -g eslint-config-airbnb eslint-plugin-markdown | |
npm install -g eslint-plugin-mocha eslint-plugin-react babel-eslint |
This file contains 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
{ | |
"scripts": { | |
"lint": "eslint --ext js,.es6,.jsx ./" | |
}, | |
"devDependencies": { | |
"babel-eslint": "^4.1.6", | |
"eslint": "^1.10.3", | |
"eslint-config-airbnb": "^4.0.0", | |
"eslint-plugin-markdown": "^1.0.0-beta.1", | |
"eslint-plugin-mocha": "^1.1.0", | |
"eslint-plugin-react": "^3.16.1" | |
} | |
} |
This file contains 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
http://i.imgur.com/mM56CKx.png |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment