Skip to content

Instantly share code, notes, and snippets.

@alexandreramosdev
Created February 26, 2020 09:19
Show Gist options
  • Save alexandreramosdev/ef3f450977c9ce38ad591a6ad3136afd to your computer and use it in GitHub Desktop.
Save alexandreramosdev/ef3f450977c9ce38ad591a6ad3136afd to your computer and use it in GitHub Desktop.
module.exports = {
env: {
es6: true,
jest: true,
browser: true
},
extends: ["airbnb", "prettier", "prettier/react"],
globals: {
Atomics: "readonly",
SharedArrayBuffer: "readonly",
__DEV__: true
},
parserOptions: {
ecmaFeatures: {
jsx: true
},
ecmaVersion: 2018,
sourceType: "module"
},
plugins: ["react", "jsx-a11y", "import", "react-hooks", "prettier"],
rules: {
"prettier/prettier": "error",
"react/jsx-filename-extension": ["error", { extensions: [".js", ".jsx"] }],
"import/prefer-default-export": "off",
"no-unused-vars": ["error", { argsIgnorePattern: "^_" }],
"react/jsx-one-expression-per-line": "off",
"react/jsx-props-no-spreading": "off",
"global-require": "off",
"react-native/no-raw-text": "off",
"no-param-reassign": "off",
"no-underscore-dangle": "off",
camelcase: "off",
"no-console": ["error", { allow: ["tron"] }],
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn"
},
settings: {
"import/resolver": {
"babel-plugin-root-import": {
rootPathSuffix: "src"
},
},
},
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment