Skip to content

Commit ddfbf60

Browse files
committed
Add Subsocial type definitions and generated interfaces
1 parent 353fdbf commit ddfbf60

21 files changed

+16861
-0
lines changed

.eslintignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
**/.next/*
2+
**/node_modules/*

.eslintrc.js

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
const base = require('@polkadot/dev-react/config/eslint');
2+
3+
// add override for any (a metric ton of them, initial conversion)
4+
module.exports = {
5+
...base,
6+
parserOptions: {
7+
...base.parserOptions,
8+
project: [
9+
'./tsconfig.json'
10+
]
11+
},
12+
rules: {
13+
...base.rules,
14+
'semi': 'off',
15+
'comma-spacing': 'warn',
16+
'array-bracket-spacing': ['warn', "always"],
17+
'react/display-name': 'off',
18+
'padded-blocks': 'off',
19+
'prefer-promise-reject-errors': 'warn',
20+
'@typescript-eslint/explicit-member-accessibility': 'off',
21+
'@typescript-eslint/indent': ['warn', 2],
22+
'@typescript-eslint/no-use-before-define': 'off',
23+
'@typescript-eslint/member-delimiter-style': 'off',
24+
'@typescript-eslint/no-explicit-any': 'off',
25+
'@typescript-eslint/explicit-function-return-type': 'off',
26+
'@typescript-eslint/prefer-interface': 'off',
27+
'@typescript-eslint/no-object-literal-type-assertion': 'off',
28+
'@typescript-eslint/camelcase': 'off',
29+
'react/prop-types': 'off',
30+
'@typescript-eslint/array-type': 'off'
31+
}
32+
};

.vscode/settings.json

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"files.exclude": {
3+
"**/.git": true,
4+
"**/.svn": true,
5+
"**/.hg": true,
6+
"**/CVS": true,
7+
"**/.DS_Store": true,
8+
"node_modules": true,
9+
".next": true
10+
},
11+
"files.autoSave": "afterDelay",
12+
"eslint.format.enable": true,
13+
"eslint.lintTask.enable": true,
14+
"files.associations": {
15+
"*.css": "scss",
16+
"*.sass": "scss"
17+
},
18+
"[typescriptreact]": {
19+
"editor.defaultFormatter": "dbaeumer.vscode-eslint"
20+
},
21+
"editor.codeActionsOnSave": {
22+
"source.fixAll.eslint": false
23+
}
24+
}

babel.config.js

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module.exports = {
2+
extends: '@polkadot/dev/config/babel'
3+
};

jest.config.js

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
module.exports = {
2+
moduleNameMapper: {
3+
'@dappforce/types(.*)$': '<rootDir>/packages/types/src/$1',
4+
'@dappforce/utils(.*)$': '<rootDir>/packages/utils/src/$1'
5+
}
6+
};

lerna.json

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"npmClient": "yarn",
3+
"useWorkspaces": true,
4+
"command": {
5+
"publish": {
6+
"allowBranch": "master"
7+
}
8+
},
9+
"packages": [
10+
"packages/*"
11+
],
12+
"version": "0.1.0"
13+
}

package.json

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"version": "0.1.0",
3+
"private": true,
4+
"engines": {
5+
"yarn": "^1.10.1"
6+
},
7+
"workspaces": [
8+
"packages/*"
9+
],
10+
"resolutions": {
11+
"babel-core": "^7.0.0-bridge.0",
12+
"typescript": "^3.7.2"
13+
},
14+
"scripts": {
15+
"build": "node -r ts-node/register packages/types/scripts/generate.ts",
16+
"lint": "eslint --ext .js,.jsx,.ts,.tsx . && tsc --noEmit --pretty",
17+
"clean": "polkadot-dev-clean-build",
18+
"postinstall": "polkadot-dev-yarn-only",
19+
"test": "jest --testPathIgnorePatterns e2e"
20+
},
21+
"devDependencies": {
22+
"@babel/core": "^7.8.4",
23+
"@babel/register": "^7.8.3",
24+
"@babel/runtime": "^7.8.4",
25+
"@polkadot/dev": "^0.32.17",
26+
"@polkadot/ts": "^0.2.1",
27+
"jest": "^25.1.0",
28+
"ts-node": "^8.6.2"
29+
}
30+
}

0 commit comments

Comments
 (0)