From cfdeac600469305a7eb024e814ae60c4a0e15895 Mon Sep 17 00:00:00 2001 From: terwer Date: Sat, 13 May 2023 18:54:35 +0800 Subject: [PATCH] feat(eslint-config-custom): seperate different platform rules --- tools/eslint-config-custom/README.md | 25 +++++-- .../eslint-config-custom/astro/.eslintrc.cjs | 37 ++++++++++ .../astro/.prettierignore | 11 +++ .../astro/.prettierrc.cjs | 31 ++++++++ tools/eslint-config-custom/index.cjs | 70 ------------------- tools/eslint-config-custom/next/.eslintrc.cjs | 68 ++++++++++++++++++ .../eslint-config-custom/next/.prettierignore | 11 +++ .../eslint-config-custom/next/.prettierrc.cjs | 31 ++++++++ tools/eslint-config-custom/package.json | 7 +- .../eslint-config-custom/svelte/.eslintrc.cjs | 38 ++++++++++ .../svelte/.prettierignore | 11 +++ .../svelte/.prettierrc.cjs | 31 ++++++++ .../typescript/.prettierignore | 11 +++ .../typescript/.prettierrc.cjs | 30 ++++++++ .../eslint-config-custom/typescript/index.cjs | 26 +++++++ tools/eslint-config-custom/vue/.eslintrc.cjs | 31 ++++++++ .../eslint-config-custom/vue/.prettierignore | 11 +++ .../eslint-config-custom/vue/.prettierrc.cjs | 31 ++++++++ 18 files changed, 434 insertions(+), 77 deletions(-) create mode 100644 tools/eslint-config-custom/astro/.eslintrc.cjs create mode 100644 tools/eslint-config-custom/astro/.prettierignore create mode 100644 tools/eslint-config-custom/astro/.prettierrc.cjs delete mode 100644 tools/eslint-config-custom/index.cjs create mode 100644 tools/eslint-config-custom/next/.eslintrc.cjs create mode 100644 tools/eslint-config-custom/next/.prettierignore create mode 100644 tools/eslint-config-custom/next/.prettierrc.cjs create mode 100644 tools/eslint-config-custom/svelte/.eslintrc.cjs create mode 100644 tools/eslint-config-custom/svelte/.prettierignore create mode 100644 tools/eslint-config-custom/svelte/.prettierrc.cjs create mode 100644 tools/eslint-config-custom/typescript/.prettierignore create mode 100644 tools/eslint-config-custom/typescript/.prettierrc.cjs create mode 100644 tools/eslint-config-custom/typescript/index.cjs create mode 100644 tools/eslint-config-custom/vue/.eslintrc.cjs create mode 100644 tools/eslint-config-custom/vue/.prettierignore create mode 100644 tools/eslint-config-custom/vue/.prettierrc.cjs diff --git a/tools/eslint-config-custom/README.md b/tools/eslint-config-custom/README.md index 5712649c..c6ef99c6 100644 --- a/tools/eslint-config-custom/README.md +++ b/tools/eslint-config-custom/README.md @@ -1,18 +1,35 @@ # eslint-config-custom -common eslint config +custom config for eslint, support typescript, vue, astro, svelte, next etc.default is typescript ## Plugins ```bash +## eslint pnpm add -D eslint -F eslint-config-custom pnpm add -D eslint-plugin-vue -F eslint-config-custom pnpm add -D astro-eslint-parser -F eslint-config-custom pnpm add -D eslint-plugin-svelte -F eslint-config-custom + +## prettier +pnpm add -D prettier -F eslint-config-custom +pnpm add -D eslint-plugin-svelte -F eslint-config-custom +pnpm add -D prettier-plugin-svelte -F eslint-config-custom +``` + +## Usage + +``` +## default +typescript - ts rule +vue - vue rile +astro - astro rule +svelte - svelte rule +next - next rule ``` ## Thanks -[eslint-plugin-vue](https://github.com/vuejs/eslint-plugin-vue) -[astro-eslint-parser](https://github.com/ota-meshi/astro-eslint-parser) -[eslint-plugin-svelte](https://github.com/sveltejs/eslint-plugin-svelte) \ No newline at end of file +- [eslint-plugin-vue](https://github.com/vuejs/eslint-plugin-vue) +- [astro-eslint-parser](https://github.com/ota-meshi/astro-eslint-parser) +- [eslint-plugin-svelte](https://github.com/sveltejs/eslint-plugin-svelte) \ No newline at end of file diff --git a/tools/eslint-config-custom/astro/.eslintrc.cjs b/tools/eslint-config-custom/astro/.eslintrc.cjs new file mode 100644 index 00000000..22edf036 --- /dev/null +++ b/tools/eslint-config-custom/astro/.eslintrc.cjs @@ -0,0 +1,37 @@ +module.exports = { + extends: [ + "eslint:recommended", + "plugin:@typescript-eslint/recommended", + "turbo", + "prettier", + ], + + parser: "@typescript-eslint/parser", + + overrides: [ + { + files: ["*.astro"], + parser: "astro-eslint-parser", + // Parse the script in `.astro` as TypeScript by adding the following configuration. + parserOptions: { + parser: "@typescript-eslint/parser", + }, + }, + ], + + plugins: ["@typescript-eslint", "prettier"], + + rules: { + // Note: you must disable the base rule as it can report incorrect errors + semi: "off", + quotes: "off", + "no-undef": "off", + "@typescript-eslint/no-var-requires": "off", + "@typescript-eslint/no-this-alias": "off", + "@typescript-eslint/no-non-null-assertion": "off", + "@typescript-eslint/no-unused-vars": "off", + "@typescript-eslint/no-explicit-any": "off", + "turbo/no-undeclared-env-vars": "off", + "prettier/prettier": "error", + }, +} \ No newline at end of file diff --git a/tools/eslint-config-custom/astro/.prettierignore b/tools/eslint-config-custom/astro/.prettierignore new file mode 100644 index 00000000..8f9d2dfa --- /dev/null +++ b/tools/eslint-config-custom/astro/.prettierignore @@ -0,0 +1,11 @@ +# platform + +# Ignore artifacts: +dist +node_modules + +# Ignore all dts files: +*.d.ts + +# lib +/pnpm-lock.yaml diff --git a/tools/eslint-config-custom/astro/.prettierrc.cjs b/tools/eslint-config-custom/astro/.prettierrc.cjs new file mode 100644 index 00000000..e75550a8 --- /dev/null +++ b/tools/eslint-config-custom/astro/.prettierrc.cjs @@ -0,0 +1,31 @@ +/* + * Copyright (c) 2023, Terwer . All rights reserved. + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * This code is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 2 only, as + * published by the Free Software Foundation. Terwer designates this + * particular file as subject to the "Classpath" exception as provided + * by Terwer in the LICENSE file that accompanied this code. + * + * This code is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + * version 2 for more details (a copy is included in the LICENSE file that + * accompanied this code). + * + * You should have received a copy of the GNU General Public License version + * 2 along with this work; if not, write to the Free Software Foundation, + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. + * + * Please contact Terwer, Shenzhen, Guangdong, China, youweics@163.com + * or visit www.terwer.space if you need additional information or have any + * questions. + */ + +module.exports = { + semi: false, + singleQuote: false, + printWidth: 120, + plugins: ["prettier-plugin-svelte"] +} diff --git a/tools/eslint-config-custom/index.cjs b/tools/eslint-config-custom/index.cjs deleted file mode 100644 index b07a1133..00000000 --- a/tools/eslint-config-custom/index.cjs +++ /dev/null @@ -1,70 +0,0 @@ -module.exports = { - extends: [ - "eslint:recommended", - "plugin:@typescript-eslint/recommended", - "plugin:vue/vue3-recommended", - "plugin:svelte/recommended", - "turbo", - "prettier", - ], - - // 这里是next的配置支持,需要在子项目安装下列依赖 - // pnpm add @babel/core@^7.0.0 -D - // pnpm add next@^13.1.1 - // pnpm add react@18.2.0 - // pnpm add react-dom@18.2.0 - // - // 然后再本项目安装以下依赖 - // pnpm add eslint-plugin-react -D - // pnpm add eslint-config-next -D - // - // extends: ["next"], - // rules: { - // "@next/next/no-html-link-for-pages": "off", - // }, - - // https://eslint.vuejs.org/user-guide/#how-to-use-a-custom-parser - parser: "vue-eslint-parser", - parserOptions: { - parser: "@typescript-eslint/parser", - // 下面一行next项目可用,参考web - // babelOptions: { - // presets: [require.resolve("next/babel")], - // }, - }, - - overrides: [ - { - files: ["*.astro"], - parser: "astro-eslint-parser", - // Parse the script in `.astro` as TypeScript by adding the following configuration. - parserOptions: { - parser: "@typescript-eslint/parser", - }, - }, - { - files: ["*.svelte"], - parser: "svelte-eslint-parser", - // Parse the script in `.svelte` as TypeScript by adding the following configuration. - parserOptions: { - parser: "@typescript-eslint/parser", - }, - }, - ], - - plugins: ["@typescript-eslint", "vue", "prettier"], - - rules: { - // Note: you must disable the base rule as it can report incorrect errors - semi: "off", - quotes: "off", - "no-undef": "off", - "@typescript-eslint/no-var-requires": "off", - "@typescript-eslint/no-this-alias": "off", - "@typescript-eslint/no-non-null-assertion": "off", - "@typescript-eslint/no-unused-vars": "off", - "@typescript-eslint/no-explicit-any": "off", - "turbo/no-undeclared-env-vars": "off", - "prettier/prettier": "error", - }, -} diff --git a/tools/eslint-config-custom/next/.eslintrc.cjs b/tools/eslint-config-custom/next/.eslintrc.cjs new file mode 100644 index 00000000..8c13b5b6 --- /dev/null +++ b/tools/eslint-config-custom/next/.eslintrc.cjs @@ -0,0 +1,68 @@ +/* + * Copyright (c) 2023, Terwer . All rights reserved. + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * This code is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 2 only, as + * published by the Free Software Foundation. Terwer designates this + * particular file as subject to the "Classpath" exception as provided + * by Terwer in the LICENSE file that accompanied this code. + * + * This code is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + * version 2 for more details (a copy is included in the LICENSE file that + * accompanied this code). + * + * You should have received a copy of the GNU General Public License version + * 2 along with this work; if not, write to the Free Software Foundation, + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. + * + * Please contact Terwer, Shenzhen, Guangdong, China, youweics@163.com + * or visit www.terwer.space if you need additional information or have any + * questions. + */ + +// 这里是next的配置支持,需要在子项目安装下列依赖 +// pnpm add @babel/core@^7.0.0 -D +// pnpm add next@^13.1.1 +// pnpm add react@18.2.0 +// pnpm add react-dom@18.2.0 +// +// 然后再本项目安装以下依赖 +// pnpm add eslint-plugin-react -D +// pnpm add eslint-config-next -D + +module.exports = { + extends: [ + "eslint:recommended", + "plugin:@typescript-eslint/recommended", + "turbo", + "next", + "prettier", + ], + + parser: "@typescript-eslint/parser", + parserOptions: { + parser: "@typescript-eslint/parser", + babelOptions: { + presets: [require.resolve("next/babel")], + }, + }, + + plugins: ["@typescript-eslint", "prettier"], + + rules: { + // Note: you must disable the base rule as it can report incorrect errors + semi: "off", + quotes: "off", + "no-undef": "off", + "@typescript-eslint/no-var-requires": "off", + "@typescript-eslint/no-this-alias": "off", + "@typescript-eslint/no-non-null-assertion": "off", + "@typescript-eslint/no-unused-vars": "off", + "@typescript-eslint/no-explicit-any": "off", + "turbo/no-undeclared-env-vars": "off", + "prettier/prettier": "error", + }, +} diff --git a/tools/eslint-config-custom/next/.prettierignore b/tools/eslint-config-custom/next/.prettierignore new file mode 100644 index 00000000..8f9d2dfa --- /dev/null +++ b/tools/eslint-config-custom/next/.prettierignore @@ -0,0 +1,11 @@ +# platform + +# Ignore artifacts: +dist +node_modules + +# Ignore all dts files: +*.d.ts + +# lib +/pnpm-lock.yaml diff --git a/tools/eslint-config-custom/next/.prettierrc.cjs b/tools/eslint-config-custom/next/.prettierrc.cjs new file mode 100644 index 00000000..e75550a8 --- /dev/null +++ b/tools/eslint-config-custom/next/.prettierrc.cjs @@ -0,0 +1,31 @@ +/* + * Copyright (c) 2023, Terwer . All rights reserved. + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * This code is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 2 only, as + * published by the Free Software Foundation. Terwer designates this + * particular file as subject to the "Classpath" exception as provided + * by Terwer in the LICENSE file that accompanied this code. + * + * This code is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + * version 2 for more details (a copy is included in the LICENSE file that + * accompanied this code). + * + * You should have received a copy of the GNU General Public License version + * 2 along with this work; if not, write to the Free Software Foundation, + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. + * + * Please contact Terwer, Shenzhen, Guangdong, China, youweics@163.com + * or visit www.terwer.space if you need additional information or have any + * questions. + */ + +module.exports = { + semi: false, + singleQuote: false, + printWidth: 120, + plugins: ["prettier-plugin-svelte"] +} diff --git a/tools/eslint-config-custom/package.json b/tools/eslint-config-custom/package.json index a8bd14bd..eb3335ad 100644 --- a/tools/eslint-config-custom/package.json +++ b/tools/eslint-config-custom/package.json @@ -1,8 +1,8 @@ { "name": "@terwer/eslint-config-custom", - "version": "1.1.0", - "description": "custom config for eslint", - "main": "index.cjs", + "version": "1.2.0", + "description": "custom config for eslint, support typescript, vue, astro, svelte, next etc.default is typescript", + "main": "./typescript/index.cjs", "license": "GPL", "peerDependencies": { "@nuxt/eslint-config": "^0.1.1", @@ -15,6 +15,7 @@ "eslint-plugin-svelte": "^2.28.0", "eslint-plugin-vue": "^9.11.0", "prettier": "^2.8.7", + "prettier-plugin-svelte": "^2.10.0", "typescript": "^5.0.4" }, "publishConfig": { diff --git a/tools/eslint-config-custom/svelte/.eslintrc.cjs b/tools/eslint-config-custom/svelte/.eslintrc.cjs new file mode 100644 index 00000000..a6c2dc64 --- /dev/null +++ b/tools/eslint-config-custom/svelte/.eslintrc.cjs @@ -0,0 +1,38 @@ +module.exports = { + extends: [ + "eslint:recommended", + "plugin:@typescript-eslint/recommended", + "plugin:svelte/recommended", + "turbo", + "prettier", + ], + + parser: "@typescript-eslint/parser", + + overrides: [ + { + files: ["*.svelte"], + parser: "svelte-eslint-parser", + // Parse the script in `.svelte` as TypeScript by adding the following configuration. + parserOptions: { + parser: "@typescript-eslint/parser", + }, + }, + ], + + plugins: ["@typescript-eslint", "prettier"], + + rules: { + // Note: you must disable the base rule as it can report incorrect errors + semi: ['error', 'never'], + quotes: ['error', 'double'], + "no-undef": "off", + "@typescript-eslint/no-var-requires": "off", + "@typescript-eslint/no-this-alias": "off", + "@typescript-eslint/no-non-null-assertion": "off", + "@typescript-eslint/no-unused-vars": "off", + "@typescript-eslint/no-explicit-any": "off", + "turbo/no-undeclared-env-vars": "off", + "prettier/prettier": "error", + }, +} diff --git a/tools/eslint-config-custom/svelte/.prettierignore b/tools/eslint-config-custom/svelte/.prettierignore new file mode 100644 index 00000000..8f9d2dfa --- /dev/null +++ b/tools/eslint-config-custom/svelte/.prettierignore @@ -0,0 +1,11 @@ +# platform + +# Ignore artifacts: +dist +node_modules + +# Ignore all dts files: +*.d.ts + +# lib +/pnpm-lock.yaml diff --git a/tools/eslint-config-custom/svelte/.prettierrc.cjs b/tools/eslint-config-custom/svelte/.prettierrc.cjs new file mode 100644 index 00000000..e75550a8 --- /dev/null +++ b/tools/eslint-config-custom/svelte/.prettierrc.cjs @@ -0,0 +1,31 @@ +/* + * Copyright (c) 2023, Terwer . All rights reserved. + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * This code is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 2 only, as + * published by the Free Software Foundation. Terwer designates this + * particular file as subject to the "Classpath" exception as provided + * by Terwer in the LICENSE file that accompanied this code. + * + * This code is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + * version 2 for more details (a copy is included in the LICENSE file that + * accompanied this code). + * + * You should have received a copy of the GNU General Public License version + * 2 along with this work; if not, write to the Free Software Foundation, + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. + * + * Please contact Terwer, Shenzhen, Guangdong, China, youweics@163.com + * or visit www.terwer.space if you need additional information or have any + * questions. + */ + +module.exports = { + semi: false, + singleQuote: false, + printWidth: 120, + plugins: ["prettier-plugin-svelte"] +} diff --git a/tools/eslint-config-custom/typescript/.prettierignore b/tools/eslint-config-custom/typescript/.prettierignore new file mode 100644 index 00000000..8f9d2dfa --- /dev/null +++ b/tools/eslint-config-custom/typescript/.prettierignore @@ -0,0 +1,11 @@ +# platform + +# Ignore artifacts: +dist +node_modules + +# Ignore all dts files: +*.d.ts + +# lib +/pnpm-lock.yaml diff --git a/tools/eslint-config-custom/typescript/.prettierrc.cjs b/tools/eslint-config-custom/typescript/.prettierrc.cjs new file mode 100644 index 00000000..eec8622f --- /dev/null +++ b/tools/eslint-config-custom/typescript/.prettierrc.cjs @@ -0,0 +1,30 @@ +/* + * Copyright (c) 2023, Terwer . All rights reserved. + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * This code is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 2 only, as + * published by the Free Software Foundation. Terwer designates this + * particular file as subject to the "Classpath" exception as provided + * by Terwer in the LICENSE file that accompanied this code. + * + * This code is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + * version 2 for more details (a copy is included in the LICENSE file that + * accompanied this code). + * + * You should have received a copy of the GNU General Public License version + * 2 along with this work; if not, write to the Free Software Foundation, + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. + * + * Please contact Terwer, Shenzhen, Guangdong, China, youweics@163.com + * or visit www.terwer.space if you need additional information or have any + * questions. + */ + +module.exports = { + semi: false, + singleQuote: false, + printWidth: 120 +} diff --git a/tools/eslint-config-custom/typescript/index.cjs b/tools/eslint-config-custom/typescript/index.cjs new file mode 100644 index 00000000..adaf0c2c --- /dev/null +++ b/tools/eslint-config-custom/typescript/index.cjs @@ -0,0 +1,26 @@ +module.exports = { + extends: [ + "eslint:recommended", + "plugin:@typescript-eslint/recommended", + "turbo", + "prettier", + ], + + parser: "@typescript-eslint/parser", + + plugins: ["@typescript-eslint", "prettier"], + + rules: { + // Note: you must disable the base rule as it can report incorrect errors + semi: "off", + quotes: "off", + "no-undef": "off", + "@typescript-eslint/no-var-requires": "off", + "@typescript-eslint/no-this-alias": "off", + "@typescript-eslint/no-non-null-assertion": "off", + "@typescript-eslint/no-unused-vars": "off", + "@typescript-eslint/no-explicit-any": "off", + "turbo/no-undeclared-env-vars": "off", + "prettier/prettier": "error", + }, +} \ No newline at end of file diff --git a/tools/eslint-config-custom/vue/.eslintrc.cjs b/tools/eslint-config-custom/vue/.eslintrc.cjs new file mode 100644 index 00000000..0a2fb7fb --- /dev/null +++ b/tools/eslint-config-custom/vue/.eslintrc.cjs @@ -0,0 +1,31 @@ +module.exports = { + extends: [ + "eslint:recommended", + "plugin:@typescript-eslint/recommended", + "plugin:vue/vue3-recommended", + "turbo", + "prettier", + ], + + // https://eslint.vuejs.org/user-guide/#how-to-use-a-custom-parser + parser: "vue-eslint-parser", + parserOptions: { + parser: "@typescript-eslint/parser", + }, + + plugins: ["@typescript-eslint", "vue", "prettier"], + + rules: { + // Note: you must disable the base rule as it can report incorrect errors + semi: "off", + quotes: "off", + "no-undef": "off", + "@typescript-eslint/no-var-requires": "off", + "@typescript-eslint/no-this-alias": "off", + "@typescript-eslint/no-non-null-assertion": "off", + "@typescript-eslint/no-unused-vars": "off", + "@typescript-eslint/no-explicit-any": "off", + "turbo/no-undeclared-env-vars": "off", + "prettier/prettier": "error", + }, +} \ No newline at end of file diff --git a/tools/eslint-config-custom/vue/.prettierignore b/tools/eslint-config-custom/vue/.prettierignore new file mode 100644 index 00000000..8f9d2dfa --- /dev/null +++ b/tools/eslint-config-custom/vue/.prettierignore @@ -0,0 +1,11 @@ +# platform + +# Ignore artifacts: +dist +node_modules + +# Ignore all dts files: +*.d.ts + +# lib +/pnpm-lock.yaml diff --git a/tools/eslint-config-custom/vue/.prettierrc.cjs b/tools/eslint-config-custom/vue/.prettierrc.cjs new file mode 100644 index 00000000..e75550a8 --- /dev/null +++ b/tools/eslint-config-custom/vue/.prettierrc.cjs @@ -0,0 +1,31 @@ +/* + * Copyright (c) 2023, Terwer . All rights reserved. + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * This code is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 2 only, as + * published by the Free Software Foundation. Terwer designates this + * particular file as subject to the "Classpath" exception as provided + * by Terwer in the LICENSE file that accompanied this code. + * + * This code is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + * version 2 for more details (a copy is included in the LICENSE file that + * accompanied this code). + * + * You should have received a copy of the GNU General Public License version + * 2 along with this work; if not, write to the Free Software Foundation, + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. + * + * Please contact Terwer, Shenzhen, Guangdong, China, youweics@163.com + * or visit www.terwer.space if you need additional information or have any + * questions. + */ + +module.exports = { + semi: false, + singleQuote: false, + printWidth: 120, + plugins: ["prettier-plugin-svelte"] +}