@clipboard-health/eslint-config 2.4.13 → 3.0.0
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 +13 -0
- package/package.json +1 -1
- package/src/deprecated.d.ts +216 -0
- package/src/deprecated.d.ts.map +1 -0
- package/src/deprecated.js +325 -0
- package/src/deprecated.js.map +1 -0
- package/src/index.d.ts +35 -192
- package/src/index.js +73 -302
- package/src/index.js.map +1 -1
- package/src/{xo-react.d.ts → react.d.ts} +1 -1
- package/src/react.d.ts.map +1 -0
- package/src/{xo-react.js → react.js} +2 -2
- package/src/react.js.map +1 -0
- package/src/xo-react.d.ts.map +0 -1
- package/src/xo-react.js.map +0 -1
- package/src/xo.d.ts +0 -48
- package/src/xo.d.ts.map +0 -1
- package/src/xo.js +0 -56
- package/src/xo.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"react.d.ts","sourceRoot":"","sources":["../../../../packages/eslint-config/src/react.js"],"names":[],"mappings":""}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
module.exports = {
|
|
3
|
-
extends: ["./
|
|
3
|
+
extends: ["./index", "xo-react/space"],
|
|
4
4
|
parserOptions: {
|
|
5
5
|
project: ["tsconfig.json"],
|
|
6
6
|
tsconfigRootDir: __dirname,
|
|
7
7
|
},
|
|
8
8
|
};
|
|
9
|
-
//# sourceMappingURL=
|
|
9
|
+
//# sourceMappingURL=react.js.map
|
package/src/react.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"react.js","sourceRoot":"","sources":["../../../../packages/eslint-config/src/react.js"],"names":[],"mappings":";AAAA,MAAM,CAAC,OAAO,GAAG;IACf,OAAO,EAAE,CAAC,SAAS,EAAE,gBAAgB,CAAC;IACtC,aAAa,EAAE;QACb,OAAO,EAAE,CAAC,eAAe,CAAC;QAC1B,eAAe,EAAE,SAAS;KAC3B;CACF,CAAC"}
|
package/src/xo-react.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"xo-react.d.ts","sourceRoot":"","sources":["../../../../packages/eslint-config/src/xo-react.js"],"names":[],"mappings":""}
|
package/src/xo-react.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"xo-react.js","sourceRoot":"","sources":["../../../../packages/eslint-config/src/xo-react.js"],"names":[],"mappings":";AAAA,MAAM,CAAC,OAAO,GAAG;IACf,OAAO,EAAE,CAAC,MAAM,EAAE,gBAAgB,CAAC;IACnC,aAAa,EAAE;QACb,OAAO,EAAE,CAAC,eAAe,CAAC;QAC1B,eAAe,EAAE,SAAS;KAC3B;CACF,CAAC"}
|
package/src/xo.d.ts
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
declare const _extends: string[];
|
|
2
|
-
export { _extends as extends };
|
|
3
|
-
export declare const parser: string;
|
|
4
|
-
export declare namespace parserOptions {
|
|
5
|
-
const project: string[];
|
|
6
|
-
const tsconfigRootDir: string;
|
|
7
|
-
}
|
|
8
|
-
export declare const plugins: string[];
|
|
9
|
-
export declare const rules: {
|
|
10
|
-
"@typescript-eslint/consistent-type-definitions": string[];
|
|
11
|
-
"@typescript-eslint/naming-convention": string;
|
|
12
|
-
"@typescript-eslint/no-unused-vars": (string | {
|
|
13
|
-
argsIgnorePattern: string;
|
|
14
|
-
})[];
|
|
15
|
-
"@typescript-eslint/return-await": string[];
|
|
16
|
-
"capitalized-comments": string;
|
|
17
|
-
"class-methods-use-this": string;
|
|
18
|
-
"import/extensions": string;
|
|
19
|
-
"import/no-extraneous-dependencies": string;
|
|
20
|
-
"import/no-unresolved": string;
|
|
21
|
-
"import/prefer-default-export": string;
|
|
22
|
-
"n/no-missing-import": string;
|
|
23
|
-
"n/no-unpublished-import": string;
|
|
24
|
-
"new-cap": (string | {
|
|
25
|
-
newIsCap: boolean;
|
|
26
|
-
capIsNew: boolean;
|
|
27
|
-
})[];
|
|
28
|
-
"no-only-tests/no-only-tests": string;
|
|
29
|
-
"no-restricted-syntax": string;
|
|
30
|
-
"no-return-await": string;
|
|
31
|
-
"no-shadow": string;
|
|
32
|
-
"simple-import-sort/imports": string;
|
|
33
|
-
"simple-import-sort/exports": string;
|
|
34
|
-
"security/detect-object-injection": string;
|
|
35
|
-
"unicorn/no-array-for-each": string;
|
|
36
|
-
"unicorn/no-array-reduce": string;
|
|
37
|
-
"unicorn/prefer-module": string;
|
|
38
|
-
"unicorn/prevent-abbreviations": (string | {
|
|
39
|
-
ignore: RegExp[];
|
|
40
|
-
})[];
|
|
41
|
-
curly: string;
|
|
42
|
-
};
|
|
43
|
-
export declare namespace settings {
|
|
44
|
-
namespace node {
|
|
45
|
-
const version: string;
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
//# sourceMappingURL=xo.d.ts.map
|
package/src/xo.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"xo.d.ts","sourceRoot":"","sources":["../../../../packages/eslint-config/src/xo.js"],"names":[],"mappings":""}
|
package/src/xo.js
DELETED
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
module.exports = {
|
|
3
|
-
extends: [
|
|
4
|
-
"airbnb-base",
|
|
5
|
-
"plugin:eslint-comments/recommended",
|
|
6
|
-
"plugin:jest/recommended",
|
|
7
|
-
"plugin:jest/style",
|
|
8
|
-
"plugin:import/recommended",
|
|
9
|
-
"plugin:n/recommended",
|
|
10
|
-
"plugin:no-use-extend-native/recommended",
|
|
11
|
-
"plugin:security/recommended",
|
|
12
|
-
"plugin:sonarjs/recommended",
|
|
13
|
-
"plugin:unicorn/recommended",
|
|
14
|
-
"prettier",
|
|
15
|
-
"xo",
|
|
16
|
-
"xo-typescript/space",
|
|
17
|
-
],
|
|
18
|
-
parser: "@typescript-eslint/parser",
|
|
19
|
-
parserOptions: {
|
|
20
|
-
project: ["tsconfig.json"],
|
|
21
|
-
tsconfigRootDir: __dirname,
|
|
22
|
-
},
|
|
23
|
-
plugins: ["jest", "no-only-tests", "simple-import-sort", "sonarjs"],
|
|
24
|
-
rules: {
|
|
25
|
-
"@typescript-eslint/consistent-type-definitions": ["error", "interface"],
|
|
26
|
-
"@typescript-eslint/naming-convention": "off",
|
|
27
|
-
"@typescript-eslint/no-unused-vars": ["warn", { argsIgnorePattern: "^_" }],
|
|
28
|
-
"@typescript-eslint/return-await": ["error", "always"],
|
|
29
|
-
"capitalized-comments": "off",
|
|
30
|
-
"class-methods-use-this": "off",
|
|
31
|
-
"import/extensions": "off",
|
|
32
|
-
"import/no-extraneous-dependencies": "off",
|
|
33
|
-
"import/no-unresolved": "off",
|
|
34
|
-
"import/prefer-default-export": "off",
|
|
35
|
-
"n/no-missing-import": "off",
|
|
36
|
-
"n/no-unpublished-import": "off",
|
|
37
|
-
"new-cap": ["warn", { newIsCap: true, capIsNew: false }],
|
|
38
|
-
"no-only-tests/no-only-tests": "error",
|
|
39
|
-
"no-restricted-syntax": "off",
|
|
40
|
-
"no-return-await": "off",
|
|
41
|
-
"no-shadow": "off",
|
|
42
|
-
"simple-import-sort/imports": "warn",
|
|
43
|
-
"simple-import-sort/exports": "warn",
|
|
44
|
-
"security/detect-object-injection": "off",
|
|
45
|
-
"unicorn/no-array-for-each": "off",
|
|
46
|
-
"unicorn/no-array-reduce": "off",
|
|
47
|
-
"unicorn/prefer-module": "off",
|
|
48
|
-
"unicorn/prevent-abbreviations": [
|
|
49
|
-
"error",
|
|
50
|
-
{ ignore: [/config/i, /params/i, /props/i, /ref/i] },
|
|
51
|
-
],
|
|
52
|
-
curly: "error",
|
|
53
|
-
},
|
|
54
|
-
settings: { node: { version: ">=18.15.0" } },
|
|
55
|
-
};
|
|
56
|
-
//# sourceMappingURL=xo.js.map
|
package/src/xo.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"xo.js","sourceRoot":"","sources":["../../../../packages/eslint-config/src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