Skip to content

Commit c3c1a2f

Browse files
Disable eslint formatting rules (prettier wins).
1 parent 75a131c commit c3c1a2f

File tree

5 files changed

+44
-106
lines changed

5 files changed

+44
-106
lines changed

.eslintrc.js

+10-18
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,12 @@ module.exports = {
55
sourceType: "module",
66
},
77
plugins: ["@typescript-eslint/eslint-plugin"],
8-
extends: [
9-
"plugin:@typescript-eslint/eslint-recommended",
10-
"plugin:@typescript-eslint/recommended",
11-
"prettier"
12-
],
8+
extends: ["plugin:@typescript-eslint/eslint-recommended", "plugin:@typescript-eslint/recommended", "prettier"],
139
root: true,
1410
env: {
15-
node: true
11+
node: true,
1612
},
17-
ignorePatterns: [
18-
".eslintrc.js",
19-
"node_modules",
20-
"out",
21-
"out-tests",
22-
"out-browser",
23-
"out-browser-tests",
24-
],
13+
ignorePatterns: [".eslintrc.js", "node_modules", "out", "out-tests", "out-browser", "out-browser-tests"],
2514
rules: {
2615
"@typescript-eslint/interface-name-prefix": "off",
2716
"@typescript-eslint/explicit-function-return-type": "off",
@@ -34,10 +23,13 @@ module.exports = {
3423
"@typescript-eslint/no-namespace": "warn",
3524
"@typescript-eslint/no-var-requires": "warn",
3625
"@typescript-eslint/no-empty-function": "off",
37-
"@typescript-eslint/no-unused-vars": ["warn", {
38-
"argsIgnorePattern": "^_",
39-
"varsIgnorePattern": "^_"
40-
}],
26+
"@typescript-eslint/no-unused-vars": [
27+
"warn",
28+
{
29+
argsIgnorePattern: "^_",
30+
varsIgnorePattern: "^_",
31+
},
32+
],
4133
"prefer-const": "off",
4234
},
4335
};

.vscode/settings.json

+9-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,10 @@
11
{
2-
}
2+
"editor.formatOnSave": true,
3+
"editor.formatOnSaveMode": "file",
4+
"[javascript]": {
5+
"editor.defaultFormatter": "esbenp.prettier-vscode"
6+
},
7+
"[typescript]": {
8+
"editor.defaultFormatter": "esbenp.prettier-vscode"
9+
}
10+
}

package-lock.json

+18-79
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+2-3
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,7 @@
5454
"@typescript-eslint/eslint-plugin": "5.44.0",
5555
"@typescript-eslint/parser": "5.44.0",
5656
"eslint": "8.28.0",
57-
"eslint-config-prettier": "8.5.0",
58-
"eslint-plugin-prettier": "3.4.1",
59-
"prettier": "2.2.1"
57+
"eslint-config-prettier": "9.1.0",
58+
"prettier": "3.2.4"
6059
}
6160
}

src/tokenOperations/tokenOperationsFactory.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ interface IIssueSemiFungibleArgs extends IBaseArgs {
6363
canAddSpecialRoles: boolean;
6464
}
6565

66-
interface IIssueNonFungibleArgs extends IIssueSemiFungibleArgs { }
66+
interface IIssueNonFungibleArgs extends IIssueSemiFungibleArgs {}
6767

6868
interface IRegisterMetaESDT extends IIssueSemiFungibleArgs {
6969
numDecimals: number;
@@ -210,7 +210,7 @@ export class TokenOperationsFactory {
210210
utf8ToHex("canUpgrade"),
211211
args.canUpgrade ? this.trueAsHex : this.falseAsHex,
212212
utf8ToHex("canAddSpecialRoles"),
213-
args.canAddSpecialRoles ? this.trueAsHex : this.falseAsHex
213+
args.canAddSpecialRoles ? this.trueAsHex : this.falseAsHex,
214214
];
215215

216216
return this.createTransaction({
@@ -254,7 +254,7 @@ Once the token is registered, you can unset this role by calling "unsetBurnRoleG
254254
utf8ToHex("canUpgrade"),
255255
args.canUpgrade ? this.trueAsHex : this.falseAsHex,
256256
utf8ToHex("canAddSpecialRoles"),
257-
args.canAddSpecialRoles ? this.trueAsHex : this.falseAsHex
257+
args.canAddSpecialRoles ? this.trueAsHex : this.falseAsHex,
258258
];
259259

260260
return this.createTransaction({
@@ -289,7 +289,7 @@ Once the token is registered, you can unset this role by calling "unsetBurnRoleG
289289
utf8ToHex("canUpgrade"),
290290
args.canUpgrade ? this.trueAsHex : this.falseAsHex,
291291
utf8ToHex("canAddSpecialRoles"),
292-
args.canAddSpecialRoles ? this.trueAsHex : this.falseAsHex
292+
args.canAddSpecialRoles ? this.trueAsHex : this.falseAsHex,
293293
];
294294

295295
return this.createTransaction({
@@ -325,7 +325,7 @@ Once the token is registered, you can unset this role by calling "unsetBurnRoleG
325325
utf8ToHex("canUpgrade"),
326326
args.canUpgrade ? this.trueAsHex : this.falseAsHex,
327327
utf8ToHex("canAddSpecialRoles"),
328-
args.canAddSpecialRoles ? this.trueAsHex : this.falseAsHex
328+
args.canAddSpecialRoles ? this.trueAsHex : this.falseAsHex,
329329
];
330330

331331
return this.createTransaction({

0 commit comments

Comments
 (0)