eslint-config-isaacscript 1.0.80 → 1.2.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/CHANGELOG.md ADDED
@@ -0,0 +1,5 @@
1
+ # Changelog
2
+
3
+ This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
+
5
+ ### [1.0.80](https://github.com/IsaacScript/isaacscript/compare/eslint-config-isaacscript-1.0.80-dev.0...eslint-config-isaacscript-1.0.80) (2022-05-24)
package/base.js CHANGED
@@ -375,8 +375,19 @@ module.exports = {
375
375
  * https://github.com/airbnb/javascript/blob/master/packages/eslint-config-airbnb-base/rules/es6.js
376
376
  *
377
377
  * - Array destructuring can result in non-intuitive code.
378
- * - Object destructuring is disgustingly verbose in TypeScript.
379
378
  */
380
- "prefer-destructuring": "off",
379
+ "prefer-destructuring": [
380
+ "warn",
381
+ {
382
+ VariableDeclarator: {
383
+ array: false,
384
+ object: true,
385
+ },
386
+ AssignmentExpression: {
387
+ array: false,
388
+ object: false,
389
+ },
390
+ },
391
+ ],
381
392
  },
382
393
  };
package/monorepo.js ADDED
@@ -0,0 +1,43 @@
1
+ const path = require("path"); // eslint-disable-line @typescript-eslint/no-var-requires
2
+
3
+ const REPO_ROOT = path.join(__dirname, "..", "..");
4
+
5
+ // This is a shared configuration file for ESLint:
6
+ // https://eslint.org/docs/user-guide/configuring
7
+ module.exports = {
8
+ plugins: ["@nrwl/nx"],
9
+
10
+ // From:
11
+ // https://github.com/nrwl/nx/blob/master/packages/eslint-plugin-nx/src/configs/typescript.ts
12
+ parserOptions: {
13
+ ecmaVersion: 2020,
14
+ sourceType: "module",
15
+ /* eslint-disable-next-line isaacscript/complete-sentences-line-comments */
16
+ // This cannot be simplified to "./../.." because of relative path shenanigans.
17
+ tsconfigRootDir: REPO_ROOT,
18
+ },
19
+
20
+ rules: {
21
+ "@nrwl/nx/enforce-module-boundaries": [
22
+ "warn",
23
+ {
24
+ enforceBuildableLibDependency: true,
25
+ allow: [],
26
+ depConstraints: [
27
+ {
28
+ sourceTag: "*",
29
+ onlyDependOnLibsWithTags: ["*"],
30
+ },
31
+ ],
32
+ },
33
+ ],
34
+
35
+ // This rule has to be told which "package.json" file that the dependencies are located in.
36
+ "import/no-extraneous-dependencies": [
37
+ "warn",
38
+ {
39
+ packageDir: REPO_ROOT,
40
+ },
41
+ ],
42
+ },
43
+ };
package/package.json CHANGED
@@ -1,21 +1,25 @@
1
1
  {
2
2
  "name": "eslint-config-isaacscript",
3
- "version": "1.0.80",
3
+ "version": "1.2.2",
4
4
  "description": "A sharable ESLint config for TypeScript and IsaacScript projects.",
5
+ "keywords": [
6
+ "eslint",
7
+ "config",
8
+ "configs",
9
+ "isaacscript",
10
+ "lint",
11
+ "linting",
12
+ "prettier"
13
+ ],
14
+ "homepage": "https://isaacscript.github.io/",
15
+ "bugs": {
16
+ "url": "https://github.com/IsaacScript/isaacscript/issues"
17
+ },
5
18
  "repository": {
6
19
  "type": "git",
7
- "url": "git+https://github.com/IsaacScript/eslint-config-isaacscript.git"
20
+ "url": "git+https://github.com/IsaacScript/isaacscript.git"
8
21
  },
9
22
  "license": "MIT",
10
23
  "author": "Zamiell",
11
- "files": [
12
- "base.js",
13
- "mod.js",
14
- "jsdoc.js"
15
- ],
16
- "devDependencies": {
17
- "cspell": "^5.21.0",
18
- "isaacscript-spell": "^1.0.3",
19
- "prettier": "^2.6.2"
20
- }
21
- }
24
+ "type": "commonjs"
25
+ }