Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"presets": ["@babel/preset-env"]
}
{
"presets": ["@babel/preset-env", "@babel/preset-react"]
}
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
webpack/
80 changes: 59 additions & 21 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,21 +1,59 @@
{
"env": {
"browser": false,
"es6": true,
"node": true
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "tsconfig.json",
"sourceType": "module"
},
"plugins": ["@typescript-eslint"],
"extends": [
"standard",
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"prettier"
],
"rules": {}
}
{
"root": true,
"env": {
"browser": true,
"es6": true
},
"parser": "@babel/eslint-parser",
"extends": ["airbnb", "prettier"],
"parserOptions": {
"sourceType": "module",
"ecmaVersion": "latest"
},
"settings": {
"import/resolver": {
"node": {
"moduleDirectory": ["node_modules", "src/client/", "src/ui/"],
"extensions": [".js", ".jsx"]
}
}
},
"rules": {
"react/react-in-jsx-scope": "off",
"react/prop-types": "off"
},
"overrides": [
{
"files": ["src/server/**/*.ts"],
"plugins": ["@typescript-eslint"],
"parser": "@typescript-eslint/parser",
"extends": ["airbnb-base", "prettier"],
"parserOptions": {
"project": "./tsconfig.json"
},
"globals": {
"NodeJS": true
},
"settings": {
"import/resolver": {
"node": {
"moduleDirectory": ["node_modules", "src/server/"],
"extensions": [".ts"]
}
}
},
"rules": {
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": "error",
"import/extensions": ["error", "never"],
"lines-between-class-members": [
"error",
"always",
{
"exceptAfterSingleLine": true
}
]
}
}
]
}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,5 @@ build/
.node-version
.env
*.pgn

config/config.json
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,8 @@ A server implementation of Tom's live chess viewer. Designed to work with Graham
- [pm2](https://pm2.keymetrics.io/) if you'd like to run this in the background

### Setup
- Modify [config.ts](src/config.ts)
- `url` should be the **IP ADDRESS** of your chess server
- `ports` should be an array of the initial ports you'd like to connect to
- Create a base config in `config/config.json`.
- It should be of the form: `{ connections: string[] }` where each string is `<host>:<port>`
- Create a `.env` file at the same level as this `README` and specify a `TLCV_PASSWORD`
```bash
# .env
Expand Down
Empty file added config/.gitkeep
Empty file.
1 change: 0 additions & 1 deletion config/config.json

This file was deleted.

Loading