mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Add linting and formatting
This commit is contained in:
parent
113c2cc5ec
commit
f80753fe40
6 changed files with 1196 additions and 271 deletions
|
@ -10,6 +10,7 @@ jobs:
|
||||||
- node/with-cache:
|
- node/with-cache:
|
||||||
steps:
|
steps:
|
||||||
- run: npm install
|
- run: npm install
|
||||||
|
- run: npm run lint
|
||||||
- run: npm test
|
- run: npm test
|
||||||
workflows:
|
workflows:
|
||||||
build-and-test:
|
build-and-test:
|
||||||
|
|
9
libraries/o-error/.editorconfig
Normal file
9
libraries/o-error/.editorconfig
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
root = true
|
||||||
|
|
||||||
|
[*]
|
||||||
|
charset = utf-8
|
||||||
|
indent_style = space
|
||||||
|
indent_size = 2
|
||||||
|
end_of_line = lf
|
||||||
|
insert_final_newline = true
|
||||||
|
trim_trailing_whitespace = true
|
14
libraries/o-error/.eslintrc.json
Normal file
14
libraries/o-error/.eslintrc.json
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
{
|
||||||
|
"extends": [
|
||||||
|
"plugin:prettier/recommended",
|
||||||
|
"plugin:mocha/recommended",
|
||||||
|
"plugin:chai-expect/recommended",
|
||||||
|
"plugin:chai-friendly/recommended"
|
||||||
|
],
|
||||||
|
"env": {
|
||||||
|
"node": true
|
||||||
|
},
|
||||||
|
"parserOptions": {
|
||||||
|
"ecmaVersion": 2018
|
||||||
|
}
|
||||||
|
}
|
4
libraries/o-error/.prettierrc.json
Normal file
4
libraries/o-error/.prettierrc.json
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
{
|
||||||
|
"semi": false,
|
||||||
|
"singleQuote": true
|
||||||
|
}
|
1421
libraries/o-error/package-lock.json
generated
1421
libraries/o-error/package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -4,6 +4,7 @@
|
||||||
"description": "Make custom error types that pass `instanceof` checks, have stack traces, support custom messages and properties, and can wrap causes (like VError).",
|
"description": "Make custom error types that pass `instanceof` checks, have stack traces, support custom messages and properties, and can wrap causes (like VError).",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
"lint": "eslint .",
|
||||||
"test": "mocha --require test/support"
|
"test": "mocha --require test/support"
|
||||||
},
|
},
|
||||||
"author": "Overleaf (https://www.overleaf.com)",
|
"author": "Overleaf (https://www.overleaf.com)",
|
||||||
|
@ -11,6 +12,13 @@
|
||||||
"repository": "github:overleaf/o-error",
|
"repository": "github:overleaf/o-error",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"chai": "^3.3.0",
|
"chai": "^3.3.0",
|
||||||
"mocha": "^6.1.4"
|
"eslint": "^6.8.0",
|
||||||
|
"eslint-config-prettier": "^6.10.1",
|
||||||
|
"eslint-plugin-chai-expect": "^2.1.0",
|
||||||
|
"eslint-plugin-chai-friendly": "^0.5.0",
|
||||||
|
"eslint-plugin-mocha": "^6.3.0",
|
||||||
|
"eslint-plugin-prettier": "^3.1.3",
|
||||||
|
"mocha": "^7.1.1",
|
||||||
|
"prettier": "^2.0.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue