UNPKG

@truenine/eslint9-config

Version:

ESLint 9 configuration package for Compose Client projects with TypeScript, Vue, and modern JavaScript support

92 lines (90 loc) 2.52 kB
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); //#region src/configs/stylistic.ts /** * Stylistic 代码风格配置 */ const stylisticConfig = { jsx: true, indent: 2, quotes: "single", semi: false, overrides: { "style/no-multiple-empty-lines": ["error", { max: 1, maxBOF: 0, maxEOF: 0 }], "style/brace-style": "off", "@truenine/brace-style": [ "error", "1tbs", { allowSingleLine: true } ], "@truenine/prefer-separate-try-catch": "error", "style/arrow-parens": ["error", "as-needed"], "curly": ["error", "multi-line"], "antfu/if-newline": "off", "antfu/curly": "off", "style/object-curly-spacing": ["error", "never"], "style/array-bracket-spacing": ["error", "never"], "style/computed-property-spacing": ["error", "never"], "style/template-curly-spacing": ["error", "never"], "style/function-call-spacing": ["error", "never"], "style/space-before-blocks": ["error", "always"], "style/space-before-function-paren": ["error", { anonymous: "never", named: "never", asyncArrow: "always" }], "style/space-in-parens": ["error", "never"], "style/key-spacing": ["error", { beforeColon: false, afterColon: true }], "style/comma-spacing": ["error", { before: false, after: true }], "style/comma-dangle": ["error", "never"], "style/semi-spacing": ["error", { before: false, after: true }], "style/arrow-spacing": ["error", { before: true, after: true }], "style/keyword-spacing": ["error", { before: true, after: true }], "style/space-infix-ops": "error", "style/space-unary-ops": ["error", { words: true, nonwords: false }], "style/spaced-comment": [ "error", "always", { markers: ["/"] } ], "style/type-annotation-spacing": "error", "style/max-statements-per-line": ["error", { max: 3 }], "style/function-call-argument-newline": ["error", "consistent"], "style/function-paren-newline": ["error", "multiline-arguments"], "style/object-curly-newline": ["error", { ExportDeclaration: "always" }], "style/object-property-newline": "off", "antfu/consistent-list-newline": "error", "no-inline-comments": "off", "style/line-comment-position": "off", "@truenine/beside-comment": "error" } }; /** * @deprecated 使用 stylisticConfig 代替 */ const defaultStylisticConfig = stylisticConfig; //#endregion exports.defaultStylisticConfig = defaultStylisticConfig; exports.stylisticConfig = stylisticConfig; //# sourceMappingURL=stylistic.cjs.map