diff options
author | Renard | 2019-09-16 15:14:16 -0300 |
---|---|---|
committer | Renard | 2019-09-16 15:14:16 -0300 |
commit | a7c41857117523eedbd24477f2b2ea9b7f3571ac (patch) | |
tree | ae993aef83d591be4f5c2245f5a625145a633a8f | |
parent | eaba5936e4654fd370af11dda79e3af213b4e04c (diff) | |
download | bai-client-a7c41857117523eedbd24477f2b2ea9b7f3571ac.tar.gz bai-client-a7c41857117523eedbd24477f2b2ea9b7f3571ac.tar.xz bai-client-a7c41857117523eedbd24477f2b2ea9b7f3571ac.zip |
Setup babel, browser list modificada
-rw-r--r-- | .babelrc | 3 | ||||
-rw-r--r-- | .eslintrc.json | 1 | ||||
-rw-r--r-- | package-lock.json | 72 | ||||
-rw-r--r-- | package.json | 28 |
4 files changed, 82 insertions, 22 deletions
diff --git a/.babelrc b/.babelrc new file mode 100644 index 0000000..88d5636 --- /dev/null +++ b/.babelrc @@ -0,0 +1,3 @@ +{ + "presets": ["@babel/preset-react", "@babel/preset-env"] +} diff --git a/.eslintrc.json b/.eslintrc.json index c1af961..2bf4601 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -8,6 +8,7 @@ "prettier/react" ], "rules": { "react/prop-types": 0, "no-console": 1, "no-unused-vars": 1 }, + "parser": "babel-eslint", "plugins": [], "parserOptions": { "ecmaVersion": 2019, diff --git a/package-lock.json b/package-lock.json index 0e5c325..159b2fa 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13,17 +13,17 @@ } }, "@babel/core": { - "version": "7.5.5", - "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.5.5.tgz", - "integrity": "sha512-i4qoSr2KTtce0DmkuuQBV4AuQgGPUcPXMr9L5MyYAtk06z068lQ10a4O009fe5OB/DfNV+h+qqT7ddNV8UnRjg==", + "version": "7.6.0", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.6.0.tgz", + "integrity": "sha512-FuRhDRtsd6IptKpHXAa+4WPZYY2ZzgowkbLBecEDDSje1X/apG7jQM33or3NdOmjXBKWGOg4JmSiRfUfuTtHXw==", "requires": { "@babel/code-frame": "^7.5.5", - "@babel/generator": "^7.5.5", - "@babel/helpers": "^7.5.5", - "@babel/parser": "^7.5.5", - "@babel/template": "^7.4.4", - "@babel/traverse": "^7.5.5", - "@babel/types": "^7.5.5", + "@babel/generator": "^7.6.0", + "@babel/helpers": "^7.6.0", + "@babel/parser": "^7.6.0", + "@babel/template": "^7.6.0", + "@babel/traverse": "^7.6.0", + "@babel/types": "^7.6.0", "convert-source-map": "^1.1.0", "debug": "^4.1.0", "json5": "^2.1.0", @@ -33,6 +33,11 @@ "source-map": "^0.5.0" }, "dependencies": { + "@babel/parser": { + "version": "7.6.0", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.6.0.tgz", + "integrity": "sha512-+o2q111WEx4srBs7L9eJmcwi655eD8sXniLqMB93TBK9GrNzGrxDWSjiqz2hLU0Ha8MTXFIP0yd9fNdP+m43ZQ==" + }, "semver": { "version": "5.7.1", "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", @@ -2624,6 +2629,27 @@ "babel-plugin-transform-react-remove-prop-types": "0.4.24" }, "dependencies": { + "@babel/core": { + "version": "7.5.5", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.5.5.tgz", + "integrity": "sha512-i4qoSr2KTtce0DmkuuQBV4AuQgGPUcPXMr9L5MyYAtk06z068lQ10a4O009fe5OB/DfNV+h+qqT7ddNV8UnRjg==", + "requires": { + "@babel/code-frame": "^7.5.5", + "@babel/generator": "^7.5.5", + "@babel/helpers": "^7.5.5", + "@babel/parser": "^7.5.5", + "@babel/template": "^7.4.4", + "@babel/traverse": "^7.5.5", + "@babel/types": "^7.5.5", + "convert-source-map": "^1.1.0", + "debug": "^4.1.0", + "json5": "^2.1.0", + "lodash": "^4.17.13", + "resolve": "^1.3.2", + "semver": "^5.4.1", + "source-map": "^0.5.0" + } + }, "@babel/plugin-transform-destructuring": { "version": "7.5.0", "resolved": "https://registry.npmjs.org/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.5.0.tgz", @@ -14416,6 +14442,34 @@ "workbox-webpack-plugin": "4.3.1" }, "dependencies": { + "@babel/core": { + "version": "7.5.5", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.5.5.tgz", + "integrity": "sha512-i4qoSr2KTtce0DmkuuQBV4AuQgGPUcPXMr9L5MyYAtk06z068lQ10a4O009fe5OB/DfNV+h+qqT7ddNV8UnRjg==", + "requires": { + "@babel/code-frame": "^7.5.5", + "@babel/generator": "^7.5.5", + "@babel/helpers": "^7.5.5", + "@babel/parser": "^7.5.5", + "@babel/template": "^7.4.4", + "@babel/traverse": "^7.5.5", + "@babel/types": "^7.5.5", + "convert-source-map": "^1.1.0", + "debug": "^4.1.0", + "json5": "^2.1.0", + "lodash": "^4.17.13", + "resolve": "^1.3.2", + "semver": "^5.4.1", + "source-map": "^0.5.0" + }, + "dependencies": { + "semver": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==" + } + } + }, "babel-eslint": { "version": "10.0.2", "resolved": "https://registry.npmjs.org/babel-eslint/-/babel-eslint-10.0.2.tgz", diff --git a/package.json b/package.json index e12cbb2..e53d2f6 100644 --- a/package.json +++ b/package.json @@ -27,19 +27,21 @@ "eslintConfig": { "extends": "react-app" }, - "browserslist": { - "production": [ - ">0.2%", - "not dead", - "not op_mini all" - ], - "development": [ - "last 1 chrome version", - "last 1 firefox version", - "last 1 safari version" - ] - }, + "browserslist": [ + "last 2 Chrome versions", + "last 2 ChromeAndroid versions", + "last 2 Firefox versions", + "last 2 FirefoxAndroid versions", + "last 2 Safari versions", + "last 2 iOS versions", + "last 2 Edge versions", + "last 2 Opera versions", + "last 2 OperaMobile versions" + ], "devDependencies": { + "@babel/core": "^7.6.0", + "@babel/preset-env": "^7.6.0", + "@babel/preset-react": "^7.0.0", "babel-eslint": "^10.0.3", "eslint": "^6.4.0", "eslint-config-prettier": "^6.3.0", @@ -49,4 +51,4 @@ "parcel-bundler": "^1.12.3", "prettier": "^1.18.2" } -} +}
\ No newline at end of file |