Created
March 18, 2021 14:08
-
-
Save aiya000/7c35aafa1d4d222e4f8bbe515c94c7fb to your computer and use it in GitHub Desktop.
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: { | |
browser: true, | |
node: true, | |
}, | |
extends: [ | |
'@nuxtjs/eslint-config-typescript', | |
'@vue/prettier', | |
'@vue/prettier/@typescript-eslint', | |
'@vue/typescript/recommended', | |
'eslint:recommended', | |
'plugin:nuxt/recommended', | |
'plugin:prettier/recommended', | |
'prettier', | |
'prettier/vue', | |
], | |
plugins: ['prettier'], | |
rules: { | |
'import/no-duplicates': 'off', | |
'import/no-named-default': 'off', | |
'no-multi-spaces': 'off', | |
'no-use-before-define': 'off', | |
'no-useless-constructor': 'off', | |
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off', | |
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off', | |
'@typescript-eslint/array-type': ['error', { default: 'generic' }], | |
'comma-dangle': ['error', 'always-multiline'], | |
'no-void': ['error', { allowAsStatement: true }], | |
'@typescript-eslint/no-unused-vars': [ | |
'error', | |
{ | |
argsIgnorePattern: '^_', | |
varsIgnorePattern: '^_', | |
}, | |
], | |
'no-unused-vars': [ | |
'error', | |
{ | |
argsIgnorePattern: '^_', | |
varsIgnorePattern: '^_', | |
}, | |
], | |
'space-before-function-paren': [ | |
'error', | |
{ | |
anonymous: 'never', | |
named: 'never', | |
asyncArrow: 'always', | |
}, | |
], | |
}, | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment