Skip to content

Instantly share code, notes, and snippets.

@baku89
Created April 16, 2021 00:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save baku89/06fbb0b4eb9c9e1c0dc71fe8209ffdf8 to your computer and use it in GitHub Desktop.
Save baku89/06fbb0b4eb9c9e1c0dc71fe8209ffdf8 to your computer and use it in GitHub Desktop.
eslitrc.js
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