eslint-config-matrix-org
v0.2.0 eslint
eslint-config-matrix-org
eslint-config-matrix-org is the ideal style adhered to by matrixorg projects.
It codifies https://github.com/matrix-org/matrix-react-sdk/blob/develop/code_style.md
This package contains five styles:
matrixorg
: The style for js projects.matrixorg/react
: The style for react based projects. Intended to be used in conjunction withmatrixorg
ormatrixorg/ts
.matrixorg/legacy
: The style adhered to by established projects making use pre es6, namelymatrix-js-sdk
. It extendsmatrixorg
. DEPRECATED - DO NOT USEmatrixorg/react-legacy
: Styling for react projects using flowtype instead of ts. Intended to be phased out. It extendsmatrixorg/react
. DEPRECATED - DO NOT USEmatrixorg/ts
: The style for ts projects. It extendsmatrixorg
.
Development
To test it out
In this repo run:
yarn link
In the target repo run:
yarn link eslint-config-matrix-org
And add any of the following to your eslint:
Standard js style
{
extends: [
"matrix-org",
]
}
Standard ts style
{
extends: [
"matrix-org/ts",
]
}
Standard js with react
{
extends: [
"matrix-org",
"matrix-org/react",
]
}
Standard ts with react
{
extends: [
"matrix-org/ts",
"matrix-org/react",
]
}
npm i eslint-config-matrix-org
Metadata
- Apache-2.0
- Whatever
- Unknown
- released 1/20/2021