eslint-config-isaacscript 1.1.0 → 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/monorepo.js +43 -0
- package/package.json +17 -13
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.
|
|
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/
|
|
20
|
+
"url": "git+https://github.com/IsaacScript/isaacscript.git"
|
|
8
21
|
},
|
|
9
22
|
"license": "MIT",
|
|
10
23
|
"author": "Zamiell",
|
|
11
|
-
"
|
|
12
|
-
|
|
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
|
+
}
|