mirror of
https://github.com/PretendoNetwork/miiverse-api.git
synced 2024-05-18 12:50:41 -04:00
Added linter config
This commit is contained in:
parent
20ddd11761
commit
defdd35f4b
2
.eslintignore
Normal file
2
.eslintignore
Normal file
|
@ -0,0 +1,2 @@
|
|||
dist
|
||||
*.js
|
54
.eslintrc.json
Normal file
54
.eslintrc.json
Normal file
|
@ -0,0 +1,54 @@
|
|||
{
|
||||
"env": {
|
||||
"node": true,
|
||||
"commonjs": true,
|
||||
"es6": true
|
||||
},
|
||||
"parser": "@typescript-eslint/parser",
|
||||
"globals": {
|
||||
"BigInt": true
|
||||
},
|
||||
"extends": [
|
||||
"eslint:recommended",
|
||||
"plugin:@typescript-eslint/recommended"
|
||||
],
|
||||
"plugins": [
|
||||
"@typescript-eslint"
|
||||
],
|
||||
"rules": {
|
||||
"require-atomic-updates": "warn",
|
||||
"no-case-declarations": "off",
|
||||
"no-empty": "off",
|
||||
"no-console": "off",
|
||||
"linebreak-style": "off",
|
||||
"no-global-assign": "off",
|
||||
"prefer-const": "error",
|
||||
"no-var": "error",
|
||||
"no-unused-vars": "off",
|
||||
"@typescript-eslint/no-unused-vars": ["error", { "argsIgnorePattern": "^_" }],
|
||||
"no-extra-semi": "off",
|
||||
"@typescript-eslint/no-extra-semi": "error",
|
||||
"@typescript-eslint/no-empty-interface": "warn",
|
||||
"@typescript-eslint/no-inferrable-types": "off",
|
||||
"@typescript-eslint/explicit-function-return-type": "error",
|
||||
"one-var": [
|
||||
"error",
|
||||
"never"
|
||||
],
|
||||
"indent": [
|
||||
"error",
|
||||
"tab",
|
||||
{
|
||||
"SwitchCase": 1
|
||||
}
|
||||
],
|
||||
"quotes": [
|
||||
"error",
|
||||
"single"
|
||||
],
|
||||
"semi": [
|
||||
"error",
|
||||
"always"
|
||||
]
|
||||
}
|
||||
}
|
19044
package-lock.json
generated
19044
package-lock.json
generated
File diff suppressed because it is too large
Load diff
100
package.json
100
package.json
|
@ -1,50 +1,54 @@
|
|||
{
|
||||
"name": "miiverse-api",
|
||||
"version": "2.0.0",
|
||||
"description": "Miiverse API Server",
|
||||
"main": "./dist/server.js",
|
||||
"scripts": {
|
||||
"build": "npm run clean && npx tsc && npx tsc-alias",
|
||||
"clean": "rm -rf ./dist",
|
||||
"start": "node .",
|
||||
"start:dev": "NODE_ENV=development node ."
|
||||
},
|
||||
"keywords": [],
|
||||
"author": "Jemma",
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"aws-sdk": "^2.1204.0",
|
||||
"bmp-js": "^0.1.0",
|
||||
"body-parser": "^1.20.2",
|
||||
"colors": "^1.4.0",
|
||||
"express": "^4.17.1",
|
||||
"express-session": "^1.17.0",
|
||||
"express-subdomain": "^1.0.5",
|
||||
"fs-extra": "^9.0.0",
|
||||
"grpc": "github:pretendonetwork/grpc-js",
|
||||
"memoizee": "^0.4.15",
|
||||
"moment": "^2.24.0",
|
||||
"moment-timezone": "^0.5.27",
|
||||
"mongoose": "^6.10.1",
|
||||
"mongoose-unique-validator": "^3.1.0",
|
||||
"morgan": "^1.10.0",
|
||||
"multer": "^1.4.2",
|
||||
"nice-grpc": "^2.0.0",
|
||||
"node-rsa": "^1.0.8",
|
||||
"node-snowflake": "0.0.1",
|
||||
"pako": "^1.0.11",
|
||||
"pngjs": "^5.0.0",
|
||||
"sanitize": "^2.1.0",
|
||||
"tga": "^1.0.3",
|
||||
"xmlbuilder": "^15.1.1",
|
||||
"xmlbuilder2": "0.0.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"object-to-xml": "^2.0.0",
|
||||
"request": "^2.88.2",
|
||||
"string-sanitizer": "^1.1.1",
|
||||
"tsc-alias": "^1.8.5",
|
||||
"typescript": "^5.0.4",
|
||||
"xml2json": "^0.12.0"
|
||||
}
|
||||
"name": "miiverse-api",
|
||||
"version": "2.0.0",
|
||||
"description": "Miiverse API Server",
|
||||
"main": "./dist/server.js",
|
||||
"scripts": {
|
||||
"lint": "npx eslint .",
|
||||
"build": "npm run lint && npm run clean && npx tsc && npx tsc-alias",
|
||||
"clean": "rm -rf ./dist",
|
||||
"start": "node .",
|
||||
"start:dev": "NODE_ENV=development node ."
|
||||
},
|
||||
"keywords": [],
|
||||
"author": "Jemma",
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"aws-sdk": "^2.1204.0",
|
||||
"bmp-js": "^0.1.0",
|
||||
"body-parser": "^1.20.2",
|
||||
"colors": "^1.4.0",
|
||||
"express": "^4.17.1",
|
||||
"express-session": "^1.17.0",
|
||||
"express-subdomain": "^1.0.5",
|
||||
"fs-extra": "^9.0.0",
|
||||
"grpc": "github:pretendonetwork/grpc-js",
|
||||
"memoizee": "^0.4.15",
|
||||
"moment": "^2.24.0",
|
||||
"moment-timezone": "^0.5.27",
|
||||
"mongoose": "^6.10.1",
|
||||
"mongoose-unique-validator": "^3.1.0",
|
||||
"morgan": "^1.10.0",
|
||||
"multer": "^1.4.2",
|
||||
"nice-grpc": "^2.0.0",
|
||||
"node-rsa": "^1.0.8",
|
||||
"node-snowflake": "0.0.1",
|
||||
"pako": "^1.0.11",
|
||||
"pngjs": "^5.0.0",
|
||||
"sanitize": "^2.1.0",
|
||||
"tga": "^1.0.3",
|
||||
"xmlbuilder": "^15.1.1",
|
||||
"xmlbuilder2": "0.0.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@typescript-eslint/eslint-plugin": "^5.59.0",
|
||||
"@typescript-eslint/parser": "^5.59.0",
|
||||
"eslint": "^8.38.0",
|
||||
"object-to-xml": "^2.0.0",
|
||||
"request": "^2.88.2",
|
||||
"string-sanitizer": "^1.1.1",
|
||||
"tsc-alias": "^1.8.5",
|
||||
"typescript": "^5.0.4",
|
||||
"xml2json": "^0.12.0"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue