This repository has been archived by the owner on Oct 30, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #310 from tchapgouv/ops/merge-repos-simple
Repo merge : simple version
- Loading branch information
Showing
1,410 changed files
with
237,747 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"presets": ["es2015"], | ||
"plugins": [ | ||
"transform-class-properties", | ||
|
||
// this transforms async functions into generator functions, which | ||
// are then made to use the regenerator module by babel's | ||
// transform-regnerator plugin (which is enabled by es2015). | ||
"transform-async-to-bluebird", | ||
|
||
// This makes sure that the regenerator runtime is available to | ||
// the transpiled code. | ||
"transform-runtime", | ||
], | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
steps: | ||
- label: ":eslint: Lint" | ||
command: | ||
- "yarn install" | ||
- "yarn lint" | ||
plugins: | ||
- docker#v3.0.1: | ||
image: "node:10" | ||
|
||
- label: ":karma: Tests" | ||
command: | ||
- "yarn install" | ||
- "yarn test" | ||
plugins: | ||
- docker#v3.0.1: | ||
image: "node:10" | ||
|
||
- label: "📃 Docs" | ||
command: | ||
- "yarn install" | ||
- "yarn gendoc" | ||
plugins: | ||
- docker#v3.0.1: | ||
image: "node:10" | ||
|
||
- wait | ||
|
||
- label: "🐴 Trigger matrix-react-sdk" | ||
trigger: "matrix-react-sdk" | ||
branches: "develop" | ||
build: | ||
branch: "develop" | ||
message: "[js-sdk] ${BUILDKITE_MESSAGE}" | ||
async: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Copyright 2017 Aviral Dasgupta | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
root = true | ||
|
||
[*] | ||
charset=utf-8 | ||
end_of_line = lf | ||
insert_final_newline = true | ||
indent_style = space | ||
indent_size = 4 | ||
trim_trailing_whitespace = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
module.exports = { | ||
parser: "babel-eslint", // now needed for class properties | ||
parserOptions: { | ||
sourceType: "module", | ||
ecmaFeatures: { | ||
} | ||
}, | ||
env: { | ||
browser: true, | ||
node: true, | ||
|
||
// babel's transform-runtime converts references to ES6 globals such as | ||
// Promise and Map to core-js polyfills, so we can use ES6 globals. | ||
es6: true, | ||
}, | ||
extends: ["eslint:recommended", "google"], | ||
plugins: [ | ||
"babel", | ||
], | ||
rules: { | ||
// rules we've always adhered to or now do | ||
"max-len": ["error", { | ||
code: 90, | ||
ignoreComments: true, | ||
}], | ||
curly: ["error", "multi-line"], | ||
"prefer-const": ["error"], | ||
"comma-dangle": ["error", { | ||
arrays: "always-multiline", | ||
objects: "always-multiline", | ||
imports: "always-multiline", | ||
exports: "always-multiline", | ||
functions: "always-multiline", | ||
}], | ||
|
||
// loosen jsdoc requirements a little | ||
"require-jsdoc": ["error", { | ||
require: { | ||
FunctionDeclaration: false, | ||
} | ||
}], | ||
"valid-jsdoc": ["error", { | ||
requireParamDescription: false, | ||
requireReturn: false, | ||
requireReturnDescription: false, | ||
}], | ||
|
||
// rules we do not want from eslint-recommended | ||
"no-console": ["off"], | ||
"no-constant-condition": ["off"], | ||
"no-empty": ["error", { "allowEmptyCatch": true }], | ||
|
||
// rules we do not want from the google styleguide | ||
"object-curly-spacing": ["off"], | ||
"spaced-comment": ["off"], | ||
"guard-for-in": ["off"], | ||
|
||
// in principle we prefer single quotes, but life is too short | ||
quotes: ["off"], | ||
|
||
// rules we'd ideally like to adhere to, but the current | ||
// code does not (in most cases because it's still ES5) | ||
// we set these to warnings, and assert that the number | ||
// of warnings doesn't exceed a given threshold | ||
"no-var": ["warn"], | ||
"brace-style": ["warn", "1tbs", {"allowSingleLine": true}], | ||
"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", | ||
|
||
// 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", | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
patreon: matrixdotorg | ||
liberapay: matrixdotorg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/.jsdocbuild | ||
/.jsdoc | ||
|
||
node_modules | ||
/.npmrc | ||
/*.log | ||
package-lock.json | ||
.lock-wscript | ||
build/Release | ||
coverage | ||
lib-cov | ||
out | ||
reports | ||
/dist | ||
/lib | ||
/specbuild | ||
|
||
# version file and tarball created by `npm pack` / `yarn pack` | ||
/git-revision.txt | ||
/matrix-js-sdk-*.tgz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
instrumentation: | ||
compact: false |
Oops, something went wrong.