DEV: prettier/eslint

This commit is contained in:
Joffrey JAFFEUX 2019-01-11 17:37:44 +01:00
parent 73d6b9fcad
commit a88b4cdf67
4 changed files with 1089 additions and 63 deletions

118
.eslintrc
View File

@ -10,67 +10,64 @@
"ecmaVersion": 7, "ecmaVersion": 7,
"sourceType": "module" "sourceType": "module"
}, },
"globals": "globals": {
{"Ember":true, "Ember": true,
"jQuery":true, "jQuery": true,
"$":true, "$": true,
"RSVP":true, "RSVP": true,
"Discourse":true, "Discourse": true,
"Em":true, "PreloadStore": true,
"PreloadStore":true, "Handlebars": true,
"Handlebars":true, "I18n": true,
"I18n":true, "bootbox": true,
"bootbox":true, "module": true,
"module":true, "moduleFor": true,
"moduleFor":true, "moduleForComponent": true,
"moduleForComponent":true, "Pretender": true,
"Pretender":true, "sandbox": true,
"sandbox":true, "controllerFor": true,
"controllerFor":true, "test": true,
"test":true, "ok": true,
"ok":true, "not": true,
"not":true, "expect": true,
"expect":true, "equal": true,
"equal":true, "visit": true,
"visit":true, "andThen": true,
"andThen":true, "click": true,
"click":true, "currentPath": true,
"currentPath":true, "currentRouteName": true,
"currentRouteName":true, "currentURL": true,
"currentURL":true, "fillIn": true,
"fillIn":true, "keyEvent": true,
"keyEvent":true, "triggerEvent": true,
"triggerEvent":true, "count": true,
"count":true, "exists": true,
"exists":true, "visible": true,
"visible":true, "invisible": true,
"invisible":true, "asyncRender": true,
"asyncRender":true, "selectDropdown": true,
"selectDropdown":true, "asyncTestDiscourse": true,
"asyncTestDiscourse":true, "fixture": true,
"fixture":true, "find": true,
"find":true, "sinon": true,
"sinon":true, "moment": true,
"moment":true, "start": true,
"start":true, "_": true,
"_":true, "alert": true,
"alert":true, "containsInstance": true,
"containsInstance":true, "deepEqual": true,
"deepEqual":true, "notEqual": true,
"notEqual":true, "define": true,
"define":true, "require": true,
"require":true, "requirejs": true,
"requirejs":true, "hasModule": true,
"hasModule":true, "Blob": true,
"Blob":true, "File": true
"File":true}, },
"rules": { "rules": {
"block-scoped-var": 2, "block-scoped-var": 2,
"dot-notation": 0, "dot-notation": 0,
"eqeqeq": [ "eqeqeq": [2, "allow-null"],
2,
"allow-null"
],
"guard-for-in": 2, "guard-for-in": 2,
"no-bitwise": 2, "no-bitwise": 2,
"no-caller": 2, "no-caller": 2,
@ -96,10 +93,7 @@
"semi": 2, "semi": 2,
"strict": 0, "strict": 0,
"valid-typeof": 2, "valid-typeof": 2,
"wrap-iife": [ "wrap-iife": [2, "inside"]
2,
"inside"
]
}, },
"parser": "babel-eslint" "parser": "babel-eslint"
} }

2
.gitignore vendored
View File

@ -5,5 +5,5 @@ auto_generated
Gemfile.lock Gemfile.lock
.DS_Store .DS_Store
*.swp *.swp
node_modules/
.rubocop-https---raw-githubusercontent-com-discourse-discourse-master--rubocop-yml .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-cakeday.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