├── .babelrc ├── .gitignore ├── .lintstagedrc ├── .npmrc ├── README.md ├── jest.config.js ├── package.json ├── src └── index.js └── test ├── fixtures ├── generator-fallback │ ├── deduped-helper │ │ ├── input.js │ │ ├── options.json │ │ └── output.js │ ├── in-complex-expression │ │ ├── input.js │ │ ├── options.json │ │ └── output.js │ ├── in-nested-block │ │ ├── input.js │ │ ├── options.json │ │ └── output.js │ ├── mixed │ │ ├── input.js │ │ ├── options.json │ │ └── output.js │ ├── multiple │ │ ├── input.js │ │ ├── options.json │ │ └── output.js │ └── preserved-function-environment │ │ ├── input.js │ │ ├── options.json │ │ └── output.js ├── nested-in-expression │ ├── 1 │ │ ├── input.js │ │ ├── options.json │ │ └── output.js │ └── 2 │ │ ├── input.js │ │ ├── options.json │ │ └── output.js ├── other │ └── leaked-variable │ │ ├── input.js │ │ ├── options.json │ │ └── output.js └── sane │ ├── array-pattern-declaration │ ├── input.js │ ├── options.json │ └── output.js │ ├── array-pattern-expression │ ├── input.js │ ├── options.json │ └── output.js │ ├── basic │ ├── input.js │ ├── options.json │ └── output.js │ ├── member-expression │ ├── input.js │ ├── options.json │ └── output.js │ ├── multiple │ ├── input.js │ ├── options.json │ └── output.js │ ├── object-pattern-declaration │ ├── input.js │ ├── options.json │ └── output.js │ ├── object-pattern-expression │ ├── input.js │ ├── options.json │ └── output.js │ └── preserved-const │ ├── input.js │ ├── options.json │ └── output.js └── index.js /.babelrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Andarist/babel-plugin-jsx-adopt/HEAD/.babelrc -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | lib 3 | -------------------------------------------------------------------------------- /.lintstagedrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Andarist/babel-plugin-jsx-adopt/HEAD/.lintstagedrc -------------------------------------------------------------------------------- /.npmrc: -------------------------------------------------------------------------------- 1 | package-lock=false 2 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Andarist/babel-plugin-jsx-adopt/HEAD/README.md -------------------------------------------------------------------------------- /jest.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Andarist/babel-plugin-jsx-adopt/HEAD/jest.config.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Andarist/babel-plugin-jsx-adopt/HEAD/package.json -------------------------------------------------------------------------------- /src/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Andarist/babel-plugin-jsx-adopt/HEAD/src/index.js -------------------------------------------------------------------------------- /test/fixtures/generator-fallback/deduped-helper/input.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Andarist/babel-plugin-jsx-adopt/HEAD/test/fixtures/generator-fallback/deduped-helper/input.js -------------------------------------------------------------------------------- /test/fixtures/generator-fallback/deduped-helper/options.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Andarist/babel-plugin-jsx-adopt/HEAD/test/fixtures/generator-fallback/deduped-helper/options.json -------------------------------------------------------------------------------- /test/fixtures/generator-fallback/deduped-helper/output.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Andarist/babel-plugin-jsx-adopt/HEAD/test/fixtures/generator-fallback/deduped-helper/output.js -------------------------------------------------------------------------------- /test/fixtures/generator-fallback/in-complex-expression/input.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Andarist/babel-plugin-jsx-adopt/HEAD/test/fixtures/generator-fallback/in-complex-expression/input.js -------------------------------------------------------------------------------- /test/fixtures/generator-fallback/in-complex-expression/options.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Andarist/babel-plugin-jsx-adopt/HEAD/test/fixtures/generator-fallback/in-complex-expression/options.json -------------------------------------------------------------------------------- /test/fixtures/generator-fallback/in-complex-expression/output.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Andarist/babel-plugin-jsx-adopt/HEAD/test/fixtures/generator-fallback/in-complex-expression/output.js -------------------------------------------------------------------------------- /test/fixtures/generator-fallback/in-nested-block/input.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Andarist/babel-plugin-jsx-adopt/HEAD/test/fixtures/generator-fallback/in-nested-block/input.js -------------------------------------------------------------------------------- /test/fixtures/generator-fallback/in-nested-block/options.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Andarist/babel-plugin-jsx-adopt/HEAD/test/fixtures/generator-fallback/in-nested-block/options.json -------------------------------------------------------------------------------- /test/fixtures/generator-fallback/in-nested-block/output.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Andarist/babel-plugin-jsx-adopt/HEAD/test/fixtures/generator-fallback/in-nested-block/output.js -------------------------------------------------------------------------------- /test/fixtures/generator-fallback/mixed/input.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Andarist/babel-plugin-jsx-adopt/HEAD/test/fixtures/generator-fallback/mixed/input.js -------------------------------------------------------------------------------- /test/fixtures/generator-fallback/mixed/options.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Andarist/babel-plugin-jsx-adopt/HEAD/test/fixtures/generator-fallback/mixed/options.json -------------------------------------------------------------------------------- /test/fixtures/generator-fallback/mixed/output.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Andarist/babel-plugin-jsx-adopt/HEAD/test/fixtures/generator-fallback/mixed/output.js -------------------------------------------------------------------------------- /test/fixtures/generator-fallback/multiple/input.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Andarist/babel-plugin-jsx-adopt/HEAD/test/fixtures/generator-fallback/multiple/input.js -------------------------------------------------------------------------------- /test/fixtures/generator-fallback/multiple/options.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Andarist/babel-plugin-jsx-adopt/HEAD/test/fixtures/generator-fallback/multiple/options.json -------------------------------------------------------------------------------- /test/fixtures/generator-fallback/multiple/output.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Andarist/babel-plugin-jsx-adopt/HEAD/test/fixtures/generator-fallback/multiple/output.js -------------------------------------------------------------------------------- /test/fixtures/generator-fallback/preserved-function-environment/input.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Andarist/babel-plugin-jsx-adopt/HEAD/test/fixtures/generator-fallback/preserved-function-environment/input.js -------------------------------------------------------------------------------- /test/fixtures/generator-fallback/preserved-function-environment/options.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Andarist/babel-plugin-jsx-adopt/HEAD/test/fixtures/generator-fallback/preserved-function-environment/options.json -------------------------------------------------------------------------------- /test/fixtures/generator-fallback/preserved-function-environment/output.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Andarist/babel-plugin-jsx-adopt/HEAD/test/fixtures/generator-fallback/preserved-function-environment/output.js -------------------------------------------------------------------------------- /test/fixtures/nested-in-expression/1/input.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Andarist/babel-plugin-jsx-adopt/HEAD/test/fixtures/nested-in-expression/1/input.js -------------------------------------------------------------------------------- /test/fixtures/nested-in-expression/1/options.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Andarist/babel-plugin-jsx-adopt/HEAD/test/fixtures/nested-in-expression/1/options.json -------------------------------------------------------------------------------- /test/fixtures/nested-in-expression/1/output.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Andarist/babel-plugin-jsx-adopt/HEAD/test/fixtures/nested-in-expression/1/output.js -------------------------------------------------------------------------------- /test/fixtures/nested-in-expression/2/input.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Andarist/babel-plugin-jsx-adopt/HEAD/test/fixtures/nested-in-expression/2/input.js -------------------------------------------------------------------------------- /test/fixtures/nested-in-expression/2/options.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Andarist/babel-plugin-jsx-adopt/HEAD/test/fixtures/nested-in-expression/2/options.json -------------------------------------------------------------------------------- /test/fixtures/nested-in-expression/2/output.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Andarist/babel-plugin-jsx-adopt/HEAD/test/fixtures/nested-in-expression/2/output.js -------------------------------------------------------------------------------- /test/fixtures/other/leaked-variable/input.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Andarist/babel-plugin-jsx-adopt/HEAD/test/fixtures/other/leaked-variable/input.js -------------------------------------------------------------------------------- /test/fixtures/other/leaked-variable/options.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Andarist/babel-plugin-jsx-adopt/HEAD/test/fixtures/other/leaked-variable/options.json -------------------------------------------------------------------------------- /test/fixtures/other/leaked-variable/output.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Andarist/babel-plugin-jsx-adopt/HEAD/test/fixtures/other/leaked-variable/output.js -------------------------------------------------------------------------------- /test/fixtures/sane/array-pattern-declaration/input.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Andarist/babel-plugin-jsx-adopt/HEAD/test/fixtures/sane/array-pattern-declaration/input.js -------------------------------------------------------------------------------- /test/fixtures/sane/array-pattern-declaration/options.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Andarist/babel-plugin-jsx-adopt/HEAD/test/fixtures/sane/array-pattern-declaration/options.json -------------------------------------------------------------------------------- /test/fixtures/sane/array-pattern-declaration/output.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Andarist/babel-plugin-jsx-adopt/HEAD/test/fixtures/sane/array-pattern-declaration/output.js -------------------------------------------------------------------------------- /test/fixtures/sane/array-pattern-expression/input.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Andarist/babel-plugin-jsx-adopt/HEAD/test/fixtures/sane/array-pattern-expression/input.js -------------------------------------------------------------------------------- /test/fixtures/sane/array-pattern-expression/options.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Andarist/babel-plugin-jsx-adopt/HEAD/test/fixtures/sane/array-pattern-expression/options.json -------------------------------------------------------------------------------- /test/fixtures/sane/array-pattern-expression/output.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Andarist/babel-plugin-jsx-adopt/HEAD/test/fixtures/sane/array-pattern-expression/output.js -------------------------------------------------------------------------------- /test/fixtures/sane/basic/input.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Andarist/babel-plugin-jsx-adopt/HEAD/test/fixtures/sane/basic/input.js -------------------------------------------------------------------------------- /test/fixtures/sane/basic/options.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Andarist/babel-plugin-jsx-adopt/HEAD/test/fixtures/sane/basic/options.json -------------------------------------------------------------------------------- /test/fixtures/sane/basic/output.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Andarist/babel-plugin-jsx-adopt/HEAD/test/fixtures/sane/basic/output.js -------------------------------------------------------------------------------- /test/fixtures/sane/member-expression/input.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Andarist/babel-plugin-jsx-adopt/HEAD/test/fixtures/sane/member-expression/input.js -------------------------------------------------------------------------------- /test/fixtures/sane/member-expression/options.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Andarist/babel-plugin-jsx-adopt/HEAD/test/fixtures/sane/member-expression/options.json -------------------------------------------------------------------------------- /test/fixtures/sane/member-expression/output.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Andarist/babel-plugin-jsx-adopt/HEAD/test/fixtures/sane/member-expression/output.js -------------------------------------------------------------------------------- /test/fixtures/sane/multiple/input.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Andarist/babel-plugin-jsx-adopt/HEAD/test/fixtures/sane/multiple/input.js -------------------------------------------------------------------------------- /test/fixtures/sane/multiple/options.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Andarist/babel-plugin-jsx-adopt/HEAD/test/fixtures/sane/multiple/options.json -------------------------------------------------------------------------------- /test/fixtures/sane/multiple/output.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Andarist/babel-plugin-jsx-adopt/HEAD/test/fixtures/sane/multiple/output.js -------------------------------------------------------------------------------- /test/fixtures/sane/object-pattern-declaration/input.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Andarist/babel-plugin-jsx-adopt/HEAD/test/fixtures/sane/object-pattern-declaration/input.js -------------------------------------------------------------------------------- /test/fixtures/sane/object-pattern-declaration/options.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Andarist/babel-plugin-jsx-adopt/HEAD/test/fixtures/sane/object-pattern-declaration/options.json -------------------------------------------------------------------------------- /test/fixtures/sane/object-pattern-declaration/output.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Andarist/babel-plugin-jsx-adopt/HEAD/test/fixtures/sane/object-pattern-declaration/output.js -------------------------------------------------------------------------------- /test/fixtures/sane/object-pattern-expression/input.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Andarist/babel-plugin-jsx-adopt/HEAD/test/fixtures/sane/object-pattern-expression/input.js -------------------------------------------------------------------------------- /test/fixtures/sane/object-pattern-expression/options.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Andarist/babel-plugin-jsx-adopt/HEAD/test/fixtures/sane/object-pattern-expression/options.json -------------------------------------------------------------------------------- /test/fixtures/sane/object-pattern-expression/output.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Andarist/babel-plugin-jsx-adopt/HEAD/test/fixtures/sane/object-pattern-expression/output.js -------------------------------------------------------------------------------- /test/fixtures/sane/preserved-const/input.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Andarist/babel-plugin-jsx-adopt/HEAD/test/fixtures/sane/preserved-const/input.js -------------------------------------------------------------------------------- /test/fixtures/sane/preserved-const/options.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Andarist/babel-plugin-jsx-adopt/HEAD/test/fixtures/sane/preserved-const/options.json -------------------------------------------------------------------------------- /test/fixtures/sane/preserved-const/output.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Andarist/babel-plugin-jsx-adopt/HEAD/test/fixtures/sane/preserved-const/output.js -------------------------------------------------------------------------------- /test/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Andarist/babel-plugin-jsx-adopt/HEAD/test/index.js --------------------------------------------------------------------------------