mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
[misc] add editor config, eslint, prettier boiler plate
versions taken from o-error (prettier-eslint-cli from real-time)
This commit is contained in:
parent
7eccce2ed0
commit
1a090b7b46
5 changed files with 2703 additions and 0 deletions
11
libraries/redis-wrapper/.editorconfig
Normal file
11
libraries/redis-wrapper/.editorconfig
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
root = true
|
||||||
|
|
||||||
|
[*]
|
||||||
|
charset = utf-8
|
||||||
|
end_of_line = lf
|
||||||
|
indent_size = 2
|
||||||
|
indent_style = space
|
||||||
|
insert_final_newline = true
|
||||||
|
max_line_length = 79
|
||||||
|
tab_width = 4
|
||||||
|
trim_trailing_whitespace = true
|
23
libraries/redis-wrapper/.eslintrc.json
Normal file
23
libraries/redis-wrapper/.eslintrc.json
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
{
|
||||||
|
"extends": [
|
||||||
|
"standard",
|
||||||
|
"plugin:prettier/recommended",
|
||||||
|
"plugin:mocha/recommended",
|
||||||
|
"plugin:chai-expect/recommended",
|
||||||
|
"plugin:chai-friendly/recommended"
|
||||||
|
],
|
||||||
|
"env": {
|
||||||
|
"node": true
|
||||||
|
},
|
||||||
|
"parserOptions": {
|
||||||
|
"ecmaVersion": 2018
|
||||||
|
},
|
||||||
|
"overrides": [
|
||||||
|
{
|
||||||
|
"files": ["test/**/*.js"],
|
||||||
|
"env": {
|
||||||
|
"mocha": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
4
libraries/redis-wrapper/.prettierrc.json
Normal file
4
libraries/redis-wrapper/.prettierrc.json
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
{
|
||||||
|
"semi": false,
|
||||||
|
"singleQuote": true
|
||||||
|
}
|
2649
libraries/redis-wrapper/package-lock.json
generated
2649
libraries/redis-wrapper/package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -6,6 +6,9 @@
|
||||||
"author": "ShareLaTeX",
|
"author": "ShareLaTeX",
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
"lint": "eslint --max-warnings 0 .",
|
||||||
|
"format": "prettier-eslint $PWD'/**/*.js' --list-different",
|
||||||
|
"format:fix": "prettier-eslint $PWD'/**/*.js' --write",
|
||||||
"test": "mocha --require coffee-script/register test/unit/src/*.coffee"
|
"test": "mocha --require coffee-script/register test/unit/src/*.coffee"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
@ -15,7 +18,20 @@
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"chai": "^4.2.0",
|
"chai": "^4.2.0",
|
||||||
|
"eslint": "^6.8.0",
|
||||||
|
"eslint-config-prettier": "^6.10.1",
|
||||||
|
"eslint-config-standard": "^14.1.1",
|
||||||
|
"eslint-plugin-chai-expect": "^2.1.0",
|
||||||
|
"eslint-plugin-chai-friendly": "^0.5.0",
|
||||||
|
"eslint-plugin-import": "^2.20.2",
|
||||||
|
"eslint-plugin-mocha": "^6.3.0",
|
||||||
|
"eslint-plugin-node": "^11.1.0",
|
||||||
|
"eslint-plugin-prettier": "^3.1.3",
|
||||||
|
"eslint-plugin-promise": "^4.2.1",
|
||||||
|
"eslint-plugin-standard": "^4.0.1",
|
||||||
"mocha": "^8.2.1",
|
"mocha": "^8.2.1",
|
||||||
|
"prettier": "^2.0.2",
|
||||||
|
"prettier-eslint-cli": "^5.0.0",
|
||||||
"sandboxed-module": "^2.0.4",
|
"sandboxed-module": "^2.0.4",
|
||||||
"sinon": "^9.2.1"
|
"sinon": "^9.2.1"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue