diff --git a/.gitignore b/.gitignore index e6f10e74..af19fa7e 100644 --- a/.gitignore +++ b/.gitignore @@ -33,6 +33,5 @@ docs/_book/ npm-debug.log .build/ lib -.eslintrc yarn-error.log .vscode \ No newline at end of file diff --git a/.prettierrc b/.prettierrc index 36301bc5..7f655094 100644 --- a/.prettierrc +++ b/.prettierrc @@ -1,5 +1,6 @@ { "semi": false, "singleQuote": true, - "trailingComma": "es5" + "trailingComma": "es5", + "eslintIntegration": true } diff --git a/CHANGELOG.md b/CHANGELOG.md index f326d6ee..8981e307 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ## [Unreleased] +## [2.13.0] - 2019-05-17 + +### Added + +- `eslint` configuration. + ## [2.12.0] - 2019-04-24 ### Changed - Scope messages by domain diff --git a/lint.sh b/lint.sh new file mode 100644 index 00000000..ab56b4bd --- /dev/null +++ b/lint.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +cd react/ +yarn +yarn lint \ No newline at end of file diff --git a/manifest.json b/manifest.json index 18394332..5d435b1b 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "vendor": "vtex", "name": "category-menu", - "version": "2.12.0", + "version": "2.13.0", "title": "Category Menu", "description": "Displays the categories for the store in a menu", "defaultLocale": "pt-BR", diff --git a/react/.eslintrc b/react/.eslintrc new file mode 100644 index 00000000..1054bea0 --- /dev/null +++ b/react/.eslintrc @@ -0,0 +1,9 @@ +{ + "extends": "vtex-react", + "env": { + "browser": true, + "es6": true, + "jest": true + } + } + \ No newline at end of file diff --git a/react/index.js b/react/index.js index 37b48a18..0c733cfa 100644 --- a/react/index.js +++ b/react/index.js @@ -95,7 +95,9 @@ class CategoryMenu extends Component { >