Skip to content

Commit 5e6bf57

Browse files
committed
Merge branch 'develop' into feature/stylint
2 parents 43de546 + 4133502 commit 5e6bf57

File tree

4 files changed

+12
-5
lines changed

4 files changed

+12
-5
lines changed

docs/commands.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,4 @@ All build commands are executed via [NPM Scripts](https://docs.npmjs.com/misc/sc
3939

4040
### `npm run lint`
4141

42-
> Runs eslint and reports any linting errors in your code. See [Linter Configuration](linter.md)
42+
> Runs eslint and stylelint, then reports any linting errors in your code. See [Linter Configuration](linter.md)

docs/linter.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,11 @@ If you are not happy with the default linting rules, you have several options:
2828
```
2929

3030
2. Pick "none" for stylelint preset when generating the project and define your own rules. See [Stylelint documentation](http://stylelint.io/user-guide/rules/) for more details.
31+
32+
## Fixing Linting Errors
33+
34+
You can run the following command to let eslint fix any errors it finds (if it can - not all errors are fixable like this):
35+
36+
```
37+
npm run lint:fix
38+
```

docs/structure.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,8 @@
3434
├── .eslintignore.js # eslint ignore rules
3535
├── .gitignore # sensible defaults for gitignore
3636
├── .postcssrc.js # postcss config
37-
├── .eslintrc.js # eslint config
3837
├── .stylelintrc.js # stylelint config
39-
├── .editorconfig # editor config
38+
├── .stylelintignore # stylelint ignore rules
4039
├── index.html # index.html template
4140
├── package.json # build scripts and dependencies
4241
└── README.md # Default README file

template/test/e2e/custom-assertions/elementCount.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ exports.assertion = function (selector, count) {
1818
}
1919
this.command = function (cb) {
2020
var self = this{{#if_eq eslintConfig "airbnb"}};{{/if_eq}}
21-
return this.api.execute(function (selectorToCount) {
22-
return document.querySelectorAll(selectorToCount).length{{#if_eq eslintConfig "airbnb"}};{{/if_eq}}
21+
return this.api.execute(function (selector) {
22+
return document.querySelectorAll(selector).length{{#if_eq eslintConfig "airbnb"}};{{/if_eq}}
2323
}, [selector], function (res) {
2424
cb.call(self, res){{#if_eq eslintConfig "airbnb"}};{{/if_eq}}
2525
}){{#if_eq eslintConfig "airbnb"}};{{/if_eq}}

0 commit comments

Comments
 (0)