-
-
Save jiverson/d296b93f39003ec7533df35357c1674e to your computer and use it in GitHub Desktop.
Revisions
-
lewebsimple revised this gist
Feb 13, 2021 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -22,6 +22,7 @@ module.exports = { "prettier/@typescript-eslint", "plugin:prettier/recommended", "plugin:vue/vue3-recommended", //"plugin:vue/recommended", "prettier/vue", ], plugins: ["prettier", "@typescript-eslint"], -
lewebsimple revised this gist
Feb 13, 2021 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -2,7 +2,7 @@ yarn add -D @typescript-eslint/eslint-plugin \ typescript ts-node-dev \ @typescript-eslint/parser @typescript-eslint/eslint-plugin eslint eslint-config-prettier eslint-plugin-prettier eslint-plugin-vue prettier cat > .eslintrc.js <<EOF module.exports = { -
lewebsimple revised this gist
Dec 22, 2020 . 1 changed file with 18 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -41,3 +41,21 @@ module.exports = { trailingComma: "all" }; EOF cat > tsconfig.json <<EOF { "compilerOptions": { "target": "ES5", "module": "CommonJS", "lib": [ "DOM", "ES2020" ], "outDir": "dist", "esModuleInterop": true, "sourceMap": true, "declaration": true, "skipLibCheck": true } } EOF -
lewebsimple created this gist
Dec 22, 2020 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,43 @@ #!/bin/bash yarn add -D @typescript-eslint/eslint-plugin \ typescript ts-node-dev \ @typescript-eslint/parser eslint eslint-config-prettier eslint-plugin-prettier eslint-plugin-vue prettier cat > .eslintrc.js <<EOF module.exports = { root: true, env: { node: true, }, parser: "vue-eslint-parser", parserOptions: { parser: "@typescript-eslint/parser", ecmaVersion: 2020, sourceType: "module", }, extends: [ "plugin:@typescript-eslint/recommended", "eslint:recommended", "prettier/@typescript-eslint", "plugin:prettier/recommended", "plugin:vue/vue3-recommended", "prettier/vue", ], plugins: ["prettier", "@typescript-eslint"], rules: { "no-unused-vars": "off", "@typescript-eslint/no-unused-vars-experimental": "error", }, "ignorePatterns": ["dist"], }; EOF cat > .prettierrc.js <<EOF module.exports = { printWidth: 120, semi: true, tabWidth: 2, trailingComma: "all" }; EOF