Skip to content

Commit 6757279

Browse files
authored
chore: update dependencies (prettier#307)
1 parent d600845 commit 6757279

File tree

6 files changed

+424
-499
lines changed

6 files changed

+424
-499
lines changed

.eslintignore

Lines changed: 0 additions & 5 deletions
This file was deleted.

.eslintrc.cjs

Lines changed: 0 additions & 39 deletions
This file was deleted.

.github/workflows/ci.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,7 @@ jobs:
4747
- run: yarn run test
4848
env:
4949
ENABLE_COVERAGE: 1
50-
- run: npx codecov
50+
- uses: codecov/codecov-action@v4
51+
with:
52+
token: ${{ secrets.CODECOV_TOKEN }}
53+
fail_ci_if_error: true

eslint.config.js

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
import eslintPluginJs from '@eslint/js';
2+
import eslintConfigPrettier from 'eslint-config-prettier';
3+
import eslintPluginImport from 'eslint-plugin-import';
4+
import eslintPluginSimpleImportSort from 'eslint-plugin-simple-import-sort';
5+
import eslintPluginUnicorn from 'eslint-plugin-unicorn';
6+
import globals from 'globals';
7+
import tseslint from 'typescript-eslint';
8+
9+
export default tseslint.config(
10+
{ ignores: ['coverage/', 'lib/', '**/.yarn/**', '**/.pnp.*'] },
11+
eslintPluginJs.configs.recommended,
12+
...tseslint.configs.recommended,
13+
eslintConfigPrettier,
14+
{
15+
languageOptions: {
16+
globals: { ...globals.builtin, ...globals.node },
17+
},
18+
plugins: {
19+
'simple-import-sort': eslintPluginSimpleImportSort,
20+
import: eslintPluginImport,
21+
unicorn: eslintPluginUnicorn,
22+
},
23+
rules: {
24+
'no-constant-condition': ['error', { checkLoops: false }],
25+
'import/extensions': ['error', 'always'],
26+
'simple-import-sort/imports': 'error',
27+
'simple-import-sort/exports': 'error',
28+
'unicorn/prefer-at': 'error',
29+
},
30+
},
31+
{
32+
files: ['**/*.ts'],
33+
languageOptions: {
34+
parserOptions: { project: ['tsconfig.json'] },
35+
},
36+
rules: {
37+
'@typescript-eslint/no-namespace': 'off',
38+
'@typescript-eslint/no-non-null-assertion': 'off',
39+
'@typescript-eslint/no-explicit-any': 'off',
40+
'@typescript-eslint/consistent-type-imports': [
41+
'error',
42+
{ fixStyle: 'inline-type-imports' },
43+
],
44+
'@typescript-eslint/no-deprecated': 'error',
45+
},
46+
},
47+
);

package.json

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"prepare": "yarn run build",
1919
"test": "node --experimental-vm-modules node_modules/jest/bin/jest.js",
2020
"lint": "run-p \"lint:*\"",
21-
"lint:eslint": "eslint --ext=.ts,.js,.cjs .",
21+
"lint:eslint": "eslint",
2222
"lint:prettier": "prettier --check .",
2323
"fix": "run-s \"fix:*\"",
2424
"fix:eslint": "yarn lint:eslint --fix",
@@ -27,29 +27,28 @@
2727
"release": "yarn build && standard-version"
2828
},
2929
"devDependencies": {
30-
"@angular/compiler": "18.0.0",
31-
"@babel/code-frame": "7.24.2",
32-
"@babel/parser": "7.24.5",
33-
"@babel/types": "7.24.5",
30+
"@angular/compiler": "18.2.6",
31+
"@babel/code-frame": "7.24.7",
32+
"@babel/parser": "7.25.6",
33+
"@babel/types": "7.25.6",
3434
"@types/babel__code-frame": "7.0.6",
35-
"@types/jest": "29.5.12",
36-
"@typescript-eslint/eslint-plugin": "7.10.0",
37-
"@typescript-eslint/parser": "7.10.0",
35+
"@types/jest": "29.5.13",
3836
"del-cli": "5.1.0",
39-
"eslint": "8.56.0",
37+
"eslint": "9.11.1",
4038
"eslint-config-prettier": "9.1.0",
41-
"eslint-plugin-deprecation": "2.0.0",
42-
"eslint-plugin-import": "2.29.1",
43-
"eslint-plugin-simple-import-sort": "12.1.0",
44-
"eslint-plugin-unicorn": "53.0.0",
39+
"eslint-plugin-import": "2.30.0",
40+
"eslint-plugin-simple-import-sort": "12.1.1",
41+
"eslint-plugin-unicorn": "55.0.0",
42+
"globals": "15.9.0",
4543
"jest": "29.7.0",
4644
"jest-snapshot-serializer-raw": "1.2.0",
4745
"lines-and-columns": "2.0.4",
4846
"npm-run-all": "4.1.5",
49-
"prettier": "3.2.5",
47+
"prettier": "3.3.3",
5048
"standard-version": "9.5.0",
51-
"ts-jest": "29.1.3",
52-
"typescript": "5.4.5"
49+
"ts-jest": "29.2.5",
50+
"typescript": "5.6.2",
51+
"typescript-eslint": "8.7.0"
5352
},
5453
"peerDependencies": {
5554
"@angular/compiler": "^17.3.9 || ^18.0.0"

0 commit comments

Comments
 (0)