isaacscript-lint 2.0.2 → 4.0.1
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 +7 -8
- package/package.json +8 -8
package/README.md
CHANGED
|
@@ -75,24 +75,23 @@ npm install isaacscript-lint --save-dev
|
|
|
75
75
|
Create a `eslintrc.js` file in the root of your repository:
|
|
76
76
|
|
|
77
77
|
```js
|
|
78
|
-
// This is the configuration file for ESLint, the TypeScript linter
|
|
79
|
-
// https://eslint.org/docs/user-guide/configuring
|
|
78
|
+
// This is the configuration file for ESLint, the TypeScript linter:
|
|
79
|
+
// https://eslint.org/docs/latest/user-guide/configuring
|
|
80
80
|
module.exports = {
|
|
81
81
|
extends: [
|
|
82
|
-
// The linter base is the shared IsaacScript config
|
|
82
|
+
// The linter base is the shared IsaacScript config:
|
|
83
83
|
// https://github.com/IsaacScript/isaacscript/blob/main/packages/eslint-config-isaacscript/base.js
|
|
84
84
|
"eslint-config-isaacscript/base",
|
|
85
85
|
],
|
|
86
86
|
|
|
87
87
|
parserOptions: {
|
|
88
88
|
// ESLint needs to know about the project's TypeScript settings in order for TypeScript-specific
|
|
89
|
-
// things to lint correctly
|
|
90
|
-
//
|
|
91
|
-
// linted but not included in the actual project output
|
|
89
|
+
// things to lint correctly. We do not point this at "./tsconfig.json" because certain files
|
|
90
|
+
// (such at this file) should be linted but not included in the actual project output.
|
|
92
91
|
project: "./tsconfig.eslint.json",
|
|
93
92
|
},
|
|
94
93
|
|
|
95
|
-
// We modify the linting rules from the base for some specific things
|
|
94
|
+
// We modify the linting rules from the base for some specific things.
|
|
96
95
|
rules: {},
|
|
97
96
|
};
|
|
98
97
|
```
|
|
@@ -127,7 +126,7 @@ Create a `tsconfig.eslint.json` file in the root of your repository:
|
|
|
127
126
|
You can add extra rules (or ignore existing rules) by editing the `rules` section of your `eslintrc.js` file. For example:
|
|
128
127
|
|
|
129
128
|
```js
|
|
130
|
-
// We modify the linting rules from the base for some specific things
|
|
129
|
+
// We modify the linting rules from the base for some specific things.
|
|
131
130
|
rules: {
|
|
132
131
|
"@typescript-eslint/no-unused-vars": "off",
|
|
133
132
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "isaacscript-lint",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.1",
|
|
4
4
|
"description": "A linting dependency meta-package for IsaacScript and TypeScript projects.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"isaacscript",
|
|
@@ -22,20 +22,20 @@
|
|
|
22
22
|
"type": "commonjs",
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@prettier/plugin-xml": "^2.2.0",
|
|
25
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
26
|
-
"@typescript-eslint/parser": "^5.
|
|
27
|
-
"cspell": "^6.
|
|
28
|
-
"eslint": "^8.
|
|
25
|
+
"@typescript-eslint/eslint-plugin": "^5.30.6",
|
|
26
|
+
"@typescript-eslint/parser": "^5.30.6",
|
|
27
|
+
"cspell": "^6.3.0",
|
|
28
|
+
"eslint": "^8.20.0",
|
|
29
29
|
"eslint-config-airbnb-base": "^15.0.0",
|
|
30
30
|
"eslint-config-airbnb-typescript": "^17.0.0",
|
|
31
|
-
"eslint-config-isaacscript": "^
|
|
31
|
+
"eslint-config-isaacscript": "^3.0.1",
|
|
32
32
|
"eslint-config-prettier": "^8.5.0",
|
|
33
33
|
"eslint-plugin-eslint-comments": "^3.2.0",
|
|
34
34
|
"eslint-plugin-import": "^2.26.0",
|
|
35
|
-
"eslint-plugin-isaacscript": "^1.
|
|
35
|
+
"eslint-plugin-isaacscript": "^1.5.0",
|
|
36
36
|
"eslint-plugin-jsdoc": "^39.3.3",
|
|
37
37
|
"eslint-plugin-only-warn": "^1.0.3",
|
|
38
|
-
"eslint-plugin-sort-exports": "^0.
|
|
38
|
+
"eslint-plugin-sort-exports": "^0.7.0",
|
|
39
39
|
"prettier": "^2.7.1",
|
|
40
40
|
"prettier-plugin-organize-imports": "^3.0.0",
|
|
41
41
|
"ts-prune": "^0.10.3"
|