mirror of
https://github.com/zhaojh329/rttys.git
synced 2026-02-27 09:53:21 +08:00
36 lines
985 B
Go
36 lines
985 B
Go
module.exports = {
|
|
root: true,
|
|
env: {
|
|
node: true
|
|
},
|
|
'extends': [
|
|
'plugin:vue/essential',
|
|
'eslint:recommended',
|
|
'@vue/typescript/recommended'
|
|
],
|
|
parserOptions: {
|
|
ecmaVersion: 2020
|
|
},
|
|
rules: {
|
|
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
|
|
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
|
|
'linebreak-style': ['error', 'unix'],
|
|
'quotes': ['error', 'single'],
|
|
'brace-style': 'error',
|
|
'comma-dangle': 'error',
|
|
'comma-spacing': 'error',
|
|
'keyword-spacing': 'error',
|
|
'no-trailing-spaces': 'error',
|
|
'no-unneeded-ternary': 'error',
|
|
'space-before-function-paren': ['error', 'never'],
|
|
'space-infix-ops': ['error', {'int32Hint': false}],
|
|
'arrow-spacing': 'error',
|
|
'no-var': 'error',
|
|
'no-duplicate-imports': 'error',
|
|
'space-before-blocks': 'error',
|
|
'space-in-parens': ["error", 'never'],
|
|
'no-multi-spaces': 'error',
|
|
'eqeqeq': 'error'
|
|
}
|
|
}
|