ESLint and FECS config are not consistent
Created by: xinpingwang
There are two code style config files under frontend: .eslintrc.js
and .fecsrc
, but these config are not consistent. And the lint
script in package.json
using the fecs
, so at least the following configuration needs to be added to the .eslintrc.js
file:
'arrow-parens': ['error', 'as-needed'],
'brace-style': ['warn', 'stroustrup'],
'comma-dangle': ['error', 'never'],
'no-console': 'warn',
'operator-linebreak': ['error', 'before'],
'quote-props': ['warn', 'as-needed'],
'space-before-function-paren': ['error', {
'anonymous': 'always',
'named': 'never',
'asyncArrow': 'never'
}],
'space-infix-ops': 'error',
'space-unary-ops': ['warn', {'words': true, 'nonwords': false}],
'vue/no-unused-vars': 'warn',
'vue/prop-name-casing': ['error'],
'vue/script-indent': ['error', 4]