isaacscript-lint 4.8.0 → 4.8.2
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 +5 -5
- package/package.json +4 -3
package/README.md
CHANGED
|
@@ -16,7 +16,7 @@ See the [installation instructions](#installation-instructions-for-typescript-pr
|
|
|
16
16
|
|
|
17
17
|
## For Use in an Isaacscript Mod
|
|
18
18
|
|
|
19
|
-
Use the `isaacscript init` tool to automatically set up a new mod that has `isaacscript-lint` as a dependency and a starting `eslintrc.
|
|
19
|
+
Use the `isaacscript init` tool to automatically set up a new mod that has `isaacscript-lint` as a dependency and a starting `eslintrc.cjs` config file.
|
|
20
20
|
|
|
21
21
|
<br>
|
|
22
22
|
|
|
@@ -70,9 +70,9 @@ npm install isaacscript-lint --save-dev
|
|
|
70
70
|
|
|
71
71
|
(It should be a development dependency because it is only used to lint your code pre-production.)
|
|
72
72
|
|
|
73
|
-
### Step 2 - `eslintrc.
|
|
73
|
+
### Step 2 - `eslintrc.cjs`
|
|
74
74
|
|
|
75
|
-
Create a `eslintrc.
|
|
75
|
+
Create a `eslintrc.cjs` file in the root of your repository:
|
|
76
76
|
|
|
77
77
|
```js
|
|
78
78
|
// This is the configuration file for ESLint, the TypeScript linter:
|
|
@@ -114,7 +114,7 @@ Create a `tsconfig.eslint.json` file in the root of your repository:
|
|
|
114
114
|
|
|
115
115
|
// These are ESLint-only inclusions. Usually, this includes any files that are outside of your
|
|
116
116
|
// "src" directory, such as "webpack.config.js", "jest.config.js", "Gruntfile.js", and so forth.
|
|
117
|
-
"./.eslintrc.
|
|
117
|
+
"./.eslintrc.cjs"
|
|
118
118
|
]
|
|
119
119
|
}
|
|
120
120
|
```
|
|
@@ -123,7 +123,7 @@ Create a `tsconfig.eslint.json` file in the root of your repository:
|
|
|
123
123
|
|
|
124
124
|
## Adding or Removing Rules
|
|
125
125
|
|
|
126
|
-
You can add extra rules (or ignore existing rules) by editing the `rules` section of your `eslintrc.
|
|
126
|
+
You can add extra rules (or ignore existing rules) by editing the `rules` section of your `eslintrc.cjs` file. For example:
|
|
127
127
|
|
|
128
128
|
```js
|
|
129
129
|
// We modify the linting rules from the base for some specific things.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "isaacscript-lint",
|
|
3
|
-
"version": "4.8.
|
|
3
|
+
"version": "4.8.2",
|
|
4
4
|
"description": "A linting dependency meta-package for IsaacScript and TypeScript projects.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"isaacscript",
|
|
@@ -22,10 +22,11 @@
|
|
|
22
22
|
"type": "commonjs",
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@prettier/plugin-xml": "^2.2.0",
|
|
25
|
+
"@tsconfig/recommended": "^1.0.2",
|
|
25
26
|
"@typescript-eslint/eslint-plugin": "^5.49.0",
|
|
26
27
|
"@typescript-eslint/parser": "^5.49.0",
|
|
27
28
|
"cspell": "^6.19.2",
|
|
28
|
-
"eslint": "^8.
|
|
29
|
+
"eslint": "^8.33.0",
|
|
29
30
|
"eslint-config-airbnb-base": "^15.0.0",
|
|
30
31
|
"eslint-config-airbnb-typescript": "^17.0.0",
|
|
31
32
|
"eslint-config-isaacscript": "^3.3.0",
|
|
@@ -33,7 +34,7 @@
|
|
|
33
34
|
"eslint-plugin-eslint-comments": "^3.2.0",
|
|
34
35
|
"eslint-plugin-import": "^2.27.5",
|
|
35
36
|
"eslint-plugin-isaacscript": "^2.3.0",
|
|
36
|
-
"eslint-plugin-jsdoc": "^39.
|
|
37
|
+
"eslint-plugin-jsdoc": "^39.7.4",
|
|
37
38
|
"eslint-plugin-no-type-assertion": "^1.3.0",
|
|
38
39
|
"eslint-plugin-only-warn": "^1.1.0",
|
|
39
40
|
"eslint-plugin-sort-exports": "^0.8.0",
|