Skip to content

Commit

Permalink
Code: eslint-plugin-importを追加 (#1233)
Browse files Browse the repository at this point in the history
  • Loading branch information
sevenc-nanashi authored Feb 24, 2023
1 parent eb11467 commit 382753d
Show file tree
Hide file tree
Showing 48 changed files with 1,579 additions and 138 deletions.
2 changes: 2 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ module.exports = {
"@vue/eslint-config-typescript",
"@vue/eslint-config-prettier",
],
plugins: ["import"],
parser: "vue-eslint-parser",
parserOptions: {
ecmaVersion: 2020,
Expand Down Expand Up @@ -50,6 +51,7 @@ module.exports = {
order: ["template", "script", "style"],
},
],
"import/order": "error",
},
overrides: [
{
Expand Down
4 changes: 2 additions & 2 deletions build/generateLicenses.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
/* eslint-disable @typescript-eslint/no-var-requires */

const process = require("process");
const { execFileSync } = require("child_process");
const fs = require("fs");
const yargs = require("yargs/yargs");
const { hideBin } = require("yargs/helpers");
const argv = yargs(hideBin(process.argv))
Expand All @@ -12,8 +14,6 @@ const argv = yargs(hideBin(process.argv))
.help()
.parse();

const { execFileSync } = require("child_process");
const fs = require("fs");
const tmp = require("tmp");

const isWindows = process.platform === "win32";
Expand Down
4 changes: 2 additions & 2 deletions build/mergeLicenses.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
/* eslint-disable @typescript-eslint/no-var-requires */

const process = require("process");
const fs = require("fs");
const yargs = require("yargs/yargs");
const { hideBin } = require("yargs/helpers");

const argv = yargs(hideBin(process.argv))
.option("output_path", {
alias: "o",
Expand All @@ -17,8 +19,6 @@ const argv = yargs(hideBin(process.argv))
.help()
.parse();

const fs = require("fs");

const inputPathList =
typeof argv.input_path === "string" ? [argv.input_path] : argv.input_path;

Expand Down
Loading

0 comments on commit 382753d

Please sign in to comment.