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.
73 lines
1.1 KiB
73 lines
1.1 KiB
{
|
|
'env': {
|
|
'es6' : true,
|
|
'node' : true,
|
|
},
|
|
"extends": [
|
|
'eslint:recommended'
|
|
],
|
|
'rules' : {
|
|
'indent': [
|
|
'error',
|
|
2,
|
|
],
|
|
'linebreak-style': [
|
|
'error',
|
|
'unix',
|
|
],
|
|
'quotes': [
|
|
'error',
|
|
'single',
|
|
],
|
|
'semi': [
|
|
'error',
|
|
'always',
|
|
],
|
|
'comma-dangle': [
|
|
'error',
|
|
'always-multiline',
|
|
],
|
|
'key-spacing': [
|
|
'error',
|
|
{
|
|
'multiLine': {
|
|
'beforeColon': false,
|
|
'afterColon' : true,
|
|
},
|
|
'align': {
|
|
'beforeColon': false,
|
|
'afterColon' : true,
|
|
'on' : 'colon',
|
|
'mode' : 'strict',
|
|
},
|
|
},
|
|
],
|
|
'no-var': [
|
|
'error',
|
|
],
|
|
'no-console': [
|
|
'error',
|
|
{
|
|
'allow': [
|
|
'warn',
|
|
'trace',
|
|
'log',
|
|
'error'
|
|
]
|
|
}
|
|
],
|
|
'prefer-arrow-callback': [
|
|
'error',
|
|
{
|
|
'allowNamedFunctions': true
|
|
}
|
|
],
|
|
'prefer-const': [
|
|
'error',
|
|
{
|
|
'destructuring' : 'any',
|
|
'ignoreReadBeforeAssign': false,
|
|
},
|
|
],
|
|
},
|
|
}
|
|
|