Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Arrow function style #549

Closed
wants to merge 13 commits into from
7 changes: 6 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"browser": true,
"node": false
},
"plugins": ["deprecation", "cypress", "jest", "simple-import-sort", "@typescript-eslint"],
"plugins": ["deprecation", "cypress", "jest", "prefer-arrow", "simple-import-sort", "@typescript-eslint"],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
Expand All @@ -18,8 +18,13 @@
"plugin:svelte/prettier"
],
"rules": {
"arrow-body-style": ["error", "as-needed"],
"deprecation/deprecation": "warn",
"no-warning-comments": "warn",
"prefer-arrow/prefer-arrow-functions": [
"error",
{ "allowStandaloneDeclarations": true }
],
"simple-import-sort/imports": "error",
"simple-import-sort/exports": "error",
"@typescript-eslint/array-type": ["error", { "default": "generic" }],
Expand Down
22 changes: 11 additions & 11 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,25 @@ const filter = require("gulp-filter");
const replace = require("gulp-replace");
const webpack = require("webpack-stream");

gulp.task("build:appsscript", function () {
return gulp.src("src/appsscript.json").pipe(gulp.dest("dist/"));
});
gulp.task("build:appsscript", () =>
gulp.src("src/appsscript.json").pipe(gulp.dest("dist/"))
);

gulp.task("build:frontend", function () {
return gulp
gulp.task("build:frontend", () =>
gulp
.src("src/frontend/index.ts")
.pipe(webpack(require("./frontend.webpack.config.js")(undefined, {})))
.pipe(filter(["index.html"]))
.pipe(replace("\u0085", "\\u0085"))
.pipe(gulp.dest("dist/"));
});
.pipe(gulp.dest("dist/"))
);

gulp.task("build:backend", function () {
return gulp
gulp.task("build:backend", () =>
gulp
.src("src/backend/index.ts")
.pipe(webpack(require("./backend.webpack.config.js")))
.pipe(gulp.dest("dist/"));
});
.pipe(gulp.dest("dist/"))
);

gulp.task(
"build",
Expand Down
Loading