DEV: apply coding standards (#76)

This commit is contained in:
Joffrey JAFFEUX 2020-09-04 14:35:08 +02:00 committed by GitHub
parent c06d6877c9
commit 4332b01837
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 1615 additions and 3 deletions

3
.eslintrc Normal file
View File

@ -0,0 +1,3 @@
{
"extends": "eslint-config-discourse"
}

4
.gitignore vendored
View File

@ -1,4 +1,6 @@
*.swp
*.sublime-workspace
.DS_Store
._.DS_Store
node_modules
yarn-error.log
.rubocop-https---raw-githubusercontent-com-discourse-*

4
.template-lintrc.js Normal file
View File

@ -0,0 +1,4 @@
module.exports = {
plugins: ["ember-template-lint-plugin-discourse"],
extends: "discourse:recommended",
};

View File

@ -2,7 +2,8 @@ import getURL from "discourse-common/lib/get-url";
export default Ember.Component.extend({
tagName: "tr",
href: function() {
href: function () {
return getURL("/admin/upgrade");
}.property()
}.property(),
});

7
package.json Normal file
View File

@ -0,0 +1,7 @@
{
"author": "Discourse",
"license": "MIT",
"devDependencies": {
"eslint-config-discourse": "latest"
}
}

1595
yarn.lock Normal file

File diff suppressed because it is too large Load Diff