@wulechuan/text-basic-typography
Version:
此为吴乐川《文本简易分割工具与文本简朴排版工具》,不妨称甲、乙。 甲按特定要求将一个文本(“`string`”)分割成片段,形成文本列表(“`string[]`”)。 乙接受一个文本,要求此文本事先含有特别的记号供乙识别, 并据此类记号在原文本之基础上添加空格与换行符(“`\n`”)等内容,产出另一新的文本。 由是,当在纯文字环境(例如命令行形式的会话环境)中呈现该产出之新文本时, 这些文字会因具有简朴的排版而视觉效果更佳。 又,乙调用甲。
78 lines (77 loc) • 2.31 kB
JavaScript
module.exports = {
root: true,
env: {
node: true,
},
parser: '@typescript-eslint/parser',
plugins: [
'@typescript-eslint',
],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
],
// parserOptions: {
// ecmaVersion: 2021,
// ecmaFeatures: {
// experimentalObjectRestSpread: true,
// },
// sourceType: 'module',
// },
rules: {
'@typescript-eslint/no-explicit-any': 0,
'no-unused-vars': 0, // ESLint 对 TypeScript 中的类型定义会报错,不论是 .ts 还是 .d.ts ,还是 .vue 。
'import/no-unresolved': 0,
'import/no-extraneous-dependencies': 0,
'no-console': [ 0 ],
'no-debugger': [ 2 ],
'no-multi-spaces': 0,
'no-implicit-globals': 0,
indent: ['error', 4, {
SwitchCase: 1,
MemberExpression: 1,
}],
'no-trailing-spaces': ['error', {
skipBlankLines: false,
ignoreComments: false,
}],
'linebreak-style': [0, 'unix'],
'no-param-reassign': 0,
'no-empty-pattern': 0,
quotes: ['error', 'single'],
semi: ['error', 'never'],
'max-statements': [0, 64],
'multiline-ternary': ['error', 'always-multiline'],
'new-parens': [1],
yoda: [0, 'never'],
'comma-dangle': ['error', {
arrays: 'always-multiline',
objects: 'always-multiline',
imports: 'always-multiline',
exports: 'always-multiline',
functions: 'never',
}],
'func-names': [0, 'as-needed'],
'no-return-assign': 'error',
'no-new-func': 'error',
'no-eval': 'error',
'no-implied-eval': 'error',
'prefer-const': 'error',
'arrow-body-style': 0,
'prefer-destructuring': [ 0,
{
VariableDeclarator: {
array: true,
object: true,
},
AssignmentExpression: {
array: false,
object: false,
},
},
{
enforceForRenamedProperties: false,
},
],
},
}