Last active
March 14, 2018 20:31
-
-
Save anthonybrown/48aa9a0e11183810fa821e8c2aab92ca to your computer and use it in GitHub Desktop.
Another eslintrc file I use
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", | |
"env": { | |
"browser": true, | |
"node": true, | |
"es6": true | |
}, | |
"plugins": [ | |
"react", | |
"jsx-a11y", | |
"import" | |
], | |
"parser": "babel-eslint", | |
"parserOptions": { | |
"sourceType": "module" | |
}, | |
"settings": { | |
"import/resolver": { | |
"babel-module": {} | |
} | |
}, | |
"rules": { | |
"import/no-extraneous-dependencies": ["error", { | |
"devDependencies": true, | |
"peerDependencies": true | |
}], | |
"quotes": ["error", "single", { | |
"avoidEscape": true | |
}], | |
"keyword-spacing": ["error", { | |
"overrides": { | |
"if": { "after": false }, | |
"for": { "after": false }, | |
"while": { "after": false }, | |
"catch": { "after": false }, | |
"switch": { "after": false } | |
} | |
}], | |
"generator-star-spacing": ["error", { | |
"before": true, | |
"after": true | |
}], | |
"no-plusplus": ["error", { | |
"allowForLoopAfterthoughts": true | |
}], | |
"indent": ["error", 2, { | |
"SwitchCase": 1 | |
}], | |
"func-names": "off", | |
"comma-dangle": ["error", "always"], | |
"array-bracket-spacing": ["error", "always"], | |
"arrow-body-style": "off", | |
"semi": ["error", "never"], | |
"global-require": "warn", | |
"class-methods-use-this": "off", | |
"react/forbid-prop-types": "off", | |
"react/require-default-props": "off", | |
"react/jsx-closing-bracket-location": ["error", "after-props"] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment