Skip to content

Commit

Permalink
Upgrade dependencies
Browse files Browse the repository at this point in the history
Resolves #14
  • Loading branch information
kieranhall committed Feb 21, 2024
1 parent d3bf437 commit ddb68bc
Show file tree
Hide file tree
Showing 8 changed files with 143 additions and 251 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:

strategy:
matrix:
node-version: [16.x, 18.x, 20.x]
node-version: [20.x]

name: Node ${{ matrix.node-version }}

Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ node_modules
# Env files
.env
.env.*
.nvmrc

# Logs
*.log
Expand Down
2 changes: 0 additions & 2 deletions .npmrc

This file was deleted.

15 changes: 0 additions & 15 deletions js/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,26 +7,16 @@ module.exports = {
"consistent-this": "error",
"curly": ["error", "all"],
"default-case": "error",
"dot-location": ["error", "property"],
"dot-notation": "error",
"eqeqeq": "error",
"func-call-spacing": ["error", "never"],
"max-depth": ["error", 3],
"max-len": ["error", {
"code": 110,
"comments": 110,
"ignorePattern": "^ \\* @overview",
"ignoreUrls": true
}],
"max-nested-callbacks": ["error", 3],
"max-params": ["error", 5],
"max-statements": ["error", 15, { "ignoreTopLevelFunctions": true }],
"max-statements-per-line": ["error", { "max": 1 }],
"new-cap": ["error", { "newIsCap": true, "properties": true }],
"no-alert": "error",
"no-array-constructor": "error",
"no-caller": "error",
"no-confusing-arrow": ["error", { "allowParens": true }],
"no-console": "error",
"no-duplicate-imports": ["error", { "includeExports": true }],
"no-eval": "error",
Expand All @@ -40,10 +30,8 @@ module.exports = {
"no-labels": "error",
"no-lone-blocks": "error",
"no-loop-func": "error",
"no-multi-spaces": "error",
"no-nested-ternary": 0,
"no-new": "error",
"no-new-object": "error",
"no-octal-escape": "error",
"no-param-reassign": 0,
"no-proto": "error",
Expand Down Expand Up @@ -72,7 +60,6 @@ module.exports = {
"no-useless-concat": "error",
"no-useless-escape": "error",
"no-var": "error",
"no-whitespace-before-property": "error",
"no-with": "error",
"prefer-const": [
"error", {
Expand All @@ -81,9 +68,7 @@ module.exports = {
}
],
"radix": "error",
"semi": ["error", "always"],
"strict": ["error", "function"],
"wrap-iife": ["error", "inside"],
"yoda": "error"
}
};
5 changes: 4 additions & 1 deletion js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,8 @@ module.exports = {
ecmaVersion: "latest",
sourceType: "module"
},
rules: {}
rules: {
"no-extra-semi": 1,
"no-mixed-spaces-and-tabs": 1
}
};
132 changes: 1 addition & 131 deletions js/style.js
Original file line number Diff line number Diff line change
@@ -1,146 +1,16 @@
module.exports = {
rules: {
"array-bracket-newline": ["error", "consistent"],
"arrow-spacing": [
"error",
{ "after": true, "before": true }
],
"brace-style": ["error", "1tbs", { "allowSingleLine": true }],
"camelcase": "error",
"comma-dangle": ["error", "never"],
"comma-spacing": ["error", { "after": true, "before": false }],
"comma-style": ["error", "last"],
"computed-property-spacing": ["error", "never"],
"eol-last": "error",
"function-paren-newline": ["error", "multiline-arguments"],
"indent": ["error", "tab", { "SwitchCase": 1 }],
"key-spacing": [
"error", {
"afterColon": true,
"beforeColon": false,
"mode": "strict"
}
],
"keyword-spacing": [
"error", {
"after": true,
"before": true
}
],
"linebreak-style": ["error", "unix"],
"lines-around-comment": [
"error", {
"afterBlockComment": false,
"afterLineComment": false,
"allowArrayEnd": false,
"allowArrayStart": true,
"allowBlockEnd": true,
"allowBlockStart": true,
"allowObjectEnd": false,
"allowObjectStart": true,
"beforeBlockComment": true,
"beforeLineComment": true
}
],
"new-parens": "error",
"no-extra-parens": ["error", "all", {
"enforceForArrowConditionals": false,
"enforceForNewInMemberExpressions": false,
"ignoreJSX": "multi-line",
"nestedBinaryExpressions": false
}],
"no-multiple-empty-lines": ["error", { "max": 1 }],
"no-trailing-spaces": "error",
"no-warning-comments": ["error", { "location": "anywhere" }],
"object-curly-newline": [
"error", {
"ExportDeclaration": {
"consistent": true,
"minProperties": 4,
"multiline": true
},
"ImportDeclaration": {
"consistent": true,
"minProperties": 4,
"multiline": true
},
"ObjectExpression": {
"consistent": true,
"minProperties": 4,
"multiline": true
},
"ObjectPattern": {
"consistent": true,
"minProperties": 4,
"multiline": true
}
}
],
"object-curly-spacing": [
"error",
"always"
],
"one-var": ["error", "never"],
"operator-linebreak": [
"error",
"before", {
"overrides": {
"=": "after"
}
}
],
"padded-blocks": ["error", "never"],
"padding-line-between-statements": [
"error",
{ "blankLine": "always", "next": "*", "prev": "block-like" },
{ "blankLine": "always", "next": "block-like", "prev": "*" },
{ "blankLine": "always", "next": "return", "prev": "*" },
{ "blankLine": "always", "next": ["const", "let", "var"], "prev": "*" },
{ "blankLine": "always", "next": "*", "prev": ["const", "let", "var"] },
{ "blankLine": "any", "next": ["const", "let", "var"], "prev": ["const", "let", "var"] },
{ "blankLine": "always", "next": "*", "prev": "directive" },
{ "blankLine": "any", "next": "directive", "prev": "directive" }
],
"prefer-template": "error",
"quote-props": ["error", "consistent"],
"quotes": ["error", "double"],
"semi-spacing": [
"error", {
"after": true,
"before": false
}
],
"sort-imports": ["error", {
"allowSeparatedGroups": true,
"ignoreCase": false,
"ignoreDeclarationSort": true,
"ignoreMemberSort": false,
"memberSyntaxSortOrder": ["none", "all", "multiple", "single"]
}],
"sort-keys": ["error", "asc", { "caseSensitive": false, "natural": true }],
"space-before-blocks": ["error", "always"],
"space-before-function-paren": ["error", "always"],
"space-in-parens": ["error", "never"],
"space-infix-ops": "error",
"space-unary-ops": [
"error", {
"nonwords": false,
"words": true
}
],
"spaced-comment": [
"error",
"always", {
"block": {
"balanced": true
}
}
],
"switch-colon-spacing": [
"error", {
"after": true,
"before": false
}
]
"sort-keys": ["error", "asc", { "caseSensitive": false, "natural": true }]
}
};
Loading

0 comments on commit ddb68bc

Please sign in to comment.