Skip to content

Commit

Permalink
Merge pull request #10 from cto-af/update-deps
Browse files Browse the repository at this point in the history
Update dependencies
  • Loading branch information
hildjj authored Mar 6, 2024
2 parents 88b0b91 + 0234fb1 commit 7d5584c
Show file tree
Hide file tree
Showing 96 changed files with 2,244 additions and 3,006 deletions.
29 changes: 14 additions & 15 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,42 +1,41 @@
'use strict';
"use strict";

module.exports = {
root: true,
extends: ['@peggyjs'],
extends: ["@peggyjs"],
ignorePatterns: [
'docs/',
'node_modules/',
"docs/",
"node_modules/",
],
overrides: [
{
files: ['*.js', '*.cjs'],
files: ["*.js", "*.cjs"],
rules: {
'no-eq-null': 'off',
'eqeqeq': ['error', 'always', { 'null': 'ignore' }],
'no-unused-vars': ['error', { 'argsIgnorePattern': '^_' }],
'quotes': ['error', 'single', { avoidEscape: true }],
"no-eq-null": "off",
"eqeqeq": ["error", "always", { "null": "ignore" }],
"no-unused-vars": ["error", { "argsIgnorePattern": "^_" }],
},
},
{
files: ['*.js'],
files: ["*.js"],
parserOptions: {
sourceType: 'module',
sourceType: "module",
ecmaVersion: 2022,
},
},
{
files: ['test/*.js'],
files: ["test/*.js"],
env: {
mocha: true,
},
rules: {
'prefer-arrow-callback': 'off',
"prefer-arrow-callback": "off",
},
},
{
files: ['lib/EastAsianWidth.js', 'lib/LineBreak.js'],
files: ["lib/EastAsianWidth.js", "lib/LineBreak.js"],
rules: {
'object-curly-spacing': 'off',
"@stylistic/object-curly-spacing": "off",
},
},
],
Expand Down
16 changes: 9 additions & 7 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,29 +3,31 @@ name: Tests
on:
push:
branches:
- 'main'
- main
pull_request:
branches: ['*']
branches:
- main

jobs:
build:

strategy:
matrix:
node-version: [16.x, 18.x, 20.x, 21.x]
node-version: [18.x, 20.x, 21.x]
os: [ubuntu-latest]

runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- run: corepack enable
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: npm
cache: pnpm
- name: Install dependencies
run: npm install
run: pnpm install
- name: Check coding standards
if: matrix.node-version == '20.x' && matrix.os == 'ubuntu-latest'
run: npm run lint
Expand Down
15 changes: 15 additions & 0 deletions docs/assets/icons.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 7d5584c

Please sign in to comment.