Move babel config into separate file
This works better with the current eslint loader, as then eslint and babel can look at the same configuration. See <https://babeljs.io/docs/en/config-files>. This is similar to .eslintrc.json.
This commit is contained in:
parent
04d6c566c7
commit
e449e94564
2 changed files with 15 additions and 20 deletions
14
.babelrc.json
Normal file
14
.babelrc.json
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
{
|
||||
"presets": [
|
||||
["@babel/env", {
|
||||
"targets": {
|
||||
"chrome": "57",
|
||||
"firefox": "52",
|
||||
"safari": "10.3",
|
||||
"edge": "16",
|
||||
"opera": "44"
|
||||
}
|
||||
}],
|
||||
"@babel/preset-react"
|
||||
]
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue