Skip to content

Commit

Permalink
Auto stash before merge of "beta" and "origin/beta"
Browse files Browse the repository at this point in the history
lint fixed
  • Loading branch information
arietrouw committed Jan 10, 2024
1 parent 4c02a08 commit d96267e
Show file tree
Hide file tree
Showing 5 changed files with 350 additions and 236 deletions.
104 changes: 0 additions & 104 deletions .eslintrc

This file was deleted.

82 changes: 82 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
const finalConfig = {
env: {
es2024: true
},
'extends': ['@xylabs', 'plugin:unicorn/recommended'],
parser: '@typescript-eslint/parser',
parserOptions: { ecmaVersion: 'latest', project: null, sourceType: 'module', tsconfigRootDir: null },
"root": true,
"ignorePatterns": [
"dist",
"node_modules",
"docs",
"coverage",
"docker",
"nftData",
"testData.json",
"*.stories.*",
"swagger.json",
".yarn",
".*"
],
"rules": {
"unicorn/filename-case": ["off"],
"unicorn/no-nested-ternary": ["off"],
"unicorn/no-array-callback-reference": ["off"],
"unicorn/prevent-abbreviations": ["off"],
"unicorn/no-null": ["off"],
"unicorn/number-literal-case": ["off"],
"unicorn/no-await-expression-member": ["off"],
"unicorn/new-for-builtins": ["off"],
"unicorn/catch-error-name": ["off"],
"unicorn/prefer-top-level-await": ["off"],
"unicorn/consistent-function-scoping": ["off"],
"unicorn/prefer-module": ["off"],
"import/no-default-export": ["off"],
"@typescript-eslint/explicit-member-accessibility": ["warn", { "accessibility": "no-public" }],
"no-restricted-imports": [
"warn",
{
"paths": [
"@xyo-network/archivist",
"@xyo-network/bridge",
"@xyo-network/core",
"@xyo-network/diviner",
"@xyo-network/module",
"@xyo-network/modules",
"@xyo-network/node",
"@xyo-network/sdk",
"@xyo-network/plugins",
"@xyo-network/protocol",
"@xyo-network/sentinel",
"@xyo-network/witness",
"@xyo-network/core-payload-plugins",
"react-player",
"filepond",
"aos",
"react-icons",
".",
"..",
"../..",
"../../..",
"../../../..",
"../../../../..",
"../../../../../..",
"../../../../../../.."
]
}
],
"import/no-internal-modules": [
"warn", {
"allow": [
"source-map-support/*",
"lodash/*",
"aws-sdk/**/*",
"types/*"
]
}
]
}
}

module.exports = finalConfig
15 changes: 8 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
"@xyo-network/node-app": "^2.83.0",
"axios": "^1.6.5",
"body-parser": "^1.20.2",
"ethers": "^6.9.2",
"express": "^4.18.2",
"express-mung": "^0.5.1",
"http-status-codes": "^2.3.0",
Expand All @@ -53,16 +52,17 @@
},
"devDependencies": {
"@babel/core": "^7.23.7",
"@babel/preset-env": "^7.23.7",
"@babel/preset-env": "^7.23.8",
"@types/jest": "^29.5.11",
"@types/node": "^20.10.6",
"@types/node": "^20.10.8",
"@types/source-map-support": "0.5.10",
"@xylabs/eslint-config": "^3.2.10",
"@xylabs/ts-scripts-yarn3": "^3.2.28",
"@xylabs/tsconfig": "^3.2.28",
"@xylabs/eslint-config": "^3.2.29",
"@xylabs/ts-scripts-yarn3": "^3.2.29",
"@xylabs/tsconfig": "^3.2.29",
"babel-jest": "^29.7.0",
"depcheck": "^1.4.7",
"eslint": "~8.56.0",
"eslint-plugin-unicorn": "^50.0.1",
"jest": "^29.7.0",
"jest-extended": "^4.0.2",
"nodemon": "^3.0.2",
Expand All @@ -82,5 +82,6 @@
"volta": {
"node": "18.17.1",
"yarn": "1.22.19"
}
},
"type": "commonjs"
}
17 changes: 15 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
{
"extends": "@xylabs/tsconfig"
}
"compilerOptions": {
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"typeRoots": []
},
"exclude": ["./node_modules", "./**/node_modules", "./dist", "./**/dist", "./**/docs", ".*"],
"extends": "@xylabs/tsconfig",
"ts-node": {
"compilerOptions": {
"module": "ESNext"
},
"files": true,
"transpileOnly": true
}
}
Loading

0 comments on commit d96267e

Please sign in to comment.