Skip to content

Instantly share code, notes, and snippets.

@MichalZalecki
Last active May 29, 2016 15:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MichalZalecki/6a4587c88b3279bca2b5 to your computer and use it in GitHub Desktop.
Save MichalZalecki/6a4587c88b3279bca2b5 to your computer and use it in GitHub Desktop.
Reasonable .eslint confiig
{
"extends": "airbnb",
"parser": "babel-eslint",
"settings": {
"import/resolver": {
"webpack": { "config": "./webpack/webpack.prod.config.js" }
}
},
"rules": {
"quotes": ["error", "double"],
"no-unused-vars": ["error", { "vars": "local", "args": "after-used", "argsIgnorePattern": "^_" }]
}
}
{
"scripts": {
"lint": "eslint src --ext .js*"
},
"devDependencies": {
"babel-eslint": "^6.0.4",
"eslint": "^2.9.0",
"eslint-config-airbnb": "^9.0.1",
"eslint-import-resolver-webpack": "^0.2.4",
"eslint-plugin-import": "^1.6.1",
"eslint-plugin-jsx-a11y": "^1.0.4",
"eslint-plugin-react": "^5.0.1"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment