mirror of
https://github.com/pezkuwichain/phishing.git
synced 2026-06-14 14:21:04 +00:00
Use tsconfig references (#802)
* Use tsconfig references * Adjust * tesconfig.eslint.json * Bump deps
This commit is contained in:
+2
-8
@@ -6,18 +6,12 @@ const base = require('@polkadot/dev/config/eslint.cjs');
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
...base,
|
...base,
|
||||||
ignorePatterns: [
|
ignorePatterns: [
|
||||||
'.eslintrc.js',
|
...base.ignorePatterns
|
||||||
'.github/**',
|
|
||||||
'.vscode/**',
|
|
||||||
'.yarn/**',
|
|
||||||
'**/build/*',
|
|
||||||
'**/coverage/*',
|
|
||||||
'**/node_modules/*'
|
|
||||||
],
|
],
|
||||||
parserOptions: {
|
parserOptions: {
|
||||||
...base.parserOptions,
|
...base.parserOptions,
|
||||||
project: [
|
project: [
|
||||||
'./tsconfig.json'
|
'./tsconfig.eslint.json'
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
rules: {
|
rules: {
|
||||||
|
|||||||
+2
-2
@@ -32,8 +32,8 @@
|
|||||||
"dnslink-cloudflare": "^3.0.0"
|
"dnslink-cloudflare": "^3.0.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/core": "^7.16.0",
|
"@babel/core": "^7.16.5",
|
||||||
"@polkadot/dev": "^0.63.39",
|
"@polkadot/dev": "^0.64.3",
|
||||||
"@types/jest": "^27.0.3"
|
"@types/jest": "^27.0.3"
|
||||||
},
|
},
|
||||||
"resolutions": {
|
"resolutions": {
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
"version": "0.6.533",
|
"version": "0.6.533",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.16.3",
|
"@babel/runtime": "^7.16.5",
|
||||||
"@polkadot/util": "^8.1.2",
|
"@polkadot/util": "^8.1.2",
|
||||||
"@polkadot/util-crypto": "^8.1.2",
|
"@polkadot/util-crypto": "^8.1.2",
|
||||||
"@polkadot/x-fetch": "^8.1.2"
|
"@polkadot/x-fetch": "^8.1.2"
|
||||||
|
|||||||
@@ -0,0 +1,10 @@
|
|||||||
|
{
|
||||||
|
"extends": "../../tsconfig.base.json",
|
||||||
|
"compilerOptions": {
|
||||||
|
"baseUrl": "..",
|
||||||
|
"outDir": "./build",
|
||||||
|
"rootDir": "./src",
|
||||||
|
"resolveJsonModule": true
|
||||||
|
},
|
||||||
|
"references": []
|
||||||
|
}
|
||||||
+4
-5
@@ -1,15 +1,14 @@
|
|||||||
{
|
{
|
||||||
"extends": "@polkadot/dev/config/tsconfig.json",
|
"extends": "@polkadot/dev/config/tsconfig.json",
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"composite": true,
|
"composite": true,
|
||||||
"paths": {
|
"paths": {
|
||||||
"@polkadot/phishing": ["phishing/src"],
|
"@polkadot/phishing": ["phishing/src"],
|
||||||
"@polkadot/phishing/*": ["phishing/src/*"]
|
"@polkadot/phishing/*": ["phishing/src/*"]
|
||||||
},
|
},
|
||||||
"resolveJsonModule": true,
|
|
||||||
"skipLibCheck": true,
|
"skipLibCheck": true,
|
||||||
"typeRoots": [
|
"typeRoots": [
|
||||||
"./node_modules/@types"
|
"./node_modules/@types"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,8 @@
|
|||||||
|
{
|
||||||
|
"extends": "./tsconfig.base.json",
|
||||||
|
"compilerOptions": {
|
||||||
|
"baseUrl": "./packages"
|
||||||
|
},
|
||||||
|
"include": ["packages/**/src/**/*", "scripts/*"],
|
||||||
|
"exclue": ["**/node_modules/**/*"]
|
||||||
|
}
|
||||||
+6
-7
@@ -1,10 +1,9 @@
|
|||||||
{
|
{
|
||||||
"extends": "./tsconfig.base.json",
|
|
||||||
"exclude": [
|
|
||||||
"build/**/*",
|
|
||||||
"**/build/**/*"
|
|
||||||
],
|
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"baseUrl": "./packages"
|
"composite": true
|
||||||
}
|
},
|
||||||
|
"files": [],
|
||||||
|
"references": [
|
||||||
|
{ "path": "./packages/phishing" }
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user