Created
April 16, 2021 00:42
-
-
Save baku89/06fbb0b4eb9c9e1c0dc71fe8209ffdf8 to your computer and use it in GitHub Desktop.
eslitrc.js
This file contains 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
module.exports = { | |
root: true, | |
env: { | |
node: true, | |
commonjs: true, | |
}, | |
extends: [ | |
'eslint:recommended', | |
'plugin:vue/vue3-essential', | |
'@vue/typescript/recommended', | |
'@vue/prettier', | |
'@vue/prettier/@typescript-eslint', | |
], | |
parserOptions: { | |
ecmaVersion: 2020, | |
}, | |
plugins: ['simple-import-sort', 'unused-imports'], | |
rules: { | |
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off', | |
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off', | |
'@typescript-eslint/no-explicit-any': 'off', | |
'@typescript-eslint/no-use-before-define': 'off', | |
'@typescript-eslint/explicit-module-boundary-types': 'off', | |
'simple-import-sort/imports': 'error', | |
'unused-imports/no-unused-imports-ts': 'error', | |
}, | |
globals: { | |
__PAGES__: 'readonly', | |
}, | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment