Skip to content

Commit

Permalink
style: adding eslint-plugin-unicorn eslint rules
Browse files Browse the repository at this point in the history
  • Loading branch information
willmendesneto committed Oct 31, 2021
1 parent dca1a3a commit ae8323e
Show file tree
Hide file tree
Showing 4 changed files with 204 additions and 4 deletions.
17 changes: 17 additions & 0 deletions .eslintrc.js
Expand Up @@ -306,8 +306,25 @@ module.exports = {
'plugin:testing-library/react',
'plugin:jest-dom/recommended',
'plugin:jest/all',
'plugin:unicorn/all',
],
rules: {
'unicorn/new-for-builtins': 'off',
'unicorn/filename-case': [
'error',
{
case: 'camelCase',
},
],
'unicorn/prevent-abbreviations': [
'error',
{
allowList: {
props: true,
getInitialProps: true,
},
},
],
'testing-library/no-node-access': 'off',
'testing-library/prefer-find-by': 'off',
'jest/prefer-expect-assertions': 'off',
Expand Down
10 changes: 6 additions & 4 deletions CHANGELOG.md
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

## [Unreleased][]

### Updated

- Improving code linting by adding `eslint-plugin-unicorn` package

## [1.0.2][] - 2021-10-29

### Fixed
Expand Down Expand Up @@ -51,7 +55,5 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
[1.0.0]: https://github.com/willmendesneto/react-sweet-wizard/tree/v1.0.0
[unreleased]: https://github.com/willmendesneto/react-sweet-wizard/compare/v1.0.1...HEAD
[1.0.1]: https://github.com/willmendesneto/react-sweet-wizard/tree/v1.0.1


[Unreleased]: https://github.com/willmendesneto/react-sweet-wizard/compare/v1.0.2...HEAD
[1.0.2]: https://github.com/willmendesneto/react-sweet-wizard/tree/v1.0.2
[unreleased]: https://github.com/willmendesneto/react-sweet-wizard/compare/v1.0.2...HEAD
[1.0.2]: https://github.com/willmendesneto/react-sweet-wizard/tree/v1.0.2
180 changes: 180 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Expand Up @@ -99,6 +99,7 @@
"eslint-plugin-react-hooks": "^4.2.0",
"eslint-plugin-sonarjs": "^0.10.0",
"eslint-plugin-testing-library": "^5.0.0",
"eslint-plugin-unicorn": "^37.0.1",
"husky": "^7.0.4",
"jest": "^27.3.1",
"lint-staged": "^11.2.6",
Expand Down

0 comments on commit ae8323e

Please sign in to comment.