Skip to content

Commit

Permalink
update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
eilvelia committed Dec 20, 2024
1 parent c3afc5c commit bbbedd0
Show file tree
Hide file tree
Showing 10 changed files with 2,577 additions and 1,371 deletions.
13 changes: 0 additions & 13 deletions .eslintignore

This file was deleted.

27 changes: 0 additions & 27 deletions .eslintrc.json

This file was deleted.

4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ jobs:
node:
- 20
include:
- node: 16
os: ubuntu-latest
# The packages themselves should still work with Node v16, but the
# dev dependencies don't support v16 anymore
- node: 18
os: ubuntu-latest
steps:
Expand Down
46 changes: 46 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
import eslint from '@eslint/js'
import tseslint from 'typescript-eslint'

export default [
// Config for JS files
{
...eslint.configs.recommended,
files: ['packages/**/*.js']
},
// Config for TS files
...[
eslint.configs.recommended,
...tseslint.configs.recommended
].map(conf => ({
...conf,
files: ['packages/**/*.ts']
})),
// Rule overrides
{
rules: {
'semi': ['warn', 'never'],
'no-redeclare': 0,
'valid-jsdoc': 0,
'no-undef': 0,
'no-constant-condition': 0,
'no-case-declarations': 0,
'@typescript-eslint/no-explicit-any': 0,
'@typescript-eslint/no-var-requires': 0,
'@typescript-eslint/no-unused-vars': 0,
'@typescript-eslint/ban-ts-comment': 0
}
},
// Global ignores
{
ignores: [
'**/*.d.ts',
'**/*.js.flow',
'**/node_modules/',
'**/dist/',
'**/coverage/',
'flow-typed/',
'tests/',
'packages/prebuilt-tdlib/index.js',
]
},
]
Loading

0 comments on commit bbbedd0

Please sign in to comment.