isaacscript-lint 4.16.11 → 5.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -6
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -8,7 +8,7 @@ This is a helper/meta package to install all of the dependencies necessary for [
|
|
|
8
8
|
|
|
9
9
|
## Why This Package Is Useful
|
|
10
10
|
|
|
11
|
-
It's a pain to get Prettier & ESLint working with TypeScript. So, `isaacscript-lint` is designed to make it as easy as possible. Don't clutter your `package.json` file with 15+ different ESLint-related dependencies
|
|
11
|
+
It's a pain to get Prettier & ESLint working with TypeScript. So, `isaacscript-lint` is designed to make it as easy as possible. Don't clutter your `package.json` file with 15+ different ESLint-related dependencies. Don't bother researching which of the hundreds of existing ESLint rules to turn on and turn off. Just use `isaacscript-lint`.
|
|
12
12
|
|
|
13
13
|
If you are ready to start, see the [installation instructions](#installation-instructions-for-typescript-projects) below.
|
|
14
14
|
|
|
@@ -48,11 +48,9 @@ Prettier handles almost everything, but the `isaacscript-lint` linting config al
|
|
|
48
48
|
|
|
49
49
|
ESLint is the best tool to lint JavaScript and TypeScript, as it has a massive ecosystem of rules and plugins that can help find errors in your codebase.
|
|
50
50
|
|
|
51
|
-
|
|
51
|
+
With `isaacscript-lint`, the philosophy is that we want to enable as many lint rules as possible, so that we can catch as many bugs as possible. It takes a lot of work to figure out which rules to turn on and which to not bother with, but we've done it for you. This is documented in more detail on [the docs for `eslint-config-isaacscript`](https://isaacscript.github.io/eslint-config-isaacscript).
|
|
52
52
|
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
### Using Them Together
|
|
53
|
+
### Using Prettier & ESLint Together
|
|
56
54
|
|
|
57
55
|
In order to avoid running two different tools, we could use [eslint-plugin-prettier](https://github.com/prettier/eslint-plugin-prettier) to run Prettier as an ESLint rule. However, doing this [is not recommended by Prettier](https://prettier.io/docs/en/integrating-with-linters.html). Thus, in order to use `isaacscript-lint`, you should be running both Prettier and ESLint on save. (More info on that is below.)
|
|
58
56
|
|
|
@@ -106,7 +104,9 @@ module.exports = {
|
|
|
106
104
|
};
|
|
107
105
|
```
|
|
108
106
|
|
|
109
|
-
|
|
107
|
+
This file must have a period at the beginning!
|
|
108
|
+
|
|
109
|
+
Note that [the new config format for ESLint that was released in 2023](https://eslint.org/docs/latest/use/configure/configuration-files-new) is not yet recommended for production use.
|
|
110
110
|
|
|
111
111
|
### Step 3 - `tsconfig.eslint.json`
|
|
112
112
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "isaacscript-lint",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.0.0",
|
|
4
4
|
"description": "A linting dependency meta-package for IsaacScript and TypeScript projects.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"isaacscript",
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
"eslint": "^8.46.0",
|
|
30
30
|
"eslint-config-airbnb-base": "^15.0.0",
|
|
31
31
|
"eslint-config-airbnb-typescript": "^17.1.0",
|
|
32
|
-
"eslint-config-isaacscript": "^
|
|
33
|
-
"eslint-config-prettier": "^8.
|
|
32
|
+
"eslint-config-isaacscript": "^4.0.0",
|
|
33
|
+
"eslint-config-prettier": "^8.10.0",
|
|
34
34
|
"eslint-plugin-deprecation": "^1.5.0",
|
|
35
35
|
"eslint-plugin-eslint-comments": "^3.2.0",
|
|
36
36
|
"eslint-plugin-import": "npm:eslint-plugin-i@latest",
|
|
@@ -40,8 +40,8 @@
|
|
|
40
40
|
"eslint-plugin-no-autofix": "^1.2.3",
|
|
41
41
|
"eslint-plugin-only-warn": "^1.1.0",
|
|
42
42
|
"eslint-plugin-unicorn": "^48.0.1",
|
|
43
|
-
"knip": "^2.17.
|
|
44
|
-
"prettier": "^3.0.
|
|
43
|
+
"knip": "^2.17.3",
|
|
44
|
+
"prettier": "^3.0.1",
|
|
45
45
|
"prettier-plugin-organize-imports": "^3.2.3"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|