Unify build step for ESLint packages (#10723)
This commit is contained in:
parent
1b75fe3cba
commit
a6d134804a
1
.gitignore
vendored
1
.gitignore
vendored
@ -61,6 +61,7 @@ packages/babel-preset-env-standalone/babel-preset-env.min.js
|
|||||||
.idea/
|
.idea/
|
||||||
/.changelog
|
/.changelog
|
||||||
|
|
||||||
|
/eslint/*/lib
|
||||||
/eslint/*/node_modules
|
/eslint/*/node_modules
|
||||||
/eslint/*/LICENSE
|
/eslint/*/LICENSE
|
||||||
!/packages/babel-eslint-plugin/LICENSE
|
!/packages/babel-eslint-plugin/LICENSE
|
||||||
|
|||||||
@ -17,7 +17,7 @@ const rollupNodeResolve = require("rollup-plugin-node-resolve");
|
|||||||
const rollupReplace = require("rollup-plugin-replace");
|
const rollupReplace = require("rollup-plugin-replace");
|
||||||
const { registerStandalonePackageTask } = require("./scripts/gulp-tasks");
|
const { registerStandalonePackageTask } = require("./scripts/gulp-tasks");
|
||||||
|
|
||||||
const defaultSourcesGlob = "./@(codemods|packages)/*/src/**/*.js";
|
const defaultSourcesGlob = "./@(codemods|packages|eslint)/*/src/**/*.js";
|
||||||
|
|
||||||
function swapSrcWithLib(srcPath) {
|
function swapSrcWithLib(srcPath) {
|
||||||
const parts = srcPath.split(path.sep);
|
const parts = srcPath.split(path.sep);
|
||||||
|
|||||||
8
Makefile
8
Makefile
@ -8,6 +8,12 @@ export FORCE_COLOR = true
|
|||||||
|
|
||||||
SOURCES = packages codemods eslint
|
SOURCES = packages codemods eslint
|
||||||
|
|
||||||
|
COMMA := ,
|
||||||
|
EMPTY :=
|
||||||
|
SPACE := $(EMPTY) $(EMPTY)
|
||||||
|
COMMA_SEPARATED_SOURCES = $(subst $(SPACE),$(COMMA),$(SOURCES))
|
||||||
|
|
||||||
|
|
||||||
.PHONY: build build-dist watch lint fix clean test-clean test-only test test-ci publish bootstrap
|
.PHONY: build build-dist watch lint fix clean test-clean test-only test test-ci publish bootstrap
|
||||||
|
|
||||||
build: build-bundle
|
build: build-bundle
|
||||||
@ -113,7 +119,7 @@ fix-js:
|
|||||||
yarn eslint scripts $(SOURCES) '*.js' --format=codeframe --fix
|
yarn eslint scripts $(SOURCES) '*.js' --format=codeframe --fix
|
||||||
|
|
||||||
fix-json:
|
fix-json:
|
||||||
yarn prettier "{packages,codemod}/*/test/fixtures/**/options.json" --write --loglevel warn
|
yarn prettier "{$(COMMA_SEPARATED_SOURCES)}/*/test/fixtures/**/options.json" --write --loglevel warn
|
||||||
|
|
||||||
clean: test-clean
|
clean: test-clean
|
||||||
rm -f .npmrc
|
rm -f .npmrc
|
||||||
|
|||||||
@ -112,6 +112,8 @@ module.exports = function(api) {
|
|||||||
"packages/*/test",
|
"packages/*/test",
|
||||||
"codemods/*/src",
|
"codemods/*/src",
|
||||||
"codemods/*/test",
|
"codemods/*/test",
|
||||||
|
"eslint/*/src",
|
||||||
|
"eslint/*/test",
|
||||||
],
|
],
|
||||||
sourceType: "unambiguous",
|
sourceType: "unambiguous",
|
||||||
},
|
},
|
||||||
|
|||||||
@ -1,3 +1,3 @@
|
|||||||
{
|
{
|
||||||
"plugins": ["../../../../lib"]
|
"plugins": ["../../../../lib"]
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,6 +1,4 @@
|
|||||||
{
|
{
|
||||||
"sourceType": "module",
|
"sourceType": "module",
|
||||||
"plugins": [
|
"plugins": ["flow"]
|
||||||
"flow"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
@ -1,6 +1,4 @@
|
|||||||
{
|
{
|
||||||
"sourceType": "module",
|
"sourceType": "module",
|
||||||
"plugins": [
|
"plugins": ["flow"]
|
||||||
"flow"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
@ -1,5 +1,3 @@
|
|||||||
{
|
{
|
||||||
"plugins": [
|
"plugins": ["estree"]
|
||||||
"estree"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
@ -1,5 +1,3 @@
|
|||||||
{
|
{
|
||||||
"plugins": [
|
"plugins": ["bigInt"]
|
||||||
"bigInt"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
@ -1,5 +1,3 @@
|
|||||||
{
|
{
|
||||||
"plugins": [
|
"plugins": ["classPrivateMethods"]
|
||||||
"classPrivateMethods"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
@ -1,5 +1,3 @@
|
|||||||
{
|
{
|
||||||
"plugins": [
|
"plugins": ["classPrivateProperties"]
|
||||||
"classPrivateProperties"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
@ -1,5 +1,3 @@
|
|||||||
{
|
{
|
||||||
"plugins": [
|
"plugins": ["classPrivateProperties"]
|
||||||
"classPrivateProperties"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
@ -1,5 +1,3 @@
|
|||||||
{
|
{
|
||||||
"plugins": [
|
"plugins": ["classPrivateProperties"]
|
||||||
"classPrivateProperties"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
@ -1,5 +1,3 @@
|
|||||||
{
|
{
|
||||||
"plugins": [
|
"plugins": ["classPrivateProperties"]
|
||||||
"classPrivateProperties"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
@ -1,5 +1,3 @@
|
|||||||
{
|
{
|
||||||
"plugins": [
|
"plugins": ["classProperties"]
|
||||||
"classProperties"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
@ -1,5 +1,3 @@
|
|||||||
{
|
{
|
||||||
"plugins": [
|
"plugins": ["classProperties"]
|
||||||
"classProperties"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
@ -1,5 +1,3 @@
|
|||||||
{
|
{
|
||||||
"plugins": [
|
"plugins": ["classProperties"]
|
||||||
"classProperties"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
@ -1,5 +1,3 @@
|
|||||||
{
|
{
|
||||||
"plugins": [
|
"plugins": ["classProperties"]
|
||||||
"classProperties"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,5 +1,3 @@
|
|||||||
{
|
{
|
||||||
"plugins": [
|
"plugins": ["classProperties"]
|
||||||
"classProperties"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,5 +1,3 @@
|
|||||||
{
|
{
|
||||||
"plugins": [
|
"plugins": ["classProperties"]
|
||||||
"classProperties"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
@ -1,5 +1,3 @@
|
|||||||
{
|
{
|
||||||
"plugins": [
|
"plugins": ["classProperties"]
|
||||||
"classProperties"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
@ -1,5 +1,3 @@
|
|||||||
{
|
{
|
||||||
"plugins": [
|
"plugins": ["classProperties"]
|
||||||
"classProperties"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
@ -1,5 +1,3 @@
|
|||||||
{
|
{
|
||||||
"plugins": [
|
"plugins": ["classProperties"]
|
||||||
"classProperties"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
@ -1,5 +1,3 @@
|
|||||||
{
|
{
|
||||||
"plugins": [
|
"plugins": ["classProperties"]
|
||||||
"classProperties"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
@ -1,5 +1,3 @@
|
|||||||
{
|
{
|
||||||
"plugins": [
|
"plugins": ["dynamicImport"]
|
||||||
"dynamicImport"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
@ -1,5 +1,3 @@
|
|||||||
{
|
{
|
||||||
"plugins": [
|
"plugins": ["dynamicImport"]
|
||||||
"dynamicImport"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
@ -1,5 +1,3 @@
|
|||||||
{
|
{
|
||||||
"plugins": [
|
"plugins": ["dynamicImport"]
|
||||||
"dynamicImport"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
@ -1,5 +1,3 @@
|
|||||||
{
|
{
|
||||||
"plugins": [
|
"plugins": ["dynamicImport"]
|
||||||
"dynamicImport"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,5 +1,3 @@
|
|||||||
{
|
{
|
||||||
"plugins": [
|
"plugins": ["dynamicImport"]
|
||||||
"dynamicImport"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
@ -1,5 +1,3 @@
|
|||||||
{
|
{
|
||||||
"plugins": [
|
"plugins": ["dynamicImport"]
|
||||||
"dynamicImport"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
@ -1,7 +1,4 @@
|
|||||||
{
|
{
|
||||||
"plugins": [
|
"plugins": ["dynamicImport", "importMeta"],
|
||||||
"dynamicImport",
|
|
||||||
"importMeta"
|
|
||||||
],
|
|
||||||
"sourceType": "script"
|
"sourceType": "script"
|
||||||
}
|
}
|
||||||
@ -1,7 +1,4 @@
|
|||||||
{
|
{
|
||||||
"sourceType": "module",
|
"sourceType": "module",
|
||||||
"plugins": [
|
"plugins": ["dynamicImport", "importMeta"]
|
||||||
"dynamicImport",
|
|
||||||
"importMeta"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
@ -1,7 +1,4 @@
|
|||||||
{
|
{
|
||||||
"sourceType": "module",
|
"sourceType": "module",
|
||||||
"plugins": [
|
"plugins": ["dynamicImport", "importMeta"]
|
||||||
"dynamicImport",
|
|
||||||
"importMeta"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
@ -1,7 +1,4 @@
|
|||||||
{
|
{
|
||||||
"plugins": [
|
"plugins": ["nullishCoalescingOperator", "estree"],
|
||||||
"nullishCoalescingOperator",
|
|
||||||
"estree"
|
|
||||||
],
|
|
||||||
"throws": "Nullish coalescing operator(??) requires parens when mixing with logical operators (1:0)"
|
"throws": "Nullish coalescing operator(??) requires parens when mixing with logical operators (1:0)"
|
||||||
}
|
}
|
||||||
@ -1,6 +1,4 @@
|
|||||||
{
|
{
|
||||||
"plugins": [
|
"plugins": ["nullishCoalescingOperator"],
|
||||||
"nullishCoalescingOperator"
|
|
||||||
],
|
|
||||||
"throws": "Nullish coalescing operator(??) requires parens when mixing with logical operators (1:5)"
|
"throws": "Nullish coalescing operator(??) requires parens when mixing with logical operators (1:5)"
|
||||||
}
|
}
|
||||||
@ -1,6 +1,4 @@
|
|||||||
{
|
{
|
||||||
"plugins": [
|
"plugins": ["nullishCoalescingOperator"],
|
||||||
"nullishCoalescingOperator"
|
|
||||||
],
|
|
||||||
"throws": "Nullish coalescing operator(??) requires parens when mixing with logical operators (1:10)"
|
"throws": "Nullish coalescing operator(??) requires parens when mixing with logical operators (1:10)"
|
||||||
}
|
}
|
||||||
@ -1,7 +1,4 @@
|
|||||||
{
|
{
|
||||||
"plugins": [
|
"plugins": ["nullishCoalescingOperator", "estree"],
|
||||||
"nullishCoalescingOperator",
|
|
||||||
"estree"
|
|
||||||
],
|
|
||||||
"throws": "Nullish coalescing operator(??) requires parens when mixing with logical operators (1:0)"
|
"throws": "Nullish coalescing operator(??) requires parens when mixing with logical operators (1:0)"
|
||||||
}
|
}
|
||||||
@ -1,6 +1,3 @@
|
|||||||
{
|
{
|
||||||
"plugins": [
|
"plugins": ["bigInt", "numericSeparator"]
|
||||||
"bigInt",
|
|
||||||
"numericSeparator"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
@ -1,6 +1,3 @@
|
|||||||
{
|
{
|
||||||
"plugins": [
|
"plugins": ["bigInt", "numericSeparator"]
|
||||||
"bigInt",
|
|
||||||
"numericSeparator"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
@ -1,6 +1,3 @@
|
|||||||
{
|
{
|
||||||
"plugins": [
|
"plugins": ["bigInt", "numericSeparator"]
|
||||||
"bigInt",
|
|
||||||
"numericSeparator"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
@ -1,6 +1,3 @@
|
|||||||
{
|
{
|
||||||
"plugins": [
|
"plugins": ["bigInt", "numericSeparator"]
|
||||||
"bigInt",
|
|
||||||
"numericSeparator"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
@ -1,6 +1,3 @@
|
|||||||
{
|
{
|
||||||
"plugins": [
|
"plugins": ["bigInt", "numericSeparator"]
|
||||||
"bigInt",
|
|
||||||
"numericSeparator"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
@ -1,6 +1,3 @@
|
|||||||
{
|
{
|
||||||
"plugins": [
|
"plugins": ["bigInt", "numericSeparator"]
|
||||||
"bigInt",
|
|
||||||
"numericSeparator"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
@ -1,5 +1,3 @@
|
|||||||
{
|
{
|
||||||
"plugins": [
|
"plugins": ["optionalChaining"]
|
||||||
"optionalChaining"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
@ -1,5 +1,3 @@
|
|||||||
{
|
{
|
||||||
"plugins": [
|
"plugins": ["optionalChaining"]
|
||||||
"optionalChaining"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
@ -1,5 +1,3 @@
|
|||||||
{
|
{
|
||||||
"plugins": [
|
"plugins": ["optionalChaining"]
|
||||||
"optionalChaining"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
@ -1,5 +1,3 @@
|
|||||||
{
|
{
|
||||||
"plugins": [
|
"plugins": ["partialApplication"]
|
||||||
"partialApplication"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
@ -1,5 +1,3 @@
|
|||||||
{
|
{
|
||||||
"plugins": [
|
"plugins": ["partialApplication"]
|
||||||
"partialApplication"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
@ -1,8 +1,4 @@
|
|||||||
{
|
{
|
||||||
"sourceType": "module",
|
"sourceType": "module",
|
||||||
"plugins": [
|
"plugins": ["jsx", "flow", "classProperties"]
|
||||||
"jsx",
|
|
||||||
"flow",
|
|
||||||
"classProperties"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
@ -1,4 +1,3 @@
|
|||||||
{
|
{
|
||||||
"plugins": [["flow", { "enums": true }]]
|
"plugins": [["flow", { "enums": true }]]
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -1,7 +1,4 @@
|
|||||||
{
|
{
|
||||||
"sourceType": "module",
|
"sourceType": "module",
|
||||||
"plugins": [
|
"plugins": ["jsx", "flow"]
|
||||||
"jsx",
|
|
||||||
"flow"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
@ -1,7 +1,4 @@
|
|||||||
{
|
{
|
||||||
"sourceType": "module",
|
"sourceType": "module",
|
||||||
"plugins": [
|
"plugins": ["jsx", "flow"]
|
||||||
"jsx",
|
|
||||||
"flow"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
@ -1,7 +1,4 @@
|
|||||||
{
|
{
|
||||||
"sourceType": "module",
|
"sourceType": "module",
|
||||||
"plugins": [
|
"plugins": ["jsx", "flow"]
|
||||||
"jsx",
|
|
||||||
"flow"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
@ -1,7 +1,4 @@
|
|||||||
{
|
{
|
||||||
"sourceType": "module",
|
"sourceType": "module",
|
||||||
"plugins": [
|
"plugins": ["jsx", "flow"]
|
||||||
"jsx",
|
|
||||||
"flow"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
@ -1,7 +1,4 @@
|
|||||||
{
|
{
|
||||||
"sourceType": "module",
|
"sourceType": "module",
|
||||||
"plugins": [
|
"plugins": ["jsx", "flow"]
|
||||||
"jsx",
|
|
||||||
"flow"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
@ -1,7 +1,4 @@
|
|||||||
{
|
{
|
||||||
"sourceType": "module",
|
"sourceType": "module",
|
||||||
"plugins": [
|
"plugins": ["jsx", "flow"]
|
||||||
"jsx",
|
|
||||||
"flow"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
@ -1,7 +1,4 @@
|
|||||||
{
|
{
|
||||||
"sourceType": "module",
|
"sourceType": "module",
|
||||||
"plugins": [
|
"plugins": ["jsx", "flow"]
|
||||||
"jsx",
|
|
||||||
"flow"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
@ -1,7 +1,4 @@
|
|||||||
{
|
{
|
||||||
"sourceType": "module",
|
"sourceType": "module",
|
||||||
"plugins": [
|
"plugins": ["jsx", "flow"]
|
||||||
"jsx",
|
|
||||||
"flow"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,7 +1,4 @@
|
|||||||
{
|
{
|
||||||
"sourceType": "module",
|
"sourceType": "module",
|
||||||
"plugins": [
|
"plugins": ["jsx", "flow"]
|
||||||
"jsx",
|
|
||||||
"flow"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
@ -1,7 +1,4 @@
|
|||||||
{
|
{
|
||||||
"sourceType": "module",
|
"sourceType": "module",
|
||||||
"plugins": [
|
"plugins": ["jsx", "flow"]
|
||||||
"jsx",
|
|
||||||
"flow"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
@ -1,7 +1,4 @@
|
|||||||
{
|
{
|
||||||
"sourceType": "module",
|
"sourceType": "module",
|
||||||
"plugins": [
|
"plugins": ["jsx", "flow"]
|
||||||
"jsx",
|
|
||||||
"flow"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
@ -1,7 +1,4 @@
|
|||||||
{
|
{
|
||||||
"sourceType": "module",
|
"sourceType": "module",
|
||||||
"plugins": [
|
"plugins": ["jsx", "flow"]
|
||||||
"jsx",
|
|
||||||
"flow"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
@ -1,7 +1,4 @@
|
|||||||
{
|
{
|
||||||
"sourceType": "module",
|
"sourceType": "module",
|
||||||
"plugins": [
|
"plugins": ["jsx", "flow"]
|
||||||
"jsx",
|
|
||||||
"flow"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
@ -1,7 +1,4 @@
|
|||||||
{
|
{
|
||||||
"sourceType": "module",
|
"sourceType": "module",
|
||||||
"plugins": [
|
"plugins": ["jsx", "flow"]
|
||||||
"jsx",
|
|
||||||
"flow"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
@ -1,7 +1,4 @@
|
|||||||
{
|
{
|
||||||
"sourceType": "module",
|
"sourceType": "module",
|
||||||
"plugins": [
|
"plugins": ["jsx", "flow"]
|
||||||
"jsx",
|
|
||||||
"flow"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
@ -1,7 +1,4 @@
|
|||||||
{
|
{
|
||||||
"sourceType": "module",
|
"sourceType": "module",
|
||||||
"plugins": [
|
"plugins": ["jsx", "flow"]
|
||||||
"jsx",
|
|
||||||
"flow"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
@ -1,7 +1,4 @@
|
|||||||
{
|
{
|
||||||
"sourceType": "module",
|
"sourceType": "module",
|
||||||
"plugins": [
|
"plugins": ["jsx", "flow"]
|
||||||
"jsx",
|
|
||||||
"flow"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
@ -1,7 +1,4 @@
|
|||||||
{
|
{
|
||||||
"sourceType": "module",
|
"sourceType": "module",
|
||||||
"plugins": [
|
"plugins": ["jsx", "flow"]
|
||||||
"jsx",
|
|
||||||
"flow"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
@ -1,7 +1,4 @@
|
|||||||
{
|
{
|
||||||
"sourceType": "module",
|
"sourceType": "module",
|
||||||
"plugins": [
|
"plugins": ["flow", "jsx"]
|
||||||
"flow",
|
|
||||||
"jsx"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
@ -1,5 +1,3 @@
|
|||||||
{
|
{
|
||||||
"plugins": [
|
"plugins": ["typescript", "classProperties"]
|
||||||
"typescript", "classProperties"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,6 +1,4 @@
|
|||||||
{
|
{
|
||||||
"plugins": [
|
"plugins": ["v8intrinsic"],
|
||||||
"v8intrinsic"
|
|
||||||
],
|
|
||||||
"throws": "Unexpected token (1:0)"
|
"throws": "Unexpected token (1:0)"
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,6 +1,4 @@
|
|||||||
{
|
{
|
||||||
"plugins": [
|
"plugins": ["v8intrinsic"],
|
||||||
"v8intrinsic"
|
|
||||||
],
|
|
||||||
"throws": "Unexpected token (1:2)"
|
"throws": "Unexpected token (1:2)"
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,7 +1,4 @@
|
|||||||
{
|
{
|
||||||
"plugins": [
|
"plugins": ["optionalChaining", "v8intrinsic"],
|
||||||
"optionalChaining",
|
|
||||||
"v8intrinsic"
|
|
||||||
],
|
|
||||||
"throws": "Unexpected token (1:0)"
|
"throws": "Unexpected token (1:0)"
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,3 +1,6 @@
|
|||||||
{
|
{
|
||||||
"plugins": ["transform-block-scoping", ["proposal-object-rest-spread", { "loose": true }]]
|
"plugins": [
|
||||||
|
"transform-block-scoping",
|
||||||
|
["proposal-object-rest-spread", { "loose": true }]
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@ -2,9 +2,12 @@
|
|||||||
"validateLogs": true,
|
"validateLogs": true,
|
||||||
"ignoreOutput": true,
|
"ignoreOutput": true,
|
||||||
"presets": [
|
"presets": [
|
||||||
["env", {
|
[
|
||||||
|
"env",
|
||||||
|
{
|
||||||
"debug": true,
|
"debug": true,
|
||||||
"corejs": 3
|
"corejs": 3
|
||||||
}]
|
}
|
||||||
|
]
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@ -2,13 +2,16 @@
|
|||||||
"validateLogs": true,
|
"validateLogs": true,
|
||||||
"ignoreOutput": true,
|
"ignoreOutput": true,
|
||||||
"presets": [
|
"presets": [
|
||||||
["env", {
|
[
|
||||||
|
"env",
|
||||||
|
{
|
||||||
"debug": true,
|
"debug": true,
|
||||||
"targets": {
|
"targets": {
|
||||||
"browsers": [ "Android >= 4" ]
|
"browsers": ["Android >= 4"]
|
||||||
},
|
},
|
||||||
"useBuiltIns": "entry",
|
"useBuiltIns": "entry",
|
||||||
"corejs": 2
|
"corejs": 2
|
||||||
}]
|
}
|
||||||
|
]
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@ -2,13 +2,16 @@
|
|||||||
"validateLogs": true,
|
"validateLogs": true,
|
||||||
"ignoreOutput": true,
|
"ignoreOutput": true,
|
||||||
"presets": [
|
"presets": [
|
||||||
["env", {
|
[
|
||||||
|
"env",
|
||||||
|
{
|
||||||
"debug": true,
|
"debug": true,
|
||||||
"targets": {
|
"targets": {
|
||||||
"electron": 0.36
|
"electron": 0.36
|
||||||
},
|
},
|
||||||
"useBuiltIns": "entry",
|
"useBuiltIns": "entry",
|
||||||
"corejs": 2
|
"corejs": 2
|
||||||
}]
|
}
|
||||||
|
]
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@ -2,7 +2,9 @@
|
|||||||
"validateLogs": true,
|
"validateLogs": true,
|
||||||
"ignoreOutput": true,
|
"ignoreOutput": true,
|
||||||
"presets": [
|
"presets": [
|
||||||
["env", {
|
[
|
||||||
|
"env",
|
||||||
|
{
|
||||||
"debug": true,
|
"debug": true,
|
||||||
"modules": false,
|
"modules": false,
|
||||||
"targets": {
|
"targets": {
|
||||||
@ -11,6 +13,7 @@
|
|||||||
"useBuiltIns": "entry",
|
"useBuiltIns": "entry",
|
||||||
"corejs": 2,
|
"corejs": 2,
|
||||||
"forceAllTransforms": true
|
"forceAllTransforms": true
|
||||||
}]
|
}
|
||||||
|
]
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@ -2,13 +2,16 @@
|
|||||||
"validateLogs": true,
|
"validateLogs": true,
|
||||||
"ignoreOutput": true,
|
"ignoreOutput": true,
|
||||||
"presets": [
|
"presets": [
|
||||||
["env", {
|
[
|
||||||
|
"env",
|
||||||
|
{
|
||||||
"debug": true,
|
"debug": true,
|
||||||
"targets": {
|
"targets": {
|
||||||
"node": 6
|
"node": 6
|
||||||
},
|
},
|
||||||
"useBuiltIns": "entry",
|
"useBuiltIns": "entry",
|
||||||
"corejs": 2
|
"corejs": 2
|
||||||
}]
|
}
|
||||||
|
]
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@ -2,13 +2,16 @@
|
|||||||
"validateLogs": true,
|
"validateLogs": true,
|
||||||
"ignoreOutput": true,
|
"ignoreOutput": true,
|
||||||
"presets": [
|
"presets": [
|
||||||
["env", {
|
[
|
||||||
|
"env",
|
||||||
|
{
|
||||||
"debug": true,
|
"debug": true,
|
||||||
"targets": {
|
"targets": {
|
||||||
"browsers": "chrome 71"
|
"browsers": "chrome 71"
|
||||||
},
|
},
|
||||||
"useBuiltIns": "entry",
|
"useBuiltIns": "entry",
|
||||||
"corejs": { "version": 2, "proposals": true }
|
"corejs": { "version": 2, "proposals": true }
|
||||||
}]
|
}
|
||||||
|
]
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@ -2,10 +2,13 @@
|
|||||||
"validateLogs": true,
|
"validateLogs": true,
|
||||||
"ignoreOutput": true,
|
"ignoreOutput": true,
|
||||||
"presets": [
|
"presets": [
|
||||||
["env", {
|
[
|
||||||
|
"env",
|
||||||
|
{
|
||||||
"debug": true,
|
"debug": true,
|
||||||
"useBuiltIns": "entry",
|
"useBuiltIns": "entry",
|
||||||
"corejs": { "version": 2, "proposals": true }
|
"corejs": { "version": 2, "proposals": true }
|
||||||
}]
|
}
|
||||||
|
]
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@ -2,7 +2,9 @@
|
|||||||
"validateLogs": true,
|
"validateLogs": true,
|
||||||
"ignoreOutput": true,
|
"ignoreOutput": true,
|
||||||
"presets": [
|
"presets": [
|
||||||
["env", {
|
[
|
||||||
|
"env",
|
||||||
|
{
|
||||||
"debug": true,
|
"debug": true,
|
||||||
"targets": {
|
"targets": {
|
||||||
"browsers": "chrome 71"
|
"browsers": "chrome 71"
|
||||||
@ -10,6 +12,7 @@
|
|||||||
"shippedProposals": true,
|
"shippedProposals": true,
|
||||||
"useBuiltIns": "entry",
|
"useBuiltIns": "entry",
|
||||||
"corejs": 2
|
"corejs": 2
|
||||||
}]
|
}
|
||||||
|
]
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@ -2,11 +2,14 @@
|
|||||||
"validateLogs": true,
|
"validateLogs": true,
|
||||||
"ignoreOutput": true,
|
"ignoreOutput": true,
|
||||||
"presets": [
|
"presets": [
|
||||||
["env", {
|
[
|
||||||
|
"env",
|
||||||
|
{
|
||||||
"debug": true,
|
"debug": true,
|
||||||
"shippedProposals": true,
|
"shippedProposals": true,
|
||||||
"useBuiltIns": "entry",
|
"useBuiltIns": "entry",
|
||||||
"corejs": 2
|
"corejs": 2
|
||||||
}]
|
}
|
||||||
|
]
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@ -2,13 +2,16 @@
|
|||||||
"validateLogs": true,
|
"validateLogs": true,
|
||||||
"ignoreOutput": true,
|
"ignoreOutput": true,
|
||||||
"presets": [
|
"presets": [
|
||||||
["env", {
|
[
|
||||||
|
"env",
|
||||||
|
{
|
||||||
"debug": true,
|
"debug": true,
|
||||||
"targets": {
|
"targets": {
|
||||||
"browsers": "ie 10, ios 9, safari 7, edge 13, chrome 54, firefox 49"
|
"browsers": "ie 10, ios 9, safari 7, edge 13, chrome 54, firefox 49"
|
||||||
},
|
},
|
||||||
"useBuiltIns": "entry",
|
"useBuiltIns": "entry",
|
||||||
"corejs": 2
|
"corejs": 2
|
||||||
}]
|
}
|
||||||
|
]
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@ -2,16 +2,19 @@
|
|||||||
"validateLogs": true,
|
"validateLogs": true,
|
||||||
"ignoreOutput": true,
|
"ignoreOutput": true,
|
||||||
"presets": [
|
"presets": [
|
||||||
["env", {
|
[
|
||||||
|
"env",
|
||||||
|
{
|
||||||
"useBuiltIns": "entry",
|
"useBuiltIns": "entry",
|
||||||
"corejs": 2,
|
"corejs": 2,
|
||||||
"debug": true,
|
"debug": true,
|
||||||
"targets": {
|
"targets": {
|
||||||
"chrome": 54,
|
"chrome": 54,
|
||||||
"electron": 0.36,
|
"electron": 0.36,
|
||||||
"node": 6.10,
|
"node": 6.1,
|
||||||
"ie": 10
|
"ie": 10
|
||||||
}
|
}
|
||||||
}]
|
}
|
||||||
|
]
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@ -2,7 +2,9 @@
|
|||||||
"validateLogs": true,
|
"validateLogs": true,
|
||||||
"ignoreOutput": true,
|
"ignoreOutput": true,
|
||||||
"presets": [
|
"presets": [
|
||||||
["env", {
|
[
|
||||||
|
"env",
|
||||||
|
{
|
||||||
"useBuiltIns": "entry",
|
"useBuiltIns": "entry",
|
||||||
"corejs": 2,
|
"corejs": 2,
|
||||||
"debug": true,
|
"debug": true,
|
||||||
@ -11,6 +13,7 @@
|
|||||||
"node": "6.10",
|
"node": "6.10",
|
||||||
"ie": "10"
|
"ie": "10"
|
||||||
}
|
}
|
||||||
}]
|
}
|
||||||
|
]
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@ -2,7 +2,9 @@
|
|||||||
"validateLogs": true,
|
"validateLogs": true,
|
||||||
"ignoreOutput": true,
|
"ignoreOutput": true,
|
||||||
"presets": [
|
"presets": [
|
||||||
["env", {
|
[
|
||||||
|
"env",
|
||||||
|
{
|
||||||
"debug": true,
|
"debug": true,
|
||||||
"targets": {
|
"targets": {
|
||||||
"browsers": "chrome >= 54, ie 10",
|
"browsers": "chrome >= 54, ie 10",
|
||||||
@ -10,6 +12,7 @@
|
|||||||
},
|
},
|
||||||
"useBuiltIns": "entry",
|
"useBuiltIns": "entry",
|
||||||
"corejs": 2
|
"corejs": 2
|
||||||
}]
|
}
|
||||||
|
]
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@ -2,7 +2,9 @@
|
|||||||
"validateLogs": true,
|
"validateLogs": true,
|
||||||
"ignoreOutput": true,
|
"ignoreOutput": true,
|
||||||
"presets": [
|
"presets": [
|
||||||
["env", {
|
[
|
||||||
|
"env",
|
||||||
|
{
|
||||||
"debug": true,
|
"debug": true,
|
||||||
"targets": {
|
"targets": {
|
||||||
"browsers": "chrome 71"
|
"browsers": "chrome 71"
|
||||||
@ -10,6 +12,7 @@
|
|||||||
"shippedProposals": true,
|
"shippedProposals": true,
|
||||||
"useBuiltIns": "entry",
|
"useBuiltIns": "entry",
|
||||||
"corejs": 3
|
"corejs": 3
|
||||||
}]
|
}
|
||||||
|
]
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user