Last active
July 15, 2019 11:40
-
-
Save danieldfc/0e03817f0b1ff384bc34680865ba167f to your computer and use it in GitHub Desktop.
Este arquivo guarda o package.json para o React Hooks, usando o eslint.
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", | |
"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" | |
} | |
}; |
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
{ | |
"name": "testReact", | |
"version": "0.1.0", | |
"private": true, | |
"dependencies": { | |
"react": "^16.8.6", | |
"react-dom": "^16.8.6", | |
"react-scripts": "3.0.1" | |
}, | |
"scripts": { | |
"start": "react-scripts start", | |
"build": "react-scripts build", | |
"test": "react-scripts test", | |
"eject": "react-scripts eject" | |
}, | |
"browserslist": { | |
"production": [ | |
">0.2%", | |
"not dead", | |
"not op_mini all" | |
], | |
"development": [ | |
"last 1 chrome version", | |
"last 1 firefox version", | |
"last 1 safari version" | |
] | |
}, | |
"devDependencies": { | |
"babel-eslint": "10.0.1", | |
"eslint": "^5.16.0", | |
"eslint-config-airbnb": "^17.1.1", | |
"eslint-config-prettier": "^6.0.0", | |
"eslint-plugin-import": "^2.18.0", | |
"eslint-plugin-jsx-a11y": "^6.2.3", | |
"eslint-plugin-prettier": "^3.1.0", | |
"eslint-plugin-react": "^7.14.2", | |
"eslint-plugin-react-hooks": "^1.6.1", | |
"prettier": "^1.18.2" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment