Skip to content

Commit

Permalink
fix: exclude new distributed directories from eslint and tsconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
xobotyi committed Apr 23, 2021
1 parent d1d3d72 commit 058960e
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const PRINT_WIDTH = 100;

module.exports = {
root: true,
ignorePatterns: ['dist', 'node_modules', 'coverage', 'storybook-build'],
ignorePatterns: ['node_modules', 'coverage', 'storybook-build', 'cjs', 'esm', 'esnext', 'types'],

plugins: ['prettier'],

Expand Down
3 changes: 1 addition & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
# [1.7.0](https://github.com/react-hookz/web/compare/v1.6.2...v1.7.0) (2021-04-23)


### Features

* package now has /cjs, /esm, /esnext distibuted versions ([4911c9d](https://github.com/react-hookz/web/commit/4911c9d3c0813bff5e52ae98cfc4dfc542996a0b))
- package now has /cjs, /esm, /esnext distibuted versions ([4911c9d](https://github.com/react-hookz/web/commit/4911c9d3c0813bff5e52ae98cfc4dfc542996a0b))

## [1.6.2](https://github.com/react-hookz/web/compare/v1.6.1...v1.6.2) (2021-04-22)

Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@ actually there is more, but in common it is three):

```ts
// in case you need cjs modules
import { useMountEffect } from '@react-hookz/web';
import { useMountEffect } from "@react-hookz/web";
// in case you need esm modules
import { useMountEffect } from '@react-hookz/web/esm';
import { useMountEffect } from "@react-hookz/web/esm";
// in case you want all the recent ES features
import { useMountEffect } from '@react-hookz/web/esnext';
import { useMountEffect } from "@react-hookz/web/esnext";
```

## Hooks list
Expand Down
5 changes: 4 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@
},
"exclude": [
"node_modules",
"dist",
"cjs",
"esm",
"esnext",
"types",
"coverage",
"storybook-build"
],
Expand Down

0 comments on commit 058960e

Please sign in to comment.