Skip to content

Commit def6e47

Browse files
author
codeliner
committed
Make eslint happy
1 parent 405e4f0 commit def6e47

7 files changed

Lines changed: 60 additions & 28 deletions

File tree

.eslintignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,5 @@ jest.config.js
88
jest.transform.js
99
scripts
1010
examples/
11+
packages/*/lib
12+
packages/cody-types/src/index.ts

package.json

Lines changed: 23 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -7,27 +7,29 @@
77
"workspaces": [
88
"packages/*"
99
],
10-
"dev": "lerna run dev:next --stream --parallel",
11-
"bootstrap": "lerna bootstrap",
12-
"build": "yarn build:packages && lerna run build",
13-
"build:packages": "lerna run build:package --no-private",
14-
"prepublish": "lerna run prepublish",
15-
"changelog": "lerna-changelog",
16-
"canary": "yarn canary:bumpVersion && yarn canary:publish",
17-
"format": "prettier --config .prettierrc --write \"**/*.{js,jsx,ts,tsx,json}\"",
18-
"format:diff": "prettier --config .prettierrc --list-different \"**/*.{js,jsx,ts,tsx,json}\"",
19-
"canary:version": "echo 0.0.0-`git rev-list --count HEAD`+`git rev-parse --short HEAD`",
20-
"canary:bumpVersion": "yarn lerna version `yarn --silent canary:version` --exact --no-push --yes",
21-
"canary:publish": "yarn lerna publish from-package --dist-tag canary --yes --no-verify-access",
22-
"postinstall": "yarn lock:update && yarn build:packages",
23-
"lock:update": "npx yarn-deduplicate",
24-
"start": "lerna run start --stream",
25-
"test": "cross-env PROJECT_DIR=/ jest",
26-
"lint": "yarn lint:js",
27-
"changeset": "changeset",
28-
"release": "changeset publish",
29-
"lint:ci": "yarn lint:js --quiet --report-unused-disable-directives",
30-
"lint:js": "eslint --cache \"**/*.{js,jsx,ts,tsx}\"",
10+
"scripts": {
11+
"dev": "lerna run dev:next --stream --parallel",
12+
"bootstrap": "lerna bootstrap",
13+
"build": "yarn build:packages && lerna run build",
14+
"build:packages": "lerna run build:package --no-private",
15+
"prepublish": "lerna run prepublish",
16+
"changelog": "lerna-changelog",
17+
"canary": "yarn canary:bumpVersion && yarn canary:publish",
18+
"format": "prettier --config .prettierrc --write \"**/*.{js,jsx,ts,tsx,json}\"",
19+
"format:diff": "prettier --config .prettierrc --list-different \"**/*.{js,jsx,ts,tsx,json}\"",
20+
"canary:version": "echo 0.0.0-`git rev-list --count HEAD`+`git rev-parse --short HEAD`",
21+
"canary:bumpVersion": "yarn lerna version `yarn --silent canary:version` --exact --no-push --yes",
22+
"canary:publish": "yarn lerna publish from-package --dist-tag canary --yes --no-verify-access",
23+
"postinstall": "yarn lock:update && yarn build:packages",
24+
"lock:update": "npx yarn-deduplicate",
25+
"start": "lerna run start --stream",
26+
"test": "cross-env PROJECT_DIR=/ jest",
27+
"lint": "yarn lint:js",
28+
"changeset": "changeset",
29+
"release": "changeset publish",
30+
"lint:ci": "yarn lint:js --quiet --report-unused-disable-directives",
31+
"lint:js": "eslint --cache \"**/*.{js,jsx,ts,tsx}\""
32+
},
3133
"devDependencies": {
3234
"@babel/plugin-transform-modules-commonjs": "^7.16.0",
3335
"@babel/preset-env": "^7.16.4",

packages/cody-types/package-lock.json

Lines changed: 31 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/cody-types/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
"name": "@proophboard/cody-types",
33
"version": "0.0.1",
44
"description": "Common types for Cody packages",
5-
"types": "./src/index.d.ts",
65
"scripts": {
76
"test": "tsc -p ."
87
},
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
import {Record} from "immutable";
22
import {GraphPoint} from "./index";
33

4-
export class GraphPointRecord extends Record({x: 0, y: 0}) implements GraphPoint {}
4+
export default class GraphPointRecord extends Record({x: 0, y: 0}) implements GraphPoint {}

packages/cody-types/src/NodeRecord.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import {List, Record} from "immutable";
12
import {
23
GraphPoint,
34
Node,
@@ -8,8 +9,7 @@ import {
89
NodeTag,
910
NodeType, RawNodeRecordProps
1011
} from "./index";
11-
import {List, Record} from "immutable";
12-
import {GraphPointRecord} from "./GraphPointRecord";
12+
import GraphPointRecord from "./GraphPointRecord";
1313

1414
const defaultNodeRecordProps: NodeRecordProps = {
1515
id: '',
@@ -27,8 +27,7 @@ const defaultNodeRecordProps: NodeRecordProps = {
2727
metadata: null,
2828
};
2929

30-
export const makeNodeRecord = (node: RawNodeRecordProps): NodeRecord => {
31-
return new NodeRecord({
30+
export const makeNodeRecord = (node: RawNodeRecordProps): NodeRecord => new NodeRecord({
3231
id: node.id,
3332
name: node.name,
3433
type: node.type,
@@ -43,7 +42,6 @@ export const makeNodeRecord = (node: RawNodeRecordProps): NodeRecord => {
4342
geometry: new GraphPointRecord(node.geometry),
4443
metadata: node.metadata,
4544
});
46-
};
4745

4846
export class NodeRecord extends Record(defaultNodeRecordProps) implements Node {
4947
public getId(): NodeId {

0 commit comments

Comments
 (0)