mirror of
https://github.com/psforever/PSFPortal.git
synced 2026-01-19 18:14:45 +00:00
Add eslint and fix issues
This commit is contained in:
parent
5be2397fe5
commit
18072ad62f
19
.eslintrc.cjs
Normal file
19
.eslintrc.cjs
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
module.exports = {
|
||||
"env": {
|
||||
"browser": true,
|
||||
"es6": true,
|
||||
"node": true
|
||||
},
|
||||
"extends": "eslint:recommended",
|
||||
"globals": {
|
||||
"Atomics": "readonly",
|
||||
"SharedArrayBuffer": "readonly"
|
||||
},
|
||||
"parserOptions": {
|
||||
"ecmaVersion": 2018,
|
||||
"sourceType": "module"
|
||||
},
|
||||
"rules": {
|
||||
"no-unused-vars" : "off",
|
||||
}
|
||||
};
|
||||
|
|
@ -1,7 +1,6 @@
|
|||
import fs from 'fs'
|
||||
import express from 'express'
|
||||
import bodyParser from 'body-parser'
|
||||
import * as db from './db.js'
|
||||
import api_auth from './authentication.js'
|
||||
import api_user from './user.js'
|
||||
import api_info from './info.js'
|
||||
|
|
|
|||
|
|
@ -39,6 +39,7 @@
|
|||
"bootstrap": "^4.4.1",
|
||||
"cross-env": "^5.2.0",
|
||||
"css-loader": "^2.1.1",
|
||||
"eslint": "^6.8.0",
|
||||
"jquery": "^3.4.1",
|
||||
"mini-css-extract-plugin": "^0.6.0",
|
||||
"moment": "^2.24.0",
|
||||
|
|
|
|||
Loading…
Reference in a new issue