Created
February 26, 2020 09:19
-
-
Save alexandreramosdev/ef3f450977c9ce38ad591a6ad3136afd to your computer and use it in GitHub Desktop.
This file contains hidden or 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
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