You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-11-25 05:23:13 +03:00
42 lines
1.1 KiB
JavaScript
42 lines
1.1 KiB
JavaScript
module.exports = {
|
|
extends: ["matrix-org"],
|
|
plugins: [
|
|
"babel",
|
|
"jest",
|
|
],
|
|
env: {
|
|
browser: true,
|
|
node: true,
|
|
},
|
|
|
|
rules: {
|
|
"no-var": ["warn"],
|
|
"prefer-rest-params": ["warn"],
|
|
"prefer-spread": ["warn"],
|
|
"one-var": ["warn"],
|
|
"padded-blocks": ["warn"],
|
|
"no-extend-native": ["warn"],
|
|
"camelcase": ["warn"],
|
|
"no-multi-spaces": ["error", { "ignoreEOLComments": true }],
|
|
"space-before-function-paren": ["error", {
|
|
"anonymous": "never",
|
|
"named": "never",
|
|
"asyncArrow": "always",
|
|
}],
|
|
"arrow-parens": "off",
|
|
"prefer-promise-reject-errors": "off",
|
|
"quotes": "off",
|
|
"indent": "off",
|
|
"no-constant-condition": "off",
|
|
"no-async-promise-executor": "off",
|
|
},
|
|
overrides: [{
|
|
files: ["src/**/*.{ts, tsx}"],
|
|
"extends": ["matrix-org/ts"],
|
|
"rules": {
|
|
// While we're converting to ts we make heavy use of this
|
|
"@typescript-eslint/no-explicit-any": "off",
|
|
}
|
|
}],
|
|
}
|