Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

Commit 78e9600

Browse files
author
Jeremy Wiebe
committed
Merge branch 'master' into add-markdown-linting
2 parents 11786bb + 56cb31c commit 78e9600

File tree

4 files changed

+21
-2
lines changed

4 files changed

+21
-2
lines changed

CHANGELOG

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
Pending Release
22
- Remove `variable-for-property` rule from sass-lint
3-
- Adds markdown linting
3+
- Adds markdown linting via `lint-md` script
4+
5+
2.6.0
6+
- Remove `variable-for-property` rule from sass-lint [#126](https://github.com/mobify/mobify-code-style/pull/126)
7+
- Add the eslint jsx-a11y plugin through a new `mobify-es6-react-a11y` configuration [#129](https://github.com/mobify/mobify-code-style/pull/129)
8+
49
2.5.3
510
- Fix #123 by using react/jsx-wrap-multilines rule
611
- Migrate CSSComb documentation from Confluence to code style repo

es6/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ The lint configuration is the definitive source for rules; this document explain
99

1010
If React/JSX is in use, use the React default configuration `mobify-es6-react.yml`, which also requires the `eslint-plugin-react` module.
1111

12+
JSX accessibility linting is available with the `mobify-es6-react-a11y.yml` configuration. It requires the additional modules:
13+
14+
- `eslint-plugin-react`
15+
- `eslint-plugin-jsx-a11y`
16+
1217
## Global Names and Environments
1318

1419
By default, the lint configuration only assumes the standard set of

es6/mobify-es6-react-a11y.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
extends:
2+
- './mobify-es6-react.yml'
3+
- 'plugin:jsx-a11y/recommended'
4+
plugins:
5+
- jsx-a11y
6+
rules:
7+
# JSX A11y rules
8+
jsx-a11y/href-no-hash: [1, 'Link']
9+
jsx-a11y/img-has-alt: [1, 'Image']

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "mobify-code-style",
3-
"version": "2.5.3",
3+
"version": "2.6.0",
44
"description": "Code style guide and linting tools for Mobify",
55
"repository": {
66
"type": "git",

0 commit comments

Comments
 (0)