Skip to content

Commit fb02e62

Browse files
committed
chore: bump eslint + remove obsolete dependencies
1 parent 05560fa commit fb02e62

File tree

21 files changed

+1271
-2795
lines changed

21 files changed

+1271
-2795
lines changed

.eslintignore

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

.eslintrc.json

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

.travis.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,4 @@ before_install:
1212

1313
script:
1414
- npm ci
15-
- npm run lint
16-
- npm run build
17-
- npm test
15+
- npm run verify

README.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,12 @@
88

99
Quoting Michael Feathers (source [here][michael-feathers-source]):
1010

11-
*Often when we refactor, we look at local areas of code. If we take a wider
11+
_Often when we refactor, we look at local areas of code. If we take a wider
1212
view, using information from our version control systems, we can get a better
13-
sense of the effects of our refactoring efforts.*
13+
sense of the effects of our refactoring efforts._
1414

1515
Note: `code-complexity` currently measures complexity using either:
16+
1617
- lines of code count (for most languages)
1718
- cyclomatic complexity (JavaScript/TypeScript)
1819
- halstead complexity (JavaScript/TypeScript)
@@ -59,12 +60,13 @@ $ code-complexity . --max-buffer 64000000
5960
## Which strategy should you choose?
6061

6162
Currently, `code-complexity` supports three strategies:
63+
6264
- `sloc`
6365
- `cyclomatic` (JavaScript/TypeScript only)
6466
- `halstead` (JavaScript/TypeScript only)
6567

6668
`sloc` is the default strategy since it works on pretty much any language.
67-
It's a basic source code line count. One could think that it's not super helpful, but I have found that length is a
69+
It's a basic source code line count. One could think that it's not super helpful, but I have found that length is a
6870
decent starting point.
6971

7072
`cyclomatic` is a more advanced strategy that uses the [cyclomatic complexity][cyclomatic]
@@ -105,8 +107,8 @@ A special thanks to a few contributors that helped me make `code-complexity` bet
105107
- Alexander Dormann (alexdo) for fixing the `ENOBUFS` (and apologies for stealing your code).
106108
- Scott Brooks (scottamplitude) for initiating the work on complexity strategies
107109

108-
[michael-feathers-source]:https://www.stickyminds.com/article/getting-empirical-about-refactoring
109-
[travis-image]:https://img.shields.io/travis/simonrenoult/code-complexity/master.svg?style=flat-square
110+
[michael-feathers-source]: https://www.stickyminds.com/article/getting-empirical-about-refactoring
111+
[travis-image]: https://img.shields.io/travis/simonrenoult/code-complexity/master.svg?style=flat-square
110112
[travis-url]: https://travis-ci.org/simonrenoult/code-complexity
111113
[style-image]: https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square
112114
[style-url]: https://prettier.io/

eslint.config.mjs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import eslint from "@eslint/js";
2+
import tseslint from "typescript-eslint";
3+
4+
export default tseslint.config(
5+
{
6+
ignores: ["dist/**", "node_modules/**"],
7+
},
8+
eslint.configs.recommended,
9+
tseslint.configs.recommended,
10+
);

0 commit comments

Comments
 (0)