Created
March 28, 2023 19:12
-
-
Save ManoloTonto1/320448d90cbea6d336692036b776b19a to your computer and use it in GitHub Desktop.
Vue3 + TS eslint template
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 characters
| // My prefered settings are like this. Just remember to change the parser to the vue-eslint-parser for eslint to be able to work. | |
| module.exports = { | |
| 'env': { | |
| 'browser': true, | |
| 'es2021': true | |
| }, | |
| 'extends': [ | |
| 'eslint:recommended', | |
| 'plugin:vue/vue3-essential', | |
| 'plugin:@typescript-eslint/recommended' | |
| ], | |
| 'overrides': [ | |
| ], | |
| 'parser': 'vue-eslint-parser', | |
| 'parserOptions': { | |
| 'parser': '@typescript-eslint/parser', | |
| 'ecmaVersion': 'latest', | |
| 'sourceType': 'module' | |
| }, | |
| 'plugins': [ | |
| 'vue', | |
| '@typescript-eslint' | |
| ], | |
| 'rules': { | |
| 'indent': [ | |
| 'error', | |
| 'tab' | |
| ], | |
| 'linebreak-style': [ | |
| 'error', | |
| 'windows' | |
| ], | |
| 'quotes': [ | |
| 'error', | |
| 'single' | |
| ], | |
| 'semi': [ | |
| 'error', | |
| 'always' | |
| ] | |
| } | |
| }; |
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 characters
| # in the config just fill in what seetings you want. | |
| npm install --save-dev eslint vue-eslint-parser && npm init @eslint/config |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment