isaacscript-lint 4.15.1 → 4.16.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.
Files changed (2) hide show
  1. package/README.md +18 -6
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -71,9 +71,9 @@ pnpm install isaacscript-lint --save-dev
71
71
 
72
72
  (It should be a development dependency because it is only used to lint your code pre-production.)
73
73
 
74
- ### Step 2 - `eslintrc.cjs`
74
+ ### Step 2 - `.eslintrc.cjs`
75
75
 
76
- Create a `eslintrc.cjs` file in the root of your repository:
76
+ Create a `.eslintrc.cjs` file in the root of your repository:
77
77
 
78
78
  ```js
79
79
  // This is the configuration file for ESLint, the TypeScript linter:
@@ -98,6 +98,8 @@ module.exports = {
98
98
  };
99
99
  ```
100
100
 
101
+ Note that this file must have a period at the beginning!
102
+
101
103
  ### Step 3 - `tsconfig.eslint.json`
102
104
 
103
105
  Create a `tsconfig.eslint.json` file in the root of your repository:
@@ -166,6 +168,16 @@ In order for the linter to work inside of VSCode, you will have to install the f
166
168
  - [Prettier](https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode)
167
169
  - [ESLint](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint)
168
170
 
171
+ Additionally, you might also want to install the CSpell extension, which is extremely useful to spell check an entire code base:
172
+
173
+ - [CSpell](https://marketplace.visualstudio.com/items?itemName=streetsidesoftware.code-spell-checker)
174
+
175
+ Once installed, these extensions provide the a nice dichotomy:
176
+
177
+ - Red squiggly underlines are type-errors from the TypeScript compiler.
178
+ - Yellow squiggly underlines are warnings from ESLint. (Our config uses `eslint-plugin-only-warn` to convert all ESLint errors to warnings.)
179
+ - Blue squiggly underlines are misspelled words. (You can right click --> `Spelling` --> `Add Words to CSpell Configuration` to ignore a specific word.)
180
+
169
181
  #### `.vscode/settings.json`
170
182
 
171
183
  Furthermore, you will probably want Prettier and ESLint to be run automatically every time you save a TypeScript file. You can tell VSCode to do this by adding the following to your project's `.vscode/settings.json` file:
@@ -213,7 +225,7 @@ Optionally, you can also provide a hint to anyone cloning your repository that t
213
225
 
214
226
  ## Package Documentation
215
227
 
216
- - [`@prettier/plugin-xml`](https://github.com/prettier/plugin-xml) - Allows Prettier to format XML files, which are common in Isaac mods.
228
+ - [`@prettier/plugin-xml`](https://github.com/prettier/plugin-xml) - Allows Prettier to format XML files, which are common in some kinds of projects.
217
229
  - [`@typescript-eslint/eslint-plugin`](https://github.com/typescript-eslint/typescript-eslint/tree/master/packages/eslint-plugin) - Required as a peer dependency for `eslint-config-airbnb-typescript`.
218
230
  - [`@typescript-eslint/parser`](https://github.com/typescript-eslint/typescript-eslint/tree/master/packages/parser) - Required as a peer dependency for `eslint-config-airbnb-typescript`.
219
231
  - [`cspell`](https://github.com/streetsidesoftware/cspell) - A spell checker for code that is intended to be paired with the [Code Spell Checker VSCode extension](https://marketplace.visualstudio.com/items?itemName=streetsidesoftware.code-spell-checker).
@@ -223,14 +235,14 @@ Optionally, you can also provide a hint to anyone cloning your repository that t
223
235
  - [`eslint-config-airbnb-typescript`](https://github.com/iamturns/eslint-config-airbnb-typescript) - Enhances the Airbnb rules with TypeScript support.
224
236
  - [`eslint-config-isaacscript`](https://github.com/IsaacScript/isaacscript/tree/main/packages/eslint-config-isaacscript) - Contains the master ESLint configuration.
225
237
  - [`eslint-config-prettier`](https://github.com/prettier/eslint-config-prettier) - Turns off all rules that conflict with Prettier.
226
- - [`eslint-plugin-deprecation`](https://github.com/gund/eslint-plugin-deprecation) - Finds deprecated code.
238
+ - [`eslint-plugin-deprecation`](https://github.com/gund/eslint-plugin-deprecation) - A plugin that finds deprecated code.
227
239
  - [`eslint-plugin-eslint-comments`](https://github.com/mysticatea/eslint-plugin-eslint-comments) - A plugin that provides rules relating to ESLint comments.
228
240
  - [`eslint-plugin-import`](https://github.com/benmosher/eslint-plugin-import) - Required as a peer dependency for `eslint-config-airbnb-base`.
229
241
  - [`eslint-plugin-isaacscript`](https://github.com/IsaacScript/isaacscript/tree/main/packages/eslint-plugin-isaacscript) - A plugin that provides a collection of miscellaneous rules that help keep code safe.
230
242
  - [`eslint-plugin-jsdoc`](https://github.com/gajus/eslint-plugin-jsdoc) - A plugin that provides rules for [JSDoc](https://en.wikipedia.org/wiki/JSDoc).
231
- - [`eslint-plugin-no-type-assertion`](https://github.com/Dremora/eslint-plugin-no-type-assertion) - A plugin that detects type assertions. (In the standard config, these rules are not turned on automatically, but they are extremely useful in certain specific contexts.)
243
+ - [`eslint-plugin-no-type-assertion`](https://github.com/Dremora/eslint-plugin-no-type-assertion) - A plugin that detects type assertions. (In the standard config, these rules are not turned on automatically, but they are useful in certain specific contexts.)
232
244
  - [`eslint-plugin-only-warn`](https://github.com/bfanger/eslint-plugin-only-warn) - A plugin that turns all errors to warnings.
233
- - [`eslint-plugin-sort-exports`](https://github.com/jrdrg/eslint-plugin-sort-exports) - A plugin that allows exports to be sorted alphabetically. (In the standard config, these rules are not turned on automatically, but they are extremely useful in certain specific contexts.)
245
+ - [`eslint-plugin-sort-exports`](https://github.com/jrdrg/eslint-plugin-sort-exports) - A plugin that allows exports to be sorted alphabetically. (In the standard config, these rules are not turned on automatically, but they are useful in certain specific contexts.)
234
246
  - [`prettier`](https://github.com/prettier/prettier) - This is the main code formatter, as explained above.
235
247
  - [`prettier-plugin-organize-imports`](https://github.com/simonhaenisch/prettier-plugin-organize-imports) - A plugin used because Prettier will not organize imports automatically. (It has no configuration and is automatically applied to Prettier if it is installed.)
236
248
  - [`ts-prune`](https://github.com/nadeesha/ts-prune) - A tool to look for unused exports, which catches bugs that the `import/no-unused-modules` rule cannot find.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isaacscript-lint",
3
- "version": "4.15.1",
3
+ "version": "4.16.1",
4
4
  "description": "A linting dependency meta-package for IsaacScript and TypeScript projects.",
5
5
  "keywords": [
6
6
  "isaacscript",
@@ -35,7 +35,7 @@
35
35
  "eslint-plugin-deprecation": "^1.3.3",
36
36
  "eslint-plugin-eslint-comments": "^3.2.0",
37
37
  "eslint-plugin-import": "^2.27.5",
38
- "eslint-plugin-isaacscript": "^2.5.1",
38
+ "eslint-plugin-isaacscript": "^2.6.1",
39
39
  "eslint-plugin-jsdoc": "^40.0.0",
40
40
  "eslint-plugin-n": "^15.6.1",
41
41
  "eslint-plugin-no-autofix": "^1.2.3",