Created
October 16, 2017 19:25
-
-
Save JustFly1984/8400347d710f8de4295a638275872540 to your computer and use it in GitHub Desktop.
ultimate eslint config. just paste into `package.json`
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
"eslintConfig": { | |
"parser": "babel-eslint", | |
"extends": [ | |
"standard", | |
"standard-react" | |
], | |
"plugins": [ | |
"import" | |
], | |
"env": { | |
"browser": true, | |
"es6": true | |
}, | |
"globals": { | |
"__DEV__": false, | |
"__PROD__": false, | |
"__PLAYER_DEBUG__": false, | |
"__BASENAME__": false | |
}, | |
"settings": { | |
"ecmascript": 6, | |
"import/resolver": "webpack" | |
}, | |
"rules": { | |
"semi": 0, | |
"spaced-comment": 0, | |
"brace-style": 0, | |
"no-trailing-spaces": 0, | |
"import/default": 2, | |
"import/no-unresolved": [ | |
2, | |
{ | |
"commonjs": true, | |
"amd": true | |
} | |
], | |
"import/named": 2, | |
"import/namespace": 2, | |
"import/export": 2, | |
"import/no-duplicates": 2, | |
"import/imports-first": 2 | |
}, | |
"parserOptions": { | |
"sourceType": "module", | |
"ecmaFeatures": { | |
"jsx": true, | |
"experimentalObjectRestSpread": true, | |
"modules": true, | |
"arrowFunctions": true, | |
"blockBindings": true, | |
"destructuring": true, | |
"spread": true, | |
"templateStrings": true, | |
"forOf": true | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment