diff --git a/.babelrc b/.babelrc index cf133192a..76773088a 100644 --- a/.babelrc +++ b/.babelrc @@ -1,22 +1,5 @@ { - "presets": [ - ["@babel/preset-env", { - "targets": "defaults", - "modules": false, - "loose": true - }], - "@babel/preset-flow" - ], - "plugins": [ - ["@babel/plugin-transform-runtime", { "useESModules": true }], - ["@babel/plugin-proposal-class-properties", { "loose": true }], - [ - "@babel/plugin-transform-react-jsx", - { - "pragma": "m", - "pragmaFrag": "'['", - "useBuiltIns": true - } - ] - ] + "presets": [ + "openstamanager" + ] } diff --git a/.eslintrc.json b/.eslintrc.json index 738ebd9e1..b06787dc4 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -1,5 +1,5 @@ { "extends": [ - "openstamanager" + "@openstamanager" ] } diff --git a/package.json b/package.json index 0f7edc32b..94b6c28c4 100644 --- a/package.json +++ b/package.json @@ -49,14 +49,23 @@ "openstamanager": "link:." }, "devDependencies": { - "@bunchtogether/vite-plugin-flow": "github:maicol07/vite-plugin-flow", + "@babel/core": "^7.15.5", + "@babel/eslint-parser": "^7.15.7", + "@babel/eslint-plugin": "^7.14.5", + "@babel/plugin-proposal-class-properties": "^7.14.5", + "@babel/plugin-transform-react-jsx": "^7.14.9", + "@babel/plugin-transform-runtime": "^7.15.0", + "@babel/preset-env": "^7.15.6", + "@babel/preset-flow": "^7.14.5", + "@bunchtogether/vite-plugin-flow": "^1.0.1", "@open-wc/eslint-config": "^4.3.0", "@openstamanager/vite-config": "github:maicol07/openstamanager-vite-config", + "babel-preset-openstamanager": "github:maicol07/babel-preset-openstamanager", "concurrently": "^6.2.1", "eslint": "^7.32.0", "eslint-config-airbnb-base": "^14.2.1", - "eslint-config-openstamanager": "github:maicol07/eslint-config-openstamanager", - "eslint-plugin-flowtype": "^5.9.2", + "@openstamanager/eslint-config": "github:maicol07/eslint-config-openstamanager", + "eslint-plugin-flowtype": "^5.10.0", "eslint-plugin-github": "^4.3.0", "eslint-plugin-import": "^2.24.2", "eslint-plugin-mithril": "^0.2.0",