Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .eslintignore

This file was deleted.

39 changes: 0 additions & 39 deletions .eslintrc.cjs

This file was deleted.

5 changes: 4 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,7 @@ jobs:
- run: yarn run test
env:
ENABLE_COVERAGE: 1
- run: npx codecov
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
47 changes: 47 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
import eslintPluginJs from '@eslint/js';
import eslintConfigPrettier from 'eslint-config-prettier';
import eslintPluginImport from 'eslint-plugin-import';
import eslintPluginSimpleImportSort from 'eslint-plugin-simple-import-sort';
import eslintPluginUnicorn from 'eslint-plugin-unicorn';
import globals from 'globals';
import tseslint from 'typescript-eslint';

export default tseslint.config(
{ ignores: ['coverage/', 'lib/', '**/.yarn/**', '**/.pnp.*'] },
eslintPluginJs.configs.recommended,
...tseslint.configs.recommended,
eslintConfigPrettier,
{
languageOptions: {
globals: { ...globals.builtin, ...globals.node },
},
plugins: {
'simple-import-sort': eslintPluginSimpleImportSort,
import: eslintPluginImport,
unicorn: eslintPluginUnicorn,
},
rules: {
'no-constant-condition': ['error', { checkLoops: false }],
'import/extensions': ['error', 'always'],
'simple-import-sort/imports': 'error',
'simple-import-sort/exports': 'error',
'unicorn/prefer-at': 'error',
},
},
{
files: ['**/*.ts'],
languageOptions: {
parserOptions: { project: ['tsconfig.json'] },
},
rules: {
'@typescript-eslint/no-namespace': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/consistent-type-imports': [
'error',
{ fixStyle: 'inline-type-imports' },
],
'@typescript-eslint/no-deprecated': 'error',
},
},
);
31 changes: 15 additions & 16 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"prepare": "yarn run build",
"test": "node --experimental-vm-modules node_modules/jest/bin/jest.js",
"lint": "run-p \"lint:*\"",
"lint:eslint": "eslint --ext=.ts,.js,.cjs .",
"lint:eslint": "eslint",
"lint:prettier": "prettier --check .",
"fix": "run-s \"fix:*\"",
"fix:eslint": "yarn lint:eslint --fix",
Expand All @@ -27,29 +27,28 @@
"release": "yarn build && standard-version"
},
"devDependencies": {
"@angular/compiler": "18.0.0",
"@babel/code-frame": "7.24.2",
"@babel/parser": "7.24.5",
"@babel/types": "7.24.5",
"@angular/compiler": "18.2.6",
"@babel/code-frame": "7.24.7",
"@babel/parser": "7.25.6",
"@babel/types": "7.25.6",
"@types/babel__code-frame": "7.0.6",
"@types/jest": "29.5.12",
"@typescript-eslint/eslint-plugin": "7.10.0",
"@typescript-eslint/parser": "7.10.0",
"@types/jest": "29.5.13",
"del-cli": "5.1.0",
"eslint": "8.56.0",
"eslint": "9.11.1",
"eslint-config-prettier": "9.1.0",
"eslint-plugin-deprecation": "2.0.0",
"eslint-plugin-import": "2.29.1",
"eslint-plugin-simple-import-sort": "12.1.0",
"eslint-plugin-unicorn": "53.0.0",
"eslint-plugin-import": "2.30.0",
"eslint-plugin-simple-import-sort": "12.1.1",
"eslint-plugin-unicorn": "55.0.0",
"globals": "15.9.0",
"jest": "29.7.0",
"jest-snapshot-serializer-raw": "1.2.0",
"lines-and-columns": "2.0.4",
"npm-run-all": "4.1.5",
"prettier": "3.2.5",
"prettier": "3.3.3",
"standard-version": "9.5.0",
"ts-jest": "29.1.3",
"typescript": "5.4.5"
"ts-jest": "29.2.5",
"typescript": "5.6.2",
"typescript-eslint": "8.7.0"
},
"peerDependencies": {
"@angular/compiler": "^17.3.9 || ^18.0.0"
Expand Down
Loading