Last active
September 22, 2019 13:24
-
-
Save avitorio/af321dad1658b13e7af6e6ba98b6ffdd to your computer and use it in GitHub Desktop.
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
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", | |
"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