@clipboard-health/eslint-config 1.6.0 → 1.7.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 +7 -0
- package/package.json +2 -1
- package/src/index.js +1 -1
- package/src/xo.d.ts +14 -0
- package/src/xo.d.ts.map +1 -0
- package/src/xo.js +16 -0
- package/src/xo.js.map +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
## [1.7.0](https://github.com/ClipboardHealth/cbh-core/compare/eslint-config-1.6.0...eslint-config-1.7.0) (2023-04-24)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* use XO ESLint config ([#26](https://github.com/ClipboardHealth/cbh-core/issues/26) ([ae385eb](https://github.com/ClipboardHealth/cbh-core/commit/ae385eb06d02a79f894e2f229731f2cf0aedffbd))
|
|
11
|
+
|
|
5
12
|
## [1.6.0](https://github.com/ClipboardHealth/cbh-core/compare/eslint-config-1.5.0...eslint-config-1.6.0) (2023-04-24)
|
|
6
13
|
|
|
7
14
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@clipboard-health/eslint-config",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.7.0",
|
|
4
4
|
"main": "./src/index.js",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "nx build eslint-config",
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
},
|
|
10
10
|
"peerDependencies": {
|
|
11
11
|
"@typescript-eslint/eslint-plugin": ">= 5",
|
|
12
|
+
"@typescript-eslint/parser": ">= 5",
|
|
12
13
|
"eslint": ">= 8",
|
|
13
14
|
"eslint-plugin-no-only-tests": ">= 3",
|
|
14
15
|
"eslint-plugin-simple-import-sort": ">= 10",
|
package/src/index.js
CHANGED
|
@@ -47,7 +47,7 @@ module.exports = {
|
|
|
47
47
|
assertionStyle: "never",
|
|
48
48
|
},
|
|
49
49
|
],
|
|
50
|
-
//
|
|
50
|
+
// Enabled by default - you can and should override this in overrides below
|
|
51
51
|
"@typescript-eslint/explicit-module-boundary-types": [
|
|
52
52
|
"warn",
|
|
53
53
|
// We already have 'no-explicit-any' on - no need to enforce it again
|
package/src/xo.d.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
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/naming-convention": string;
|
|
11
|
+
"import/order": string;
|
|
12
|
+
"no-only-tests/no-only-tests": string;
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=xo.d.ts.map
|
package/src/xo.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"xo.d.ts","sourceRoot":"","sources":["../../../../packages/eslint-config/src/xo.js"],"names":[],"mappings":""}
|
package/src/xo.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
module.exports = {
|
|
3
|
+
extends: ["prettier", "xo", "xo-typescript/space"],
|
|
4
|
+
parser: "@typescript-eslint/parser",
|
|
5
|
+
parserOptions: {
|
|
6
|
+
project: ["tsconfig.json"],
|
|
7
|
+
tsconfigRootDir: __dirname,
|
|
8
|
+
},
|
|
9
|
+
plugins: ["no-only-tests", "simple-import-sort"],
|
|
10
|
+
rules: {
|
|
11
|
+
"@typescript-eslint/naming-convention": "off",
|
|
12
|
+
"import/order": "off",
|
|
13
|
+
"no-only-tests/no-only-tests": "error",
|
|
14
|
+
},
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=xo.js.map
|
package/src/xo.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"xo.js","sourceRoot":"","sources":["../../../../packages/eslint-config/src/xo.js"],"names":[],"mappings":";AAAA,MAAM,CAAC,OAAO,GAAG;IACf,OAAO,EAAE,CAAC,UAAU,EAAE,IAAI,EAAE,qBAAqB,CAAC;IAClD,MAAM,EAAE,2BAA2B;IACnC,aAAa,EAAE;QACb,OAAO,EAAE,CAAC,eAAe,CAAC;QAC1B,eAAe,EAAE,SAAS;KAC3B;IACD,OAAO,EAAE,CAAC,eAAe,EAAE,oBAAoB,CAAC;IAChD,KAAK,EAAE;QACL,sCAAsC,EAAE,KAAK;QAC7C,cAAc,EAAE,KAAK;QACrB,6BAA6B,EAAE,OAAO;KACvC;CACF,CAAC"}
|