Skip to content

Commit

Permalink
Merge pull request #5 from javierbrea/release
Browse files Browse the repository at this point in the history
Release
  • Loading branch information
javierbrea authored Jun 13, 2020
2 parents 7d99ed0 + b82eafa commit 3b2d032
Show file tree
Hide file tree
Showing 54 changed files with 4,545 additions and 182 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,15 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
### Fixed
### Removed

## [1.0.0] - 2020-06-13
### Added
- test(unit): Add unit tests
- test(coverage): Increase coverage threshold to 100
- feat(logs): Add chalk to warning logs

### Changed
- refactor: Remove duplicated code

## [1.0.0-beta.3] - 2020-06-12
### Fixed
- fix(no-external): Fix no-external rule. There was an error reading options, so it was not being applied.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ In your `.eslintrc.json` file:
* __`boundaries/ignore`__: Files matching these glob expressions will be ignored by the plugin.
* __`boundaries/alias`__: If you are using alias in the project (e.g. [webpack resolve alias](https://webpack.js.org/configuration/resolve/#resolvealias) or [babel-plugin-module-resolver](https://www.npmjs.com/package/babel-plugin-module-resolver)), you'll have to provide those alias also to the plugin configuration.

> NOTE: The plugin uses [glob](https://www.npmjs.com/package/glob) under the hood to do file names and folders matching.
> NOTE: The plugin uses [globule](https://www.npmjs.com/package/globule) under the hood to do file names and folders matching.
### Rules configuration

Expand Down
2 changes: 1 addition & 1 deletion docs/rules/entry-point.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ src/

```js
// src/components/component-a/ComponentA.js
import ComponentB from "../components/component-b/ComponentB.js"
import ComponentB from "../component-b/ComponentB.js"

```

Expand Down
33 changes: 33 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
// For a detailed explanation regarding each configuration property, visit:
// https://jestjs.io/docs/en/configuration.html

module.exports = {
// Automatically clear mock calls and instances between every test
clearMocks: true,

// Indicates whether the coverage information should be collected while executing the test
collectCoverage: true,

// An array of glob patterns indicating a set of files for which coverage information should be collected
collectCoverageFrom: ["src/**"],

// The directory where Jest should output its coverage files
coverageDirectory: "coverage",

// An object that configures minimum threshold enforcement for coverage results
coverageThreshold: {
global: {
branches: 100,
functions: 100,
lines: 100,
statements: 100,
},
},

// The test environment that will be used for testing
testEnvironment: "node",

// The glob patterns Jest uses to detect test files
testMatch: ["**/test/**/*.spec.js"],
// testMatch: ["**/test/src/rules/no-private.spec.js"],
};
Loading

0 comments on commit 3b2d032

Please sign in to comment.