├── .babelrc ├── .gitignore ├── .npmignore ├── LICENSE ├── README.md ├── package.json ├── src └── index.js └── test ├── fixtures ├── .babelrc ├── impure-instance-props │ ├── actual.js │ └── expected.js ├── impure-methods │ ├── actual.js │ └── expected.js ├── impure-ref │ ├── actual.js │ └── expected.js ├── impure-state │ ├── actual.js │ └── expected.js ├── impure-static-props │ ├── actual.js │ └── expected.js ├── pure-class-expression │ ├── actual.js │ └── expected.js ├── pure-no-props │ ├── actual.js │ └── expected.js ├── pure-props │ ├── actual.js │ └── expected.js └── pure-static-props │ ├── actual.js │ └── expected.js └── index.js /.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": ["es2015"] 3 | } 4 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | *.log 3 | lib 4 | -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | *.log 3 | src 4 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamiebuilds/babel-plugin-react-pure-components/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamiebuilds/babel-plugin-react-pure-components/HEAD/README.md -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamiebuilds/babel-plugin-react-pure-components/HEAD/package.json -------------------------------------------------------------------------------- /src/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamiebuilds/babel-plugin-react-pure-components/HEAD/src/index.js -------------------------------------------------------------------------------- /test/fixtures/.babelrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamiebuilds/babel-plugin-react-pure-components/HEAD/test/fixtures/.babelrc -------------------------------------------------------------------------------- /test/fixtures/impure-instance-props/actual.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamiebuilds/babel-plugin-react-pure-components/HEAD/test/fixtures/impure-instance-props/actual.js -------------------------------------------------------------------------------- /test/fixtures/impure-instance-props/expected.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamiebuilds/babel-plugin-react-pure-components/HEAD/test/fixtures/impure-instance-props/expected.js -------------------------------------------------------------------------------- /test/fixtures/impure-methods/actual.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamiebuilds/babel-plugin-react-pure-components/HEAD/test/fixtures/impure-methods/actual.js -------------------------------------------------------------------------------- /test/fixtures/impure-methods/expected.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamiebuilds/babel-plugin-react-pure-components/HEAD/test/fixtures/impure-methods/expected.js -------------------------------------------------------------------------------- /test/fixtures/impure-ref/actual.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamiebuilds/babel-plugin-react-pure-components/HEAD/test/fixtures/impure-ref/actual.js -------------------------------------------------------------------------------- /test/fixtures/impure-ref/expected.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamiebuilds/babel-plugin-react-pure-components/HEAD/test/fixtures/impure-ref/expected.js -------------------------------------------------------------------------------- /test/fixtures/impure-state/actual.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamiebuilds/babel-plugin-react-pure-components/HEAD/test/fixtures/impure-state/actual.js -------------------------------------------------------------------------------- /test/fixtures/impure-state/expected.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamiebuilds/babel-plugin-react-pure-components/HEAD/test/fixtures/impure-state/expected.js -------------------------------------------------------------------------------- /test/fixtures/impure-static-props/actual.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamiebuilds/babel-plugin-react-pure-components/HEAD/test/fixtures/impure-static-props/actual.js -------------------------------------------------------------------------------- /test/fixtures/impure-static-props/expected.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamiebuilds/babel-plugin-react-pure-components/HEAD/test/fixtures/impure-static-props/expected.js -------------------------------------------------------------------------------- /test/fixtures/pure-class-expression/actual.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamiebuilds/babel-plugin-react-pure-components/HEAD/test/fixtures/pure-class-expression/actual.js -------------------------------------------------------------------------------- /test/fixtures/pure-class-expression/expected.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamiebuilds/babel-plugin-react-pure-components/HEAD/test/fixtures/pure-class-expression/expected.js -------------------------------------------------------------------------------- /test/fixtures/pure-no-props/actual.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamiebuilds/babel-plugin-react-pure-components/HEAD/test/fixtures/pure-no-props/actual.js -------------------------------------------------------------------------------- /test/fixtures/pure-no-props/expected.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamiebuilds/babel-plugin-react-pure-components/HEAD/test/fixtures/pure-no-props/expected.js -------------------------------------------------------------------------------- /test/fixtures/pure-props/actual.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamiebuilds/babel-plugin-react-pure-components/HEAD/test/fixtures/pure-props/actual.js -------------------------------------------------------------------------------- /test/fixtures/pure-props/expected.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamiebuilds/babel-plugin-react-pure-components/HEAD/test/fixtures/pure-props/expected.js -------------------------------------------------------------------------------- /test/fixtures/pure-static-props/actual.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamiebuilds/babel-plugin-react-pure-components/HEAD/test/fixtures/pure-static-props/actual.js -------------------------------------------------------------------------------- /test/fixtures/pure-static-props/expected.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamiebuilds/babel-plugin-react-pure-components/HEAD/test/fixtures/pure-static-props/expected.js -------------------------------------------------------------------------------- /test/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamiebuilds/babel-plugin-react-pure-components/HEAD/test/index.js --------------------------------------------------------------------------------