Releases: datarockets/dreact
v0.3.0
Enhanced
-
We fail test cases if there are console.error or console.warn executed. This is mostly to keep test cases up-to-date through the time and match them with prop-types definitions.
-
We now allow override eslint config for each project. It's not possible to remove everything added by us and add new rules.
-
We turned on a check of useless inline disables of eslint rules.
-
Up-to-date dependencies.
v0.2.1
v0.2.0
Enhanced
-
Consider
src/services
as a separate category when linting the order of imports (0cf1111, #6) -
Require all components to be written as normal functions. That is mostly to avoid arrow functions as part of convention. (b1d4577, #5)
-
Require tests for the source code. We now require all files to have corresponding test file. (e217d37, #4)
-
Forbid default export in certain files inside collections:
api.js
,actions.js
anduse.js
(8b11e30, #8)
Fixed
v0.1.5
v0.1.4
Fixed
-
Eliminate the conflict between eslint and prettier. We basically turn off eslint rules once we can find prettier in the dependency list of the main app.
-
All the code inside
dreact
package now compiled by Jest.
Enhanced
-
Setup Jest to work with enzyme.
We now use basic setup script so you don't need to care about tests in each project. Just run
dreact test
to run tests with jest and enzyme.It also provides
dreact/helper-test
which exposesenzyme
package. So we are sure that we use correctenzyme
environment under the hood.