Skip to content

Commit 56a2f12

Browse files
build(deps-dev): bump the eslint_typescript group with 3 updates (#484)
* build(deps-dev): bump the eslint_typescript group with 3 updates Bumps the eslint_typescript group with 3 updates: [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin), [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) and [eslint](https://github.com/eslint/eslint). Updates `@typescript-eslint/eslint-plugin` from 8.54.0 to 8.56.0 - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.56.0/packages/eslint-plugin) Updates `@typescript-eslint/parser` from 8.54.0 to 8.56.1 - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.56.1/packages/parser) Updates `eslint` from 9.24.0 to 10.0.0 - [Release notes](https://github.com/eslint/eslint/releases) - [Commits](eslint/eslint@v9.24.0...v10.0.0) --- updated-dependencies: - dependency-name: "@typescript-eslint/eslint-plugin" dependency-version: 8.56.0 dependency-type: direct:development update-type: version-update:semver-minor dependency-group: eslint_typescript - dependency-name: "@typescript-eslint/parser" dependency-version: 8.56.1 dependency-type: direct:development update-type: version-update:semver-minor dependency-group: eslint_typescript - dependency-name: eslint dependency-version: 10.0.0 dependency-type: direct:development update-type: version-update:semver-major dependency-group: eslint_typescript ... Signed-off-by: dependabot[bot] <support@github.com> * add the missing packages * add a direct tslib dependency * move everything to the eslint config --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Momtchil Momtchev <momtchil@momtchev.com>
1 parent e84e4bb commit 56a2f12

5 files changed

Lines changed: 1073 additions & 448 deletions

File tree

‎.github/workflows/node.js.yml‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@ jobs:
2222
with:
2323
node-version: ${{ matrix.node-version }}
2424
- run: npm ci
25-
- run: npm run build -if-present
26-
- run: npx eslint src/*.ts
25+
- run: npm run lint
2726
- run: npm test
2827

2928
codecov:
@@ -37,7 +36,6 @@ jobs:
3736
with:
3837
node-version: 20.x
3938
- run: npm ci
40-
- run: npm run build -if-present
4139
- run: npm run c8
4240
- run: npm run lcov
4341
- run: npm run codecov

‎eslint.config.mjs‎

Lines changed: 52 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,66 @@
1-
import { defineConfig } from "eslint/config";
2-
import globals from "globals";
3-
import path from "node:path";
4-
import { fileURLToPath } from "node:url";
5-
import js from "@eslint/js";
6-
import { FlatCompat } from "@eslint/eslintrc";
1+
import { defineConfig, globalIgnores } from 'eslint/config';
2+
import globals from 'globals';
3+
import path from 'node:path';
4+
import { fileURLToPath } from 'node:url';
5+
import js from '@eslint/js';
6+
import { FlatCompat } from '@eslint/eslintrc';
77

88
const __filename = fileURLToPath(import.meta.url);
99
const __dirname = path.dirname(__filename);
1010
const compat = new FlatCompat({
11-
baseDirectory: __dirname,
12-
recommendedConfig: js.configs.recommended,
13-
allConfig: js.configs.all
11+
baseDirectory: __dirname,
12+
recommendedConfig: js.configs.recommended,
13+
allConfig: js.configs.all
1414
});
1515

16-
export default defineConfig([{
16+
export default defineConfig([
17+
globalIgnores(['es6', 'cjs', 'docs']),
18+
{
19+
files: ['**/*.ts'],
20+
1721
extends: compat.extends(
18-
"eslint:recommended",
19-
"plugin:@typescript-eslint/eslint-recommended",
20-
"plugin:@typescript-eslint/recommended",
22+
'eslint:recommended',
23+
'plugin:@typescript-eslint/eslint-recommended',
24+
'plugin:@typescript-eslint/recommended',
2125
),
2226

2327
languageOptions: {
24-
globals: {
25-
...globals.browser,
26-
...globals.commonjs,
27-
...globals.node,
28-
...globals.mocha,
29-
},
30-
31-
ecmaVersion: 2017,
32-
sourceType: "module",
28+
globals: {
29+
...globals.browser,
30+
...globals.commonjs,
31+
...globals.node,
32+
...globals.mocha,
33+
},
34+
35+
ecmaVersion: 2017,
36+
sourceType: 'module',
37+
},
38+
39+
rules: {
40+
quotes: ['error', 'single'],
41+
semi: ['error', 'always'],
42+
},
43+
},
44+
{
45+
files: ['**/*.js'],
46+
47+
extends: compat.extends('eslint:recommended'),
48+
49+
languageOptions: {
50+
globals: {
51+
...globals.browser,
52+
...globals.commonjs,
53+
...globals.node,
54+
...globals.mocha,
55+
},
56+
57+
ecmaVersion: 2017,
58+
sourceType: 'commonjs',
3359
},
3460

3561
rules: {
36-
quotes: ["error", "single"],
37-
semi: ["error", "always"],
62+
quotes: ['error', 'single'],
63+
semi: ['error', 'always'],
3864
},
39-
}]);
65+
}
66+
]);

0 commit comments

Comments
 (0)