You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-28 15:22:05 +03:00
fix eslint's no-invalid-this rule for class properties
This commit is contained in:
@ -13,6 +13,7 @@ module.exports = {
|
||||
plugins: [
|
||||
"react",
|
||||
"flowtype",
|
||||
"babel"
|
||||
],
|
||||
env: {
|
||||
es6: true,
|
||||
@ -23,6 +24,11 @@ module.exports = {
|
||||
}
|
||||
},
|
||||
rules: {
|
||||
// eslint's built in no-invalid-this rule breaks with class properties
|
||||
"no-invalid-this": "off",
|
||||
// so we replace it with a version that is class property aware
|
||||
"babel/no-invalid-this": "error",
|
||||
|
||||
/** react **/
|
||||
// This just uses the react plugin to help eslint known when
|
||||
// variables have been used in JSX
|
||||
|
Reference in New Issue
Block a user