75674df502
ClientAPI: use Axios ServerAPI: use @koa/router FullDate: wrapped Date only class APIPromise: enhanced Promise on api response application/json only(multipart/*, image/*, ... are not supported) get, post, put, delete, patch only
33 lines
710 B
JavaScript
33 lines
710 B
JavaScript
module.exports = {
|
|
'env': {
|
|
'es6': true,
|
|
'node': true
|
|
},
|
|
'extends': [
|
|
'google'
|
|
],
|
|
'globals': {
|
|
'Atomics': 'readonly',
|
|
'SharedArrayBuffer': 'readonly'
|
|
},
|
|
'parser': '@typescript-eslint/parser',
|
|
'parserOptions': {
|
|
'ecmaVersion': 2018,
|
|
'sourceType': 'module'
|
|
},
|
|
'plugins': [
|
|
'@typescript-eslint'
|
|
],
|
|
'rules': {
|
|
'require-jsdoc': 'off',
|
|
'arrow-parens': ['error', 'as-needed'],
|
|
'indent': ['error', 2, {'MemberExpression': 1}],
|
|
// no-unused-vars except ts interface
|
|
'no-unused-vars': 'off',
|
|
'@typescript-eslint/no-unused-vars': ['error', {
|
|
'vars': 'all',
|
|
'args': 'after-used',
|
|
'ignoreRestSiblings': false
|
|
}],
|
|
},
|
|
};
|