Skip to content

Commit d76a99d

Browse files
authored
Upgraded deps (#12)
1 parent c788503 commit d76a99d

10 files changed

+3222
-6683
lines changed

.babelrc

-39
This file was deleted.

.babelrc.js

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
const { NODE_ENV } = process.env
2+
const test = NODE_ENV === 'test'
3+
const loose = true
4+
5+
module.exports = {
6+
presets: [
7+
[
8+
'@babel/preset-env',
9+
{
10+
loose,
11+
...(test ? { targets: { node: '8' } } : {})
12+
}
13+
],
14+
'@babel/preset-react',
15+
'@babel/preset-flow'
16+
],
17+
plugins: [
18+
'@babel/plugin-transform-flow-strip-types',
19+
'@babel/plugin-syntax-dynamic-import',
20+
'@babel/plugin-syntax-import-meta',
21+
['@babel/plugin-proposal-class-properties', { loose }],
22+
'@babel/plugin-proposal-json-strings',
23+
[
24+
'@babel/plugin-proposal-decorators',
25+
{
26+
legacy: true
27+
}
28+
],
29+
'@babel/plugin-proposal-function-sent',
30+
'@babel/plugin-proposal-export-namespace-from',
31+
'@babel/plugin-proposal-numeric-separator',
32+
'@babel/plugin-proposal-throw-expressions',
33+
test && '@babel/plugin-transform-react-jsx-source'
34+
].filter(Boolean)
35+
}

.eslintrc

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
{
22
"extends": "react-app",
33
"rules": {
4-
"jsx-a11y/href-no-hash": 0
4+
"jsx-a11y/href-no-hash": 0,
5+
"react-hooks/rules-of-hooks": "error",
6+
"react-hooks/exhaustive-deps": "warn"
57
}
68
}

0 commit comments

Comments
 (0)