Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
platypii committed Dec 10, 2024
1 parent cf99de0 commit 0c0b79f
Show file tree
Hide file tree
Showing 6 changed files with 92 additions and 83 deletions.
68 changes: 0 additions & 68 deletions .eslintrc.json

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
steps:
- uses: actions/checkout@v3
- run: npm i
- run: tsc
- run: npx tsc

test:
runs-on: ubuntu-latest
Expand Down
74 changes: 74 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
import javascript from '@eslint/js'
import jsdoc from 'eslint-plugin-jsdoc'
import globals from 'globals'

export default [
{
ignores: [
'node_modules/',
'coverage/',
'dist/',
],
},
{
files: ['src/**/*.js', 'test/**/*.js'],
plugins: {
jsdoc,
},

languageOptions: {
globals: {
...globals.browser,
...globals.node,
},
},

rules: {
...javascript.configs.recommended.rules,
'arrow-spacing': 'error',
camelcase: 'off',
'comma-spacing': 'error',
'comma-dangle': ['error', {
arrays: 'always-multiline',
objects: 'always-multiline',
imports: 'always-multiline',
exports: 'always-multiline',
functions: 'never',
}],
'eol-last': 'error',
eqeqeq: 'error',
'func-style': ['error', 'declaration'],
indent: ['error', 2],
'jsdoc/check-param-names': 'error',
'jsdoc/check-property-names': 'error',
'jsdoc/check-tag-names': 'error',
'jsdoc/require-param': 'error',
'jsdoc/require-param-type': 'error',
'jsdoc/require-returns': 'error',
'jsdoc/require-returns-type': 'error',
'jsdoc/sort-tags': 'error',
'no-constant-condition': 'off',
'no-extra-parens': 'error',
'no-multi-spaces': 'error',
'no-trailing-spaces': 'error',
'no-undef': 'error',
'no-unused-vars': 'error',
'no-useless-concat': 'error',
'no-useless-rename': 'error',
'no-useless-return': 'error',
'no-var': 'error',
'object-curly-spacing': ['error', 'always'],
'prefer-const': 'error',
'prefer-promise-reject-errors': 'error',
quotes: ['error', 'single'],
'require-await': 'warn',
semi: ['error', 'never'],
'sort-imports': ['error', {
ignoreDeclarationSort: true,
ignoreMemberSort: false,
memberSyntaxSortOrder: ['none', 'all', 'multiple', 'single'],
}],
'space-infix-ops': 'error',
},
},
]
Binary file modified hyparquet-compressors.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
26 changes: 13 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,21 +33,21 @@
},
"dependencies": {
"fzstd": "0.1.1",
"hysnappy": "0.3.1"
"hysnappy": "1.0.0"
},
"devDependencies": {
"@babel/eslint-parser": "7.24.6",
"@rollup/plugin-commonjs": "25.0.8",
"@rollup/plugin-node-resolve": "15.2.3",
"@babel/eslint-parser": "7.25.9",
"@rollup/plugin-commonjs": "28.0.1",
"@rollup/plugin-node-resolve": "15.3.0",
"@rollup/plugin-terser": "0.4.4",
"@types/node": "20.12.12",
"@vitest/coverage-v8": "1.6.0",
"eslint": "8.57.0",
"eslint-plugin-import": "2.29.1",
"eslint-plugin-jsdoc": "48.2.6",
"hyparquet": "0.9.7",
"rollup": "4.18.0",
"typescript": "5.4.5",
"vitest": "1.6.0"
"@types/node": "22.10.1",
"@vitest/coverage-v8": "2.1.8",
"eslint": "9.16.0",
"eslint-plugin-import": "2.31.0",
"eslint-plugin-jsdoc": "50.6.0",
"hyparquet": "1.6.3",
"rollup": "4.28.1",
"typescript": "5.7.2",
"vitest": "2.1.8"
}
}
5 changes: 4 additions & 1 deletion test/package.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { describe, expect, it } from 'vitest'
import packageJson from '../package.json'
import packageJson from '../package.json' with { type: 'json' }

describe('package.json', () => {
it('should have the correct name', () => {
Expand All @@ -18,4 +18,7 @@ describe('package.json', () => {
expect(version).toMatch(/^\d+\.\d+\.\d+$/)
})
})
it('should have no peerDependencies', () => {
expect('peerDependencies' in packageJson).toBe(false)
})
})

0 comments on commit 0c0b79f

Please sign in to comment.