Skip to content

Commit

Permalink
feat: 馃幐 add ramda and test-tools import messages (#42)
Browse files Browse the repository at this point in the history
* feat: 馃幐 add ramda and test-tools import messages

* chore: 馃 update changelog and add chan dep

* chore: 馃 remove wrong ci task
  • Loading branch information
kaisermann committed Feb 3, 2020
1 parent 986a762 commit fe023ec
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 16 deletions.
14 changes: 0 additions & 14 deletions .github/workflows/ci.yml
Expand Up @@ -9,17 +9,3 @@ jobs:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
- run: yarn && yarn lint

Tests:
needs: [Lint]
runs-on: ubuntu-latest
steps:
- run: git config --global core.autocrlf false
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 12
- run: yarn
- run: cd node && yarn && yarn test
env:
CI: true
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -39,6 +39,7 @@
"postinstall": "lerna bootstrap && yarn build && lerna link"
},
"devDependencies": {
"@geut/chan": "^2.1.1",
"eslint": "^6.7.0",
"husky": "^4.2.0",
"lerna": "^3.18.4",
Expand Down
7 changes: 6 additions & 1 deletion packages/eslint-config-vtex/CHANGELOG.md
Expand Up @@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [Unreleased]

## [12.0.4] - 2020-02-03
### Added
- Add warning message for lodash and @testing-library imports.

## [12.0.3] - 2020-01-24
### Fixed
- Changelog on deploy workflow again.
Expand Down Expand Up @@ -73,7 +77,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
### Changed
- Lodash rules and prettier configs.

[Unreleased]: https://github.com/vtex/js-standards/compare/v12.0.3...HEAD
[Unreleased]: https://github.com/vtex/js-standards/compare/v12.0.4...HEAD
[12.0.4]: https://github.com/vtex/js-standards/compare/v12.0.3...v12.0.4
[12.0.3]: https://github.com/vtex/js-standards/compare/v12.0.2...v12.0.3
[12.0.2]: https://github.com/vtex/js-standards/compare/v12.0.1...v12.0.2
[12.0.1]: https://github.com/vtex/js-standards/compare/v12.0.0...v12.0.1
13 changes: 12 additions & 1 deletion packages/eslint-config-vtex/rules/imports.js
Expand Up @@ -8,7 +8,18 @@ module.exports = {
'no-restricted-imports': [
'error',
{
paths: ['lodash'],
paths: [
{
name: 'lodash',
message: "Please use 'ramda' instead",
},
{
name: '@testing-library/react',
message: "Please use '@vtex/test-tools/react' instead",
},
],
// Patterns don't support messages yet :(
// https://github.com/eslint/eslint/issues/11843
patterns: ['lodash/*'],
},
],
Expand Down

0 comments on commit fe023ec

Please sign in to comment.