Skip to content

Commit

Permalink
Upgrade ESLint and other plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
macalinao committed Feb 14, 2022
1 parent a8a6ff3 commit 7f19b03
Show file tree
Hide file tree
Showing 11 changed files with 245 additions and 255 deletions.
2 changes: 1 addition & 1 deletion .yarn/sdks/eslint/package.json
@@ -1,6 +1,6 @@
{
"name": "eslint",
"version": "8.8.0-sdk",
"version": "8.9.0-sdk",
"main": "./lib/api.js",
"type": "commonjs"
}
11 changes: 8 additions & 3 deletions .yarn/sdks/typescript/lib/tsserver.js
Expand Up @@ -85,7 +85,7 @@ const moduleWrapper = tsserver => {
// everything else is up to neovim
case `neovim`: {
str = normalize(resolved).replace(/\.zip\//, `.zip::`);
str = `zipfile:${str}`;
str = `zipfile://${str}`;
} break;

default: {
Expand All @@ -100,8 +100,7 @@ const moduleWrapper = tsserver => {

function fromEditorPath(str) {
switch (hostInfo) {
case `coc-nvim`:
case `neovim`: {
case `coc-nvim`: {
str = str.replace(/\.zip::/, `.zip/`);
// The path for coc-nvim is in format of /<pwd>/zipfile:/<pwd>/.yarn/...
// So in order to convert it back, we use .* to match all the thing
Expand All @@ -111,6 +110,12 @@ const moduleWrapper = tsserver => {
: str.replace(/^.*zipfile:/, ``);
} break;

case `neovim`: {
str = str.replace(/\.zip::/, `.zip/`);
// The path for neovim is in format of zipfile:///<pwd>/.yarn/...
return str.replace(/^zipfile:\/\//, ``);
} break;

case `vscode`:
default: {
return process.platform === `win32`
Expand Down
11 changes: 8 additions & 3 deletions .yarn/sdks/typescript/lib/tsserverlibrary.js
Expand Up @@ -85,7 +85,7 @@ const moduleWrapper = tsserver => {
// everything else is up to neovim
case `neovim`: {
str = normalize(resolved).replace(/\.zip\//, `.zip::`);
str = `zipfile:${str}`;
str = `zipfile://${str}`;
} break;

default: {
Expand All @@ -100,8 +100,7 @@ const moduleWrapper = tsserver => {

function fromEditorPath(str) {
switch (hostInfo) {
case `coc-nvim`:
case `neovim`: {
case `coc-nvim`: {
str = str.replace(/\.zip::/, `.zip/`);
// The path for coc-nvim is in format of /<pwd>/zipfile:/<pwd>/.yarn/...
// So in order to convert it back, we use .* to match all the thing
Expand All @@ -111,6 +110,12 @@ const moduleWrapper = tsserver => {
: str.replace(/^.*zipfile:/, ``);
} break;

case `neovim`: {
str = str.replace(/\.zip::/, `.zip/`);
// The path for neovim is in format of zipfile:///<pwd>/.yarn/...
return str.replace(/^zipfile:\/\//, ``);
} break;

case `vscode`:
default: {
return process.platform === `win32`
Expand Down
10 changes: 5 additions & 5 deletions package.json
Expand Up @@ -19,27 +19,27 @@
"@saberhq/eslint-config-react": "*",
"@size-limit/file": "^7.0.8",
"@size-limit/webpack": "^7.0.8",
"@solana/web3.js": "^1.33.0",
"@solana/web3.js": "^1.34.0",
"@types/babel__core": "^7.1.18",
"@types/babel__preset-env": "^7.9.2",
"@types/bn.js": "^5.1.0",
"@types/bs58": "^4.0.1",
"@types/jest": "^27.4.0",
"@types/node": "^17.0.16",
"@types/node": "^17.0.17",
"@types/react": "^17.0.39",
"@types/source-map-support": "^0.5.4",
"@yarnpkg/doctor": "^3.1.1-rc.1",
"@yarnpkg/doctor": "^3.1.1-rc.2",
"bn.js": "^5.2.0",
"bs58": "^4.0.1",
"buffer": "^6.0.3",
"eslint": "^8.8.0",
"eslint": "^8.9.0",
"eslint-import-resolver-node": "^0.3.6",
"eslint-plugin-import": "^2.25.4",
"husky": "^7.0.4",
"jest": "^27.5.1",
"jsbi": "^4.1.0",
"lerna": "^4.0.0",
"lint-staged": "^12.3.3",
"lint-staged": "^12.3.4",
"prettier": "^2.5.1",
"react": "^17.0.2",
"size-limit": "^7.0.8",
Expand Down
2 changes: 1 addition & 1 deletion packages/anchor-contrib/package.json
Expand Up @@ -23,7 +23,7 @@
},
"devDependencies": {
"@project-serum/anchor": "^0.20.1",
"@solana/web3.js": "^1.33.0",
"@solana/web3.js": "^1.34.0",
"@types/lodash.camelcase": "^4.3.6",
"@types/lodash.mapvalues": "^4.6.6",
"bn.js": "^5.2.0"
Expand Down
4 changes: 2 additions & 2 deletions packages/chai-solana/package.json
Expand Up @@ -28,7 +28,7 @@
"@saberhq/solana-contrib": "^1.12.42",
"@saberhq/token-utils": "^1.12.42",
"@types/chai": "^4.3.0",
"@types/chai-as-promised": "^7.1.4",
"@types/chai-as-promised": "^7.1.5",
"@types/promise-retry": "^1.1.3",
"chai": "=4.3.4",
"chai-as-promised": "^7.1.1",
Expand All @@ -48,7 +48,7 @@
},
"devDependencies": {
"@project-serum/anchor": "^0.20.1",
"@solana/web3.js": "^1.33.0",
"@solana/web3.js": "^1.34.0",
"bn.js": "^5.2.0",
"jsbi": "^4.1.0"
}
Expand Down
4 changes: 2 additions & 2 deletions packages/solana-contrib/package.json
Expand Up @@ -32,10 +32,10 @@
"tslib": "^2.3.1"
},
"devDependencies": {
"@solana/web3.js": "^1.33.0",
"@solana/web3.js": "^1.34.0",
"@types/bn.js": "^5.1.0",
"@types/jest": "^27.4.0",
"@types/node": "^17.0.16",
"@types/node": "^17.0.17",
"bn.js": "^5.2.0"
},
"peerDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions packages/stableswap-sdk/package.json
Expand Up @@ -23,10 +23,10 @@
"node": ">=12.x"
},
"devDependencies": {
"@solana/web3.js": "^1.33.0",
"@solana/web3.js": "^1.34.0",
"@types/bn.js": "^5.1.0",
"@types/lodash.mapvalues": "^4.6.6",
"@types/node": "^17.0.16",
"@types/node": "^17.0.17",
"bn.js": "^5.2.0",
"jsbi": "^4.1.0"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/token-utils/package.json
Expand Up @@ -30,7 +30,7 @@
],
"devDependencies": {
"@saberhq/tsconfig": "^1.12.42",
"@solana/web3.js": "^1.33.0",
"@solana/web3.js": "^1.34.0",
"@types/bn.js": "^5.1.0",
"jsbi": "^4.1.0"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/use-solana/package.json
Expand Up @@ -12,10 +12,10 @@
"prepublishOnly": "npm run build"
},
"devDependencies": {
"@solana/web3.js": "^1.33.0",
"@solana/web3.js": "^1.34.0",
"@types/bn.js": "^5.1.0",
"@types/bs58": "^4.0.1",
"@types/node": "^17.0.16",
"@types/node": "^17.0.17",
"@types/react": "^17.0.39",
"bn.js": "^5.2.0",
"react": "^17.0.2"
Expand Down

0 comments on commit 7f19b03

Please sign in to comment.