Commit 74f5d6d
authored
Fix: always initialize ExportDeclaration attributes (#17164)
* chore: bump eslint and espree
* fix: always initialize ExportDeclaration attributes
* update AST fixtures
* fix: initialize attributes when importAssertions is not enabled
* update AST fixtures
* update test snapshot
* update Makefile.js
* update Babel 8 AST fixtures1 parent fb1e134 commit 74f5d6d
235 files changed
Lines changed: 566 additions & 214 deletions
File tree
- eslint
- babel-eslint-parser
- babel-eslint-plugin-development-internal
- babel-eslint-plugin-development
- babel-eslint-plugin
- babel-eslint-tests
- packages
- babel-parser
- src/parser
- test/fixtures
- comments/decorators
- decorators-after-export
- decorators-before-export
- decorators-legacy-before-export
- core
- opts/allowUndeclaredExports
- scope
- undecl-export-as-default
- undecl-export-as
- undecl-export-block
- undecl-export-builtin-as
- undecl-export-builtin
- undecl-export-function-loose-mode-1
- undecl-export-function-loose-mode-2
- undecl-export-if
- undecl-export-var
- undecl-export
- sourcetype-unambiguous
- flow
- module-export-named
- typescript-type-only
- es2015
- identifiers/invalid-escape-seq-export
- modules
- duplicate-export-default-and-export-as-default
- duplicate-named-export-builtin
- duplicate-named-export-class-declaration
- duplicate-named-export-destructuring-assignment
- duplicate-named-export-destructuring10
- duplicate-named-export-destructuring11
- duplicate-named-export-destructuring12
- duplicate-named-export-destructuring13
- duplicate-named-export-destructuring14
- duplicate-named-export-destructuring15
- duplicate-named-export-destructuring16
- duplicate-named-export-destructuring17
- duplicate-named-export-destructuring18
- duplicate-named-export-destructuring19
- duplicate-named-export-destructuring2
- duplicate-named-export-destructuring3
- duplicate-named-export-destructuring4
- duplicate-named-export-destructuring5
- duplicate-named-export-destructuring6
- duplicate-named-export-destructuring7
- duplicate-named-export-destructuring8
- duplicate-named-export-destructuring9
- duplicate-named-export-destructuring
- duplicate-named-export-function-declaration
- duplicate-named-export-variable-declaration
- duplicate-named-export
- uncategorised
- 380
- 381
- 382
- 383
- 384
- 385
- 391
- 72
- 73
- 74
- 75
- 76
- 77
- 78
- 86
- 87
- 88
- 89
- es2017/async-functions
- 25
- export
- es2018/object-rest-spread
- 11
- 12
- 13
- 14
- 15
- es2022
- module-string-names
- duplicate-exported-binding-check
- export-name-has-lone-surrogate
- named-export
- string-exported-binding-without-from
- top-level-await-module/inside-class-property
- esprima
- es2015-export-declaration
- export-const-number
- export-function-declaration
- export-function
- export-let-number
- export-named-as-default
- export-named-as-specifiers
- export-named-as-specifier
- export-named-empty
- export-named-specifiers-comma
- export-named-specifiers
- export-named-specifier
- export-var-anonymous-function
- export-var-number
- export-var
- invalid-export-named-default
- es2015-identifier
- invalid_expression_await
- invalid_var_await
- estree
- export/decorator-before-export
- typescript
- loc-index-property-babel-7
- loc-index-property
- experimental
- async-explicit-resource-management/invalid-export-await-using
- decorators-legacy/export-decorators-on-class
- decorators
- decorators-before-and-after-export-decoratorsBeforeExport-false
- decorators-before-and-after-export-decoratorsBeforeExport-true
- decorators-before-and-after-export
- decoratorsBeforeExport-true-decorator-after-export
- decoratorsBeforeExport-true-export
- export-decorated-class-decorators-after-export
- export-decorated-class-decorators-before-export
- explicit-resource-management/invalid-export-using
- export-extensions
- export-with-ts-babel-7
- export-with-ts
- import-assertions-with-keyword
- valid-export-without-from
- valid-syntax-export-without-assertions
- import-assertions
- invalid-export-without-from
- invalid-syntax-export-with-repeated-type
- string-literal
- trailing-comma
- valid-empty-assertion
- valid-export-without-from
- valid-syntax-export-with-and-attributes-multiple-lines
- valid-syntax-export-with-attributes-and-value
- valid-syntax-export-with-attributes
- valid-syntax-export-with-no-type-attribute
- valid-syntax-export-with-object-method-attribute
- valid-syntax-export-without-attributes
- import-attributes-createImportExpression-false
- valid-export-class
- valid-export-function
- valid-export-variable
- valid-export-without-from
- import-attributes-deprecatedAssertKeyword
- invalid-export-without-from
- valid-export-class
- valid-export-function
- valid-export-variable
- valid-export-without-from
- import-attributes
- valid-export-class
- valid-export-function
- valid-export-variable
- valid-export-without-from
- json-modules
- invalid-default-and-named-exports
- invalid-named-exports
- module-blocks
- invalid-duplicated-exports-in-blocks
- invalid-undefined-export-in-module-blocks01
- invalid-undefined-export-in-module-blocks02
- valid-assign-module-blocks-to-variables
- valid-duplicated-exports-between-other-modules
- valid-import-module-blocks-createImportExpression-false
- valid-import-module-blocks
- valid-module-blocks-as-arguments
- valid-nested-module-blocks
- valid-singleline-module-blocks
- flow
- declare-export
- export-interface-and-var
- export-interface-commonjs
- export-interface
- export-named-pattern
- export-type-and-var
- export-type-commonjs
- export-type
- enum-declaration/export
- interfaces-module-and-script/implements-exports
- opaque-type-alias
- opaque_subtype_export
- opaque_type_export
- regression/issue-10044
- scope/declare-function-export
- sourcetype-script/export-named
- type-alias/3
- type-exports
- alias
- interface
- specifier
- placeholders
- export
- named-alias-2
- named-alias-3
- named-alias
- named
- typescript/export-namespace
- typescript
- assign
- invalid-TSTypeParameterInstantiation-babel-7
- invalid-TSTypeParameterInstantiation
- class/abstract
- const
- initializer-ambient-context-babel-7
- initializer-ambient-context
- invalid-initializer-ambient-context
- declare
- eval-babel-7
- eval-dts-babel-7
- eval-dts
- eval
- enum
- export-babel-7
- export-const-babel-7
- export-const
- export-declare-const-babel-7
- export-declare-const
- export
- export
- declare-babel-7
- declare
- export-type-declaration
- export-type
- export-value-declaration-babel-7
- export-value-declaration
- nested-same-name
- function/overloads
- import
- export-named-import-require-babel-7
- export-named-import-require
- interface
- export-abstract-interface
- export
- module-namespace
- head-export-babel-7
- head-export
- regression
- is-default-export-babel-7
- is-default-export
- scope
- export-declare-function-after
- export-declare-function-before
- export-enum-after-babel-7
- export-enum-after
- export-enum-before-babel-7
- export-enum-before
- export-func-in-declare-module
- export-import-in-declare-module
- export-interface-after
- export-interface-before
- export-namespace
- export-type-after
- export-type-before
- function-type-before-declaration-optional-pattern
- function-type-before-declaration
- module-declaration-var-2
- module-declaration-var
- redeclaration-in-different-module-and-top-level
- redeclaration-in-nested-module
- type-alias/export
- type-only-import-export-specifiers
- export-invalid-type-only-keyword
- export-named-type-as-keyword
- export-type-only-as-as-keyword
- import-type-only-and-export
- babel-template/test
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
| 52 | + | |
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
| 48 | + | |
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2478 | 2478 | | |
2479 | 2479 | | |
2480 | 2480 | | |
2481 | | - | |
2482 | 2481 | | |
2483 | | - | |
2484 | 2482 | | |
2485 | 2483 | | |
| 2484 | + | |
| 2485 | + | |
2486 | 2486 | | |
2487 | | - | |
| 2487 | + | |
2488 | 2488 | | |
2489 | 2489 | | |
2490 | 2490 | | |
| |||
2499 | 2499 | | |
2500 | 2500 | | |
2501 | 2501 | | |
| 2502 | + | |
| 2503 | + | |
2502 | 2504 | | |
2503 | 2505 | | |
2504 | 2506 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
0 commit comments