Created
July 15, 2016 15:07
-
-
Save parkerproject/0ff30c82d385ad08a3945f3b983e7482 to your computer and use it in GitHub Desktop.
config for eslint
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': 'eslint-config-airbnb', | |
| 'env': { | |
| 'browser': true, | |
| 'node': true, | |
| 'mocha': true | |
| }, | |
| 'rules': { | |
| 'no-unused-vars': 0, | |
| 'no-debugger': 0, | |
| 'spaced-comment': [2, 'always'], | |
| 'no-multi-spaces': 0, | |
| 'react/no-multi-comp': 0, | |
| 'react/jsx-no-undef': 1, | |
| 'import/default': 0, | |
| 'import/no-duplicates': 0, | |
| 'import/named': 0, | |
| 'import/namespace': 0, | |
| 'import/no-unresolved': 0, | |
| 'import/no-named-as-default': 2, | |
| 'comma-dangle': 0, // not sure why airbnb turned this on. gross! | |
| 'indent': 0, | |
| 'no-console': 0, | |
| 'no-alert': 0, | |
| 'id-length': 0 | |
| }, | |
| 'plugins': [ | |
| 'react', 'import' | |
| ], | |
| 'settings': { | |
| 'import/parser': 'babel-eslint', | |
| 'import/resolve': { | |
| moduleDirectory: ['node_modules', 'src'] | |
| } | |
| }, | |
| 'globals': { | |
| 'store': true, | |
| '__DEVELOPMENT__': true, | |
| '__CLIENT__': true, | |
| '__SERVER__': true, | |
| '__DISABLE_SSR__': true, | |
| '__DEVTOOLS__': true, | |
| 'socket': true, | |
| 'webpackIsomorphicTools': true | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment