mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-12-06 17:27:59 +00:00
Lints src/client (#1577)
* lint backoff * lint wsWrapper * remove rangeset - not used * split out connection.ts classes * lint requestManager * lint connectionManager * lint most of connection * fix most of client * lint broadcastClient * resolve more linter issues * resolve magic numbers * clean up more linting * resolve rest of issues * fix tests * fix browser tests * fix tests after rebase * respond to comments * fix dependency cycles
This commit is contained in:
@@ -38,12 +38,11 @@ module.exports = {
|
||||
format: ["snake_case"],
|
||||
},
|
||||
],
|
||||
|
||||
// Ignore type imports when counting dependencies.
|
||||
"import/max-dependencies": [
|
||||
"error",
|
||||
{
|
||||
max: 5,
|
||||
max: 10,
|
||||
ignoreTypeImports: true,
|
||||
},
|
||||
],
|
||||
@@ -64,6 +63,8 @@ module.exports = {
|
||||
skipComments: true,
|
||||
},
|
||||
],
|
||||
"max-statements": ["warn", 25],
|
||||
"id-length": ["error", { exceptions: ["_"] }], // exception for lodash
|
||||
},
|
||||
overrides: [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user