Skip to content
Merged
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
83 changes: 37 additions & 46 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,64 +1,55 @@
'use strict';
"use strict";

// This is a workaround for https://github.com/eslint/eslint/issues/3458
require('eslint-config-etherpad/patch/modern-module-resolution');
require("eslint-config-etherpad/patch/modern-module-resolution");

module.exports = {
parserOptions: {
project: ['./tsconfig.json'],
project: ["./tsconfig.json"],
},

root: true,
extends: 'etherpad/node',
extends: "etherpad/node",

rules: {
'mocha/no-exports': 'off',
'@typescript-eslint/no-unsafe-call': 'off',
'max-len': 'off',
'@typescript-eslint/restrict-template-expressions': 'off',
'@typescript-eslint/no-unsafe-member-access': 'off',
'n/no-missing-import': 'off',
'strict': 'off',
'@typescript-eslint/no-unsafe-return': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-unsafe-argument': 'off',
'@typescript-eslint/no-unsafe-assignment': 'off',
'prefer-arrow/prefer-arrow-functions': 'off',
'@typescript-eslint/await-thenable': 'off',
'@typescript-eslint/brace-style': 'off',
'@typescript-eslint/comma-spacing': 'off',
'@typescript-eslint/consistent-type-assertions': 'off',
'@typescript-eslint/consistent-type-definitions': 'off',
'@typescript-eslint/default-param-last': 'off',
'@typescript-eslint/dot-notation': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/explicit-member-accessibility': 'off',
'func-call-spacing': 'off',
'@typescript-eslint/no-floating-promises': 'off',
'camelcase': 'off',
'n/no-unpublished-import': 'off',
'n/no-unpublished-require': 'off',
'no-unused-vars': 'off',
'@typescript-eslint/no-unused-vars': 'off',
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/restrict-plus-operands': 'off',
"mocha/no-exports": "off",
"@typescript-eslint/no-unsafe-call": "off",
"max-len": "off",
"@typescript-eslint/restrict-template-expressions": "off",
"@typescript-eslint/no-unsafe-member-access": "off",
"n/no-missing-import": "off",
strict: "off",
"@typescript-eslint/no-unsafe-return": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-unsafe-argument": "off",
"@typescript-eslint/no-unsafe-assignment": "off",
"prefer-arrow/prefer-arrow-functions": "off",
"@typescript-eslint/await-thenable": "off",
"@typescript-eslint/brace-style": "off",
"@typescript-eslint/comma-spacing": "off",
"@typescript-eslint/consistent-type-assertions": "off",
"@typescript-eslint/consistent-type-definitions": "off",
"@typescript-eslint/default-param-last": "off",
"@typescript-eslint/dot-notation": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/explicit-member-accessibility": "off",
"func-call-spacing": "off",
"@typescript-eslint/no-floating-promises": "off",
camelcase: "off",
"n/no-unpublished-import": "off",
"n/no-unpublished-require": "off",
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": "off",
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/restrict-plus-operands": "off",
},
overrides: [
{
files: [
'lib/**/*',
'databases/**/*',
'tests/**/*',
],
extends: 'etherpad/tests/backend',
files: ["lib/**/*", "databases/**/*", "tests/**/*"],
extends: "etherpad/tests/backend",
overrides: [
{
files: [
'lib/**/*',
'databases/**/*',
'tests/**/*',
],

files: ["lib/**/*", "databases/**/*", "tests/**/*"],
},
],
},
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,3 @@ jobs:

- name: Build
run: pnpm run build

9 changes: 5 additions & 4 deletions .github/workflows/npmpublish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ jobs:
# PR ends up red even when only a single integration container is flaky.
fail-fast: false
matrix:
db: [couch, dirty, elasticsearch, mongo, mysql, redis, mock, sqlite, memory, rusty, surrealdb]
db:
[couch, dirty, elasticsearch, mongo, mysql, redis, mock, sqlite, memory, rusty, surrealdb]
steps:
- uses: actions/checkout@v6

Expand Down Expand Up @@ -54,7 +55,7 @@ jobs:
publish-npm:
if: github.event_name == 'push'
needs:
- test
- test
runs-on: ubuntu-latest
# OIDC trusted publishing: npm exchanges the GitHub-issued `id-token`
# for a short-lived publish credential at the registry, so there is no
Expand All @@ -76,7 +77,7 @@ jobs:
- uses: actions/setup-node@v6
with:
node-version: 24
registry-url: 'https://registry.npmjs.org'
registry-url: "https://registry.npmjs.org"

- name: Install pnpm
uses: pnpm/action-setup@v5
Expand All @@ -100,7 +101,7 @@ jobs:
# This is required if the package has a prepare script that uses something
# in dependencies or devDependencies. This is also needed for bumping the
# version.
- run: pnpm install --frozen-lockfile # Workaround based on https://github.com/pnpm/pnpm/issues/3141
- run: pnpm install --frozen-lockfile # Workaround based on https://github.com/pnpm/pnpm/issues/3141

- name: Bump version (patch)
run: |
Expand Down
8 changes: 4 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ before_install:
- mysql -e "ALTER DATABASE ueberdb CHARACTER SET utf8mb4 COLLATE utf8mb4_bin;"
- mysql -e "grant CREATE,ALTER,SELECT,INSERT,UPDATE,DELETE on ueberdb.* to 'ueberdb'@'localhost';"
- mysql -e "CREATE TABLE \`store\` (\`key\` varchar(100) COLLATE utf8mb4_bin NOT NULL DEFAULT '',\`value\` longtext COLLATE utf8mb4_bin NOT NULL,PRIMARY KEY (\`key\`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;" ueberdb
# - cp /etc/rethinkdb/default.conf.sample /etc/rethinkdb/instances.d/instance1.conf
# - cp /etc/rethinkdb/default.conf.sample /etc/rethinkdb/instances.d/instance1.conf

#addons:
# rethinkdb: '2.3.4'
#addons:
# rethinkdb: '2.3.4'

# Brings in procedure required for creating large data set
# Brings in procedure required for creating large data set
- mysql ueberdb < test/lib/mysql.sql
- mysql ueberdb -e 'CALL generate_data();';
- psql -c 'create database ueberdb;' -U postgres
Expand Down
Loading
Loading