DEV: eslint/prettier

This commit is contained in:
Joffrey JAFFEUX 2019-01-11 17:30:57 +01:00
parent b7dff35722
commit 656081fbcd
4 changed files with 1138 additions and 0 deletions

105
.eslintrc Normal file
View File

@ -0,0 +1,105 @@
{
"env": {
"jasmine": true,
"node": true,
"mocha": true,
"browser": true,
"builtin": true
},
"parserOptions": {
"ecmaVersion": 7,
"sourceType": "module"
},
"globals": {
"Ember":true,
"jQuery":true,
"$":true,
"RSVP":true,
"Discourse":true,
"PreloadStore":true,
"Handlebars":true,
"I18n":true,
"bootbox":true,
"module":true,
"moduleFor":true,
"moduleForComponent":true,
"Pretender":true,
"sandbox":true,
"controllerFor":true,
"test":true,
"ok":true,
"not":true,
"expect":true,
"equal":true,
"visit":true,
"andThen":true,
"click":true,
"currentPath":true,
"currentRouteName":true,
"currentURL":true,
"fillIn":true,
"keyEvent":true,
"triggerEvent":true,
"count":true,
"exists":true,
"visible":true,
"invisible":true,
"asyncRender":true,
"selectKit":true,
"asyncTestDiscourse":true,
"fixture":true,
"find":true,
"sinon":true,
"moment":true,
"start":true,
"_":true,
"alert":true,
"containsInstance":true,
"deepEqual":true,
"notEqual":true,
"define":true,
"require":true,
"requirejs":true,
"hasModule":true,
"Blob":true,
"File":true},
"rules": {
"block-scoped-var": 2,
"dot-notation": 0,
"eqeqeq": [
2,
"allow-null"
],
"guard-for-in": 2,
"no-bitwise": 2,
"no-caller": 2,
"no-cond-assign": 0,
"no-debugger": 2,
"no-empty": 0,
"no-eval": 2,
"no-extend-native": 2,
"no-extra-parens": 0,
"no-irregular-whitespace": 2,
"no-iterator": 2,
"no-loop-func": 2,
"no-multi-str": 2,
"no-new": 2,
"no-plusplus": 0,
"no-proto": 2,
"no-script-url": 2,
"no-sequences": 2,
"no-shadow": 2,
"no-undef": 2,
"no-unused-vars": 2,
"no-with": 2,
"no-this-before-super": 2,
"semi": 2,
"strict": 0,
"valid-typeof": 2,
"wrap-iife": [
2,
"inside"
]
},
"parser": "babel-eslint"
}

1
.gitignore vendored
View File

@ -1,4 +1,5 @@
auto_generated/
.DS_Store
node_modules/
.rubocop-https---raw-githubusercontent-com-discourse-discourse-master--rubocop-yml

12
package.json Normal file
View File

@ -0,0 +1,12 @@
{
"name": "discourse",
"version": "1.0.0",
"repository": "git@github.com:discourse/discourse-chat-integration.git",
"author": "Discourse",
"license": "MIT",
"devDependencies": {
"babel-eslint": "^8.2",
"eslint": "^4.19",
"prettier": "1.14.3"
}
}

1020
yarn.lock Normal file

File diff suppressed because it is too large Load Diff