Skip to content

Instantly share code, notes, and snippets.

@hullen
Created November 18, 2019 12:05
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 hullen/0143a9adc85b9ab2073f5b399bde73a2 to your computer and use it in GitHub Desktop.
Save hullen/0143a9adc85b9ab2073f5b399bde73a2 to your computer and use it in GitHub Desktop.
{
"parser": "babel-eslint",
"extends": ["airbnb", "airbnb/hooks", "prettier"],
"plugins": ["react", "react-hooks", "prettier"],
"env": {
"browser": true,
"node": true,
"es6": true,
"jest": true
},
"globals": {
"React": true,
"document": true,
"window": true,
"localStorage": true,
"fetch": true
},
"root": true,
"rules": {
"react/jsx-filename-extension": [
1,
{
"extensions": ["js", "jsx"]
}
],
"react/prefer-stateless-function": 0,
"react/jsx-wrap-multilines": 0,
"react/prop-types": 0,
"react/forbid-prop-types": 0,
"react/jsx-one-expression-per-line": 0,
"react/destructuring-assignment": 0,
"babel/no-unused-expressions": 0,
"import/no-extraneous-dependencies": 0,
"class-methods-use-this": 0,
"global-require": 0,
"max-len": [
2,
80,
2,
{
"ignoreUrls": true,
"ignoreComments": false,
"ignoreStrings": true,
"ignoreTemplateLiterals": true
}
],
"object-curly-spacing": 2,
"camelcase": 1,
"no-underscore-dangle": 0,
"consistent-return": 0,
"no-shadow": 0,
"no-return-assign": 0,
"new-cap": 0,
"no-mixed-operators": 0,
"prettier/prettier": 2,
"jest/no-disabled-tests": 1,
"jest/no-focused-tests": 2,
"jest/no-identical-title": 2,
"jest/prefer-to-have-length": 1,
"jest/valid-expect": 2
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment