You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
736 B
24 lines
736 B
5 years ago
|
/*
|
||
|
* Copyright (c) 2019.
|
||
|
* author: wally
|
||
|
* email: 18603454788@163.com
|
||
|
*/
|
||
|
|
||
|
module.exports = {
|
||
|
root: true,
|
||
|
|
||
|
env: { browser: true, node: true },
|
||
|
extends: ['plugin:vue/recommended', 'plugin:vue/essential', '@vue/prettier'],
|
||
|
rules: {
|
||
|
'vue/html-self-closing': 'off',
|
||
|
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
|
||
|
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
|
||
|
'no-param-reassign': ['error', { props: true, ignorePropertyModificationsFor: ['state'] }],
|
||
|
'max-len': ['error', { code: 120, tabWidth: 2 }],
|
||
|
'object-curly-newline': ['error', { multiline: true }],
|
||
|
'arrow-parens': ['error', 'as-needed'],
|
||
|
},
|
||
|
|
||
|
parserOptions: { parser: 'babel-eslint' },
|
||
|
};
|