Commit 64fa466
authored
Enable import attributes parsing by default (#16850)
* Enable import attributes parsing by default
* Remove plugin from tests
* Update fixtures
* Fix failures
* `make build`
* Fix TS errors
* Fix
* Update .d.ts
* Move in core
* [babel 8] Remove syntax plugins from preset-env
* Update fixtures
* Fix ESM build of Babel 7 and standalone
* Update flow allowlist
* Update parser fixtures for Babel 8
* Update generator tests
* Update parser test
* Update standalone
* Do not run import attribtues plugin test in Babel 8
* Make tests pass in babel 8
* Fix Babel 8 build
* [babel 8] Stop printing legacy "with" attributes
* fix prettier integration test
* Fix Babel 8 compat in syntax-import-attributes
* Try fix
* Do not error for the removed `importAttributes` plugin
* Skip a test in babel7/8 compat e2e
* Throw an error when using removed option from the parser
* Fixes after rebase
* Raise `ImportCallArity` also when `createImportExpressions`
* Fix linting1 parent c369676 commit 64fa466
309 files changed
Lines changed: 1271 additions & 624 deletions
File tree
- eslint/babel-eslint-parser/test
- packages
- babel-core/src/parser/util
- babel-generator
- src/generators
- test
- fixtures/importAttributesKeyword
- attributes-assert-to-assert
- attributes-assert-to-default
- attributes-assert-to-with-legacy
- attributes-assert-to-with
- attributes-with-to-default-babel-7
- attributes-with-to-default
- attributes-with-to-with-legacy
- babel-parser
- src
- parse-error
- parser
- plugins
- flow
- typescript
- test
- fixtures
- comments
- interpreter-directive/interpreter-directive-import
- regression/10892
- core/sourcetype-unambiguous
- flow
- module-export-all
- module-import
- es2015
- identifiers/invalid-escape-seq-import
- modules
- export-declaration-trailing-comma
- export-from-valid-reserved-word
- import-declaration-trailing-comma
- import-invalid-keyword-flow
- import-invalid-keyword-typeof-flow
- import-invalid-keyword-typeof
- import-invalid-keyword
- uncategorised
- 291
- 301
- 85
- 88
- 90
- 91
- 92
- 93
- 94
- 95
- 96
- 97
- 98
- es2020
- dynamic-import-createImportExpression-false
- invalid-trailing-comma
- multiple-args
- no-args
- dynamic-import
- generator
- inside-function
- invalid-new
- invalid-trailing-comma
- multiple-args
- parses-module
- parses-strict
- return-value
- top-level
- valid-new-parens
- variable-arguments
- export-ns-from
- ns-default
- ns
- es2022/module-string-names
- default-import
- export-from
- mixed
- named-import
- namespace-export
- esprima
- es2015-export-declaration
- export-from-batch
- export-from-default
- export-from-named-as-default
- export-from-named-as-specifiers
- export-from-named-as-specifier
- export-from-specifiers
- export-from-specifier
- es2015-import-declaration
- import-default-and-named-specifiers
- import-default-and-namespace-specifiers
- import-default-as
- import-default
- import-jquery
- import-module
- import-named-as-specifiers
- import-named-as-specifier
- import-named-empty
- import-named-specifiers-comma
- import-named-specifiers
- import-named-specifier
- import-namespace-specifier
- import-null-as-nil
- invalid-import-default
- estree
- dynamic-import
- basic
- import-attributes-null
- import-attributes
- export
- batch
- ns-from
- import-attributes/valid-syntax-with-attributes
- module-string-names
- mixed
- shorthand
- typescript/import
- experimental
- _no-plugin
- import-assertions-babel-7
- import-assertions-dynamic-createImportExpression-false
- import-assertions-dynamic
- import-assertions
- import-attributes
- _removed-plugins/import-assertions
- deferred-import-evaluation
- .attributes-expression
- attributes-declaration
- import-defer
- no-default
- no-named
- export-extensions
- default-and-named
- default-and-ns
- default-default-asi
- default-default
- default-escaped
- default-type-without-flow
- default
- import-assertions-with-keyword/without-plugin
- import-assertions
- with-import-attributes
- without-plugin
- import-attributes-createImportExpression-false
- without-plugin
- import-attributes-deprecatedAssertKeyword
- _deprecated-syntax-not-enabled
- invalid-escaped-assert
- invalid-export-without-from
- invalid-syntax-export-without-attributes-identifier
- invalid-syntax-without-attributes-identifier
- with-old-importAttributes-plugin
- import-attributes
- without-plugin
- import-reflection
- comments
- invalid-default-named-import
- invalid-named-import
- invalid-namespace-import
- valid-default-import
- valid-flow-default-import
- valid-from-as-default-module-binding-escaped
- valid-from-as-default-module-binding
- valid-module-as-default-binding-2
- valid-module-as-default-binding
- valid-ts-default-import
- module-attributes/without-plugin
- module-blocks/valid-import-module-blocks
- source-phase-imports
- attributes-declaration
- attributes-expression
- dynamic-import-createImportExpressions-true
- dynamic-import
- import-default-binding-source
- import-source-binding-from
- import-source-binding-source
- import-source
- no-named
- no-namespace
- flow
- declare-export
- export-from
- export-star-as
- export-star
- export-type-star-from
- declare-module
- import
- invalid-import
- imports
- import-type-keyword
- imports-with-as-identifiers
- interfaces-as-identifier/import-statement
- module-string-names
- default-import
- mixed
- named-imports
- sourcetype-script
- export-star
- import
- type-exports
- specifier-from
- star-from
- type-imports
- import-type-2
- import-type-shorthand-2
- import-type-shorthand
- import-type
- invalid-import-type-2
- invalid-import-type-3
- invalid-import-type-4
- invalid-import-type-as
- invalid-import-type-shorthand-2
- invalid-import-type-shorthand-3
- invalid-import-type-shorthand-4
- invalid-import-type-shorthand
- invalid-import-type
- placeholders
- export
- named-from-2
- named-from-3
- named-from-alias-2
- named-from-alias-3
- named-from-alias
- named-from
- star-from-2
- star-from-3
- star-from
- import
- default-named
- default-star-2
- file-empty
- named-alias-2
- named-alias-3
- named-alias
- named
- star
- typescript
- export
- export-type-from
- export-type-star-from
- internal-comments
- import
- import-default-and-named-id-type
- import-default-id-type
- import-named
- import-side-effects
- import-star-as
- internal-comments
- not-top-level
- scope
- export-import-in-declare-module
- redeclaration-import-ambient-class
- redeclaration-import-let
- redeclaration-import-type-import
- redeclaration-import-type-let
- redeclaration-import-type-type
- redeclaration-import-type-var
- redeclaration-import-var
- redeclaration-in-different-module-and-top-level
- redeclaration-in-different-module
- redeclaration-in-nested-module
- type-arguments/empty-type-import
- type-only-import-export-specifiers
- export-basic
- export-invalid-type-in-type
- export-named-and-named-type
- export-named-type-as-as
- export-named-type
- export-type-only-keyword-from
- export-type-only-named-as
- import-basic
- import-invalid-named-type-as-keyword
- import-invalid-type-in-type
- import-invalid-type-named-keywords
- import-invalid-type-only-as-as-keyword
- import-named-and-named-type
- import-named-type-as-as
- import-named-type
- import-type-only-and-export
- import-type-only-named-as
- import-type-only-named-keywords-as
- types
- import-type-declaration-error
- import-type-declaration
- import-type-dynamic-errors
- import-type-dynamic-with-jsx-options
- import-type-dynamic-with-options
- import-type-dynamic
- typings
- babel-plugin-syntax-import-assertions/src
- babel-plugin-syntax-import-attributes
- src
- test
- fixtures/with-import-assertions-plugin
- after
- before
- babel-preset-env
- src
- test/fixtures
- debug
- entry-corejs3-all-chrome-71
- entry-corejs3-all
- entry-corejs3-babel-polyfill
- entry-corejs3-es-chrome-71
- entry-corejs3-es-proposals-chrome-71
- entry-corejs3-es-proposals
- entry-corejs3-es
- entry-corejs3-runtime-only-chrome-71
- entry-corejs3-runtime-only
- entry-corejs3-specific-entries-chrome-71
- entry-corejs3-specific-entries
- entry-corejs3-stable-chrome-71
- entry-corejs3-stable-samsung-8.2
- entry-corejs3-stable
- entry-corejs3-stage-chrome-71
- entry-corejs3-stage
- entry-corejs3-web-chrome-71
- entry-corejs3-web
- shippedProposals-chrome-80
- shippedProposals-chrome-84
- usage-corejs3-shippedProposals-1
- usage-corejs3-shippedProposals-2
- shipped-proposals/import-assertions
- babel-standalone/src
- babel-types/src
- ast-types/generated
- builders/generated
- definitions
- scripts
- integration-tests
- parser-tests/flow
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
410 | 410 | | |
411 | 411 | | |
412 | 412 | | |
| 413 | + | |
413 | 414 | | |
414 | 415 | | |
415 | 416 | | |
| |||
418 | 419 | | |
419 | 420 | | |
420 | 421 | | |
| 422 | + | |
| 423 | + | |
421 | 424 | | |
422 | 425 | | |
423 | 426 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
41 | 47 | | |
42 | 48 | | |
43 | 49 | | |
44 | 50 | | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
45 | 60 | | |
46 | 61 | | |
47 | 62 | | |
| |||
51 | 66 | | |
52 | 67 | | |
53 | 68 | | |
54 | | - | |
55 | | - | |
56 | | - | |
| 69 | + | |
57 | 70 | | |
58 | 71 | | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | 72 | | |
65 | 73 | | |
66 | 74 | | |
| |||
101 | 109 | | |
102 | 110 | | |
103 | 111 | | |
| 112 | + | |
104 | 113 | | |
105 | 114 | | |
106 | 115 | | |
| |||
117 | 126 | | |
118 | 127 | | |
119 | 128 | | |
| 129 | + | |
120 | 130 | | |
121 | 131 | | |
122 | 132 | | |
| |||
Lines changed: 6 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | 87 | | |
94 | 88 | | |
95 | 89 | | |
| |||
204 | 198 | | |
205 | 199 | | |
206 | 200 | | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
207 | 207 | | |
208 | 208 | | |
209 | 209 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
| 81 | + | |
81 | 82 | | |
82 | 83 | | |
83 | 84 | | |
| |||
101 | 102 | | |
102 | 103 | | |
103 | 104 | | |
104 | | - | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
105 | 110 | | |
106 | 111 | | |
107 | 112 | | |
| |||
132 | 137 | | |
133 | 138 | | |
134 | 139 | | |
135 | | - | |
136 | 140 | | |
137 | 141 | | |
138 | 142 | | |
139 | | - | |
140 | 143 | | |
141 | 144 | | |
142 | 145 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
Lines changed: 1 addition & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | | - | |
| 3 | + | |
6 | 4 | | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
0 commit comments