@clipboard-health/eslint-config 4.4.6 → 4.4.8
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/dist/src/index.d.ts +0 -5
- package/dist/src/index.js +1 -5
- package/dist/src/index.js.map +1 -1
- package/package.json +4 -4
- package/dist/README.md +0 -42
- package/dist/package.json +0 -47
package/dist/src/index.d.ts
CHANGED
|
@@ -7,11 +7,6 @@ export declare namespace parserOptions {
|
|
|
7
7
|
}
|
|
8
8
|
export declare let plugins: string[];
|
|
9
9
|
export declare let rules: {
|
|
10
|
-
/**
|
|
11
|
-
* Disable the capitalization of comments
|
|
12
|
-
* It makes code "not build" when just commented temporarily, which we've
|
|
13
|
-
* found to add more friction than the value from having consistent capitalization.
|
|
14
|
-
*/
|
|
15
10
|
"capitalized-comments": string;
|
|
16
11
|
"@typescript-eslint/consistent-type-definitions": string[];
|
|
17
12
|
"@typescript-eslint/naming-convention": string;
|
package/dist/src/index.js
CHANGED
|
@@ -25,11 +25,7 @@ module.exports = {
|
|
|
25
25
|
},
|
|
26
26
|
plugins: ["jest", "no-only-tests", "simple-import-sort", "sonarjs", "@typescript-eslint"],
|
|
27
27
|
rules: {
|
|
28
|
-
|
|
29
|
-
* Disable the capitalization of comments
|
|
30
|
-
* It makes code "not build" when just commented temporarily, which we've
|
|
31
|
-
* found to add more friction than the value from having consistent capitalization.
|
|
32
|
-
*/
|
|
28
|
+
// Breaks code when temporarily commented, adding more friction than the value provided.
|
|
33
29
|
"capitalized-comments": "off",
|
|
34
30
|
// See https://github.com/microsoft/TypeScript/wiki/Performance#preferring-interfaces-over-intersections
|
|
35
31
|
"@typescript-eslint/consistent-type-definitions": ["error", "interface"],
|
package/dist/src/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.js"],"names":[],"mappings":";AAAA,MAAM,CAAC,OAAO,GAAG;IACf,OAAO,EAAE;QACP,o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B,EAAE,KAAK;QAClC,yBAAyB,EAAE,KAAK;QAEhC,8CAA8C;QAC9C,+BAA+B,EAAE;YAC/B,OAAO;YACP,EAAE,MAAM,EAAE,CAAC,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,CAAC,EAAE;SACrD;QAED,yDAAyD;QACzD,sBAAsB,EAAE,KAAK;QAE7B,2DAA2D;QAC3D,sBAAsB,EAAE,CAAC,OAAO,EAAE,EAAE,SAAS,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;QAEvE,uBAAuB,EAAE;YACvB,OAAO;YACP;gBACE,KAAK,EAAE;oBACL,yDAAyD;oBACzD;wBACE,IAAI,EAAE,SAAS;wBACf,WAAW,EAAE,CAAC,UAAU,EAAE,UAAU,CAAC;wBACrC,OAAO,EACL,+HAA+H;qBAClI;iBACF;aACF;SACF;KACF;IACD,SAAS,EAAE;QACT;YACE,KAAK,EAAE;gBACL,WAAW;gBACX,YAAY;gBACZ,WAAW;gBACX,YAAY;gBACZ,WAAW;gBACX,YAAY;gBACZ,WAAW;gBACX,YAAY;aACb;YACD,KAAK,EAAE;gBACL,wCAAwC;gBACxC,yCAAyC,EAAE,KAAK;gBAEhD,0DAA0D;gBAC1D,6BAA6B,EAAE,KAAK;aACrC;SACF;QACD;;;WAGG;QACH;YACE,KAAK,EAAE,CAAC,aAAa,EAAE,oBAAoB,CAAC;YAC5C,KAAK,EAAE;gBACL,8BAA8B,EAAE;oBAC9B,OAAO;oBACP;wBACE,cAAc,EAAE,IAAI;wBACpB,KAAK,EAAE;4BACL,IAAI,EAAE,KAAK;yBACZ;qBACF;iBACF;aACF;SACF;KACF;IACD,QAAQ,EAAE,EAAE,IAAI,EAAE,EAAE,OAAO,EAAE,WAAW,EAAE,EAAE;CAC7C,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@clipboard-health/eslint-config",
|
|
3
3
|
"description": "Clipboard Health's ESLint configuration.",
|
|
4
|
-
"version": "4.4.
|
|
4
|
+
"version": "4.4.8",
|
|
5
5
|
"bugs": "https://github.com/clipboardhealth/core-utils/issues",
|
|
6
6
|
"files": [
|
|
7
|
-
"dist"
|
|
7
|
+
"dist/src"
|
|
8
8
|
],
|
|
9
9
|
"keywords": [
|
|
10
10
|
"config",
|
|
11
11
|
"eslint"
|
|
12
12
|
],
|
|
13
13
|
"license": "MIT",
|
|
14
|
-
"main": "./src/index.js",
|
|
14
|
+
"main": "./dist/src/index.js",
|
|
15
15
|
"peerDependencies": {
|
|
16
16
|
"@typescript-eslint/eslint-plugin": "^7",
|
|
17
17
|
"@typescript-eslint/parser": "^7",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"repository": {
|
|
40
40
|
"type": "git",
|
|
41
41
|
"url": "git+https://github.com/clipboardhealth/core-utils.git",
|
|
42
|
-
"directory": "packages/
|
|
42
|
+
"directory": "packages/eslint-config"
|
|
43
43
|
},
|
|
44
44
|
"type": "commonjs",
|
|
45
45
|
"typings": "./src/index.d.ts"
|
package/dist/README.md
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
# @clipboard-health/eslint-config
|
|
2
|
-
|
|
3
|
-
Shared [ESLint](https://eslint.org/) configuration.
|
|
4
|
-
|
|
5
|
-
## Table of Contents
|
|
6
|
-
|
|
7
|
-
- [Install](#install)
|
|
8
|
-
- [Local development commands](#local-development-commands)
|
|
9
|
-
|
|
10
|
-
## Install
|
|
11
|
-
|
|
12
|
-
```bash
|
|
13
|
-
npm install -D @clipboard-health/eslint-config eslint-config-prettier prettier
|
|
14
|
-
```
|
|
15
|
-
|
|
16
|
-
Then, modify your `.eslintrc.js` file:
|
|
17
|
-
|
|
18
|
-
```js
|
|
19
|
-
module.exports = {
|
|
20
|
-
extends: ["@clipboard-health", "prettier"],
|
|
21
|
-
overrides: [
|
|
22
|
-
{
|
|
23
|
-
files: ["*.ts", "*.tsx", "*.js", "*.jsx"],
|
|
24
|
-
parserOptions: {
|
|
25
|
-
project: "tsconfig.lint.json",
|
|
26
|
-
tsconfigRootDir: __dirname,
|
|
27
|
-
},
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
files: ["*.spec.ts", "*.spec.tsx", "*.spec.js", "*.spec.jsx"],
|
|
31
|
-
env: {
|
|
32
|
-
jest: true,
|
|
33
|
-
},
|
|
34
|
-
},
|
|
35
|
-
],
|
|
36
|
-
root: true,
|
|
37
|
-
};
|
|
38
|
-
```
|
|
39
|
-
|
|
40
|
-
## Local development commands
|
|
41
|
-
|
|
42
|
-
See [`package.json`](./package.json) `scripts` for a list of commands.
|
package/dist/package.json
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@clipboard-health/eslint-config",
|
|
3
|
-
"description": "Clipboard Health's ESLint configuration.",
|
|
4
|
-
"version": "4.4.6",
|
|
5
|
-
"bugs": "https://github.com/clipboardhealth/core-utils/issues",
|
|
6
|
-
"files": [
|
|
7
|
-
"dist"
|
|
8
|
-
],
|
|
9
|
-
"keywords": [
|
|
10
|
-
"config",
|
|
11
|
-
"eslint"
|
|
12
|
-
],
|
|
13
|
-
"license": "MIT",
|
|
14
|
-
"main": "./src/index.js",
|
|
15
|
-
"peerDependencies": {
|
|
16
|
-
"@typescript-eslint/eslint-plugin": "^7",
|
|
17
|
-
"@typescript-eslint/parser": "^7",
|
|
18
|
-
"eslint": "^8",
|
|
19
|
-
"eslint-config-airbnb-base": "^15",
|
|
20
|
-
"eslint-config-prettier": "^9",
|
|
21
|
-
"eslint-config-xo": "^0.45",
|
|
22
|
-
"eslint-config-xo-react": "^0.27",
|
|
23
|
-
"eslint-config-xo-typescript": "^1",
|
|
24
|
-
"eslint-plugin-eslint-comments": "^3",
|
|
25
|
-
"eslint-plugin-import": "^2",
|
|
26
|
-
"eslint-plugin-jest": "^27.7",
|
|
27
|
-
"eslint-plugin-n": "^16",
|
|
28
|
-
"eslint-plugin-no-only-tests": "^3",
|
|
29
|
-
"eslint-plugin-no-use-extend-native": "^0.5",
|
|
30
|
-
"eslint-plugin-react": "^7",
|
|
31
|
-
"eslint-plugin-security": "^1",
|
|
32
|
-
"eslint-plugin-simple-import-sort": "^10",
|
|
33
|
-
"eslint-plugin-sonarjs": "^0.23",
|
|
34
|
-
"eslint-plugin-unicorn": "^48"
|
|
35
|
-
},
|
|
36
|
-
"publishConfig": {
|
|
37
|
-
"access": "public"
|
|
38
|
-
},
|
|
39
|
-
"repository": {
|
|
40
|
-
"type": "git",
|
|
41
|
-
"url": "git+https://github.com/clipboardhealth/core-utils.git",
|
|
42
|
-
"directory": "packages/nx-plugin"
|
|
43
|
-
},
|
|
44
|
-
"type": "commonjs",
|
|
45
|
-
"typings": "./src/index.d.ts",
|
|
46
|
-
"types": "./src/index.d.ts"
|
|
47
|
-
}
|