Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@ This package contains several main ESLint configs for different project styles:
- `matrix-org/typescript`: The style for TypeScript projects. It extends
`matrix-org/javascript`.

There is also a mixin config that can be used together with any of the above:
There are also some mixin configs that can be used together with any of the above:

- `matrix-org/react`: The style for React projects.
- `matrix-org/jest`: The style for projects that use Jest for testing.

# Getting started

Expand Down Expand Up @@ -101,7 +102,7 @@ Standard TypeScript with React
}
```

Standard TypeScript with React and jsx a11y
Standard TypeScript with React, jsx a11y, and Jest
```js
{
plugins: [
Expand All @@ -111,6 +112,7 @@ Standard TypeScript with React and jsx a11y
"plugin:matrix-org/typescript",
"plugin:matrix-org/react",
"plugin:matrix-org/a11y"
"plugin:matrix-org/jest"
]
}
```
Expand Down Expand Up @@ -145,6 +147,7 @@ following depending on the configs you enable:
* eslint-config-google
* eslint-config-prettier
* eslint-plugin-deprecate
* eslint-plugin-jest
* eslint-plugin-jsx-a11y
* eslint-plugin-react
* eslint-plugin-react-hooks
Expand Down
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@ module.exports = {
"react": require("./react"),
"typescript": require("./typescript"),
"a11y": require("./a11y"),
"jest": require("./jest"),
},
};
18 changes: 18 additions & 0 deletions jest.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
module.exports = {
plugins: ["jest"],
extends: ["plugin:jest/recommended"],
rules: {
"jest/no-standalone-expect": [
"error",
{
additionalTestBlockFunctions: [
"beforeAll",
"beforeEach",
],
},
],
// It's ok to have no expect assertions in your test. Maybe you're testing that
// things just don't blow up.
"jest/expect-expect": "off",
},
};
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"eslint-config-prettier": "*",
"eslint-plugin-deprecate": "*",
"eslint-plugin-import": "*",
"eslint-plugin-jest": "*",
"eslint-plugin-jsx-a11y": "*",
"eslint-plugin-react": "*",
"eslint-plugin-react-hooks": "*",
Expand Down