Created
September 11, 2018 10:10
-
-
Save joshuacrass/528f710775002cf516f38f02e8158a46 to your computer and use it in GitHub Desktop.
eslintrc example for importing Webpack for ESLint to understand Webpack aliases.
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
{ | |
"extends": ["airbnb", "prettier", "prettier/flowtype", "prettier/react"], | |
"plugins": ["import", "flowtype", "react", "prettier"], | |
"parser": "babel-eslint", | |
"rules": { | |
"react/jsx-filename-extension": [ | |
1, | |
{ | |
"extensions": [".js", "jsx"] | |
} | |
], | |
"prettier/prettier": ["error"], | |
"max-len": ["error", 80] | |
}, | |
"parserOptions": { | |
"sourceType": "module", | |
"ecmaFeatures": { | |
"jsx": true | |
} | |
}, | |
"env": { | |
"browser": true, | |
"jest": true, | |
"es6": true, | |
"node": true | |
}, | |
"settings": { | |
"import/resolver": { | |
"webpack": { | |
"config": "./config/webpack/webpack-common-config.js" | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment