Skip to content

Commit 02a97bf

Browse files
chore: update deps and fix types (#35)
1 parent 47612f1 commit 02a97bf

File tree

8 files changed

+19226
-4178
lines changed

8 files changed

+19226
-4178
lines changed

.github/workflows/nodejs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ jobs:
4343
- name: Lint
4444
run: npm run lint
4545

46-
#- name: Security audit
47-
# run: npm run security
46+
- name: Security audit
47+
run: npm run security
4848

4949
- name: Check commit message
5050
uses: wagoid/commitlint-github-action@v1

declarations/linter.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/** @typedef {import('eslint').ESLint.Formatter} Formatter */
33
/** @typedef {import('eslint').ESLint.LintResult} LintResult */
44
/** @typedef {import('webpack').Compiler} Compiler */
5-
/** @typedef {import('webpack').compilation.Compilation} Compilation */
5+
/** @typedef {import('webpack').Compilation} Compilation */
66
/** @typedef {import('webpack-sources').Source} Source */
77
/** @typedef {import('./options').Options} Options */
88
/** @typedef {import('./options').FormatterFunction} FormatterFunction */
@@ -24,7 +24,7 @@ export type ESLint = import('eslint').ESLint;
2424
export type Formatter = import('eslint').ESLint.Formatter;
2525
export type LintResult = import('eslint').ESLint.LintResult;
2626
export type Compiler = import('webpack').Compiler;
27-
export type Compilation = import('webpack').compilation.Compilation;
27+
export type Compilation = import('webpack').Compilation;
2828
export type Source = import('webpack-sources/lib/Source');
2929
export type Options = {
3030
context?: string | undefined;

lint-staged.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
module.exports = {
2-
'*.js': ['prettier --write', 'eslint --fix', 'git add'],
3-
'*.{json,md,yml,css,ts}': ['prettier --write', 'git add'],
2+
'*.js': ['eslint --fix', 'prettier --write'],
3+
'*.{json,md,yml,css,ts}': ['prettier --write'],
44
};

0 commit comments

Comments
 (0)