Skip to content

Commit

Permalink
Attempt update
Browse files Browse the repository at this point in the history
  • Loading branch information
andyw8 committed Jul 31, 2024
1 parent b05e7ae commit 777b555
Show file tree
Hide file tree
Showing 3 changed files with 654 additions and 806 deletions.
53 changes: 53 additions & 0 deletions vscode/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
import tsParser from "@typescript-eslint/parser";
import path from "node:path";
import { fileURLToPath } from "node:url";
import js from "@eslint/js";
import { FlatCompat } from "@eslint/eslintrc";

const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
const compat = new FlatCompat({
baseDirectory: __dirname,
recommendedConfig: js.configs.recommended,
allConfig: js.configs.all
});

export default [...compat.extends(
"plugin:@shopify/typescript",
"plugin:@shopify/typescript-type-checking",
"plugin:@shopify/prettier",
), {
languageOptions: {
parser: tsParser,
ecmaVersion: 5,
sourceType: "script",

parserOptions: {
project: "tsconfig.json",
},
},

settings: {
"import/resolver": {
typescript: {
project: "tsconfig.json",
},
},
},

rules: {
"@typescript-eslint/no-floating-promises": "error",
"consistent-return": "off",
"no-warning-comments": "off",
"no-console": "warn",
"@shopify/no-debugger": "warn",
"no-template-curly-in-string": "warn",
eqeqeq: "error",
"no-invalid-this": "error",
"no-lonely-if": "error",

"max-len": ["error", {
code: 120,
}],
},
}];
9 changes: 6 additions & 3 deletions vscode/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -643,6 +643,8 @@
},
"devDependencies": {
"@babel/core": "^7.24.9",
"@eslint/eslintrc": "^3.1.0",
"@eslint/js": "^9.8.0",
"@shopify/eslint-plugin": "^46.0.0",
"@shopify/prettier-config": "^1.1.2",
"@types/glob": "^8.1.0",
Expand All @@ -655,19 +657,20 @@
"@vscode/test-electron": "^2.4.1",
"@vscode/vsce": "^2.31.1",
"esbuild": "^0.23.0",
"eslint": "^8.57.0",
"eslint": "^9.00.0",
"eslint-import-resolver-typescript": "^3.6.1",
"eslint-plugin-prettier": "^5.2.1",
"glob": "^11.0.0",
"mocha": "^10.7.0",
"ovsx": "^0.9.1",
"prettier": "^3.3.3",
"typescript": "^5.5.3",
"sinon": "^18.0.0",
"typescript": "^5.5.3",
"vscode-oniguruma": "^2.0.1",
"vscode-textmate": "^9.1.0"
},
"dependencies": {
"vscode-languageclient": "^9.0.1"
"vscode-languageclient": "^9.0.1",
"ws": ">= 7.4.6"
}
}
Loading

0 comments on commit 777b555

Please sign in to comment.