@anolilab/prettier-config
Version:
Prettier shareable config for Anolilab.
1 lines • 2.61 kB
Source Map (JSON)
{"version":3,"sources":["../src/index.ts"],"names":["config","src_default"],"mappings":"AAEA,IAAMA,EAAiB,CAEnB,YAAa,SAEb,eAAgB,GAEhB,2BAA4B,OAE5B,UAAW,KAEX,0BAA2B,MAE3B,aAAc,GAEd,eAAgB,GAChB,UAAW,CACP,CAAE,MAAO,YAAa,QAAS,CAAE,OAAQ,MAAO,CAAE,EAClD,CAAE,MAAO,cAAe,QAAS,CAAE,OAAQ,MAAO,CAAE,EACpD,CAAE,MAAO,eAAgB,QAAS,CAAE,OAAQ,MAAO,CAAE,EACrD,CAAE,MAAO,gBAAiB,QAAS,CAAE,WAAY,GAAK,CAAE,EACxD,CAAE,MAAO,QAAS,QAAS,CAAE,YAAa,EAAM,CAAE,EAClD,CAAE,MAAO,SAAU,QAAS,CAAE,YAAa,EAAM,CAAE,CACvD,EAEA,WAAY,IAEZ,UAAW,WAEX,WAAY,YACZ,SAAU,OAAO,kBAEjB,WAAY,EAEZ,cAAe,GAEf,KAAM,GAEN,YAAa,GAEb,SAAU,EAEV,cAAe,MAEf,QAAS,GAET,wBAAyB,EAC7B,EAEOC,EAAQD","sourcesContent":["import type { Config } from \"prettier\";\n\nconst config: Config = {\n // brackets are required for arrow function parameter, even when there is only one parameter\n arrowParens: \"always\",\n // spaces are required at the beginning and end of the braces\n bracketSpacing: true,\n // formats quoted code embedded\n embeddedLanguageFormatting: \"auto\",\n // lf for newline\n endOfLine: \"lf\",\n // decide whether to break the html according to the display style\n htmlWhitespaceSensitivity: \"css\",\n // No need to automatically insert @prettier at the beginning of the file\n insertPragma: false,\n // use double quotes instead of single quotes in jsx\n jsxSingleQuote: false,\n overrides: [\n { files: \".eslintrc\", options: { parser: \"json\" } },\n { files: \".prettierrc\", options: { parser: \"json\" } },\n { files: \".stylelintrc\", options: { parser: \"json\" } },\n { files: \"package*.json\", options: { printWidth: 1000 } },\n { files: \"*.yml\", options: { singleQuote: false } },\n { files: \"*.yaml\", options: { singleQuote: false } },\n ],\n // max 160 characters per line\n printWidth: 160,\n // use default break criteria\n proseWrap: \"preserve\",\n // object's key is quoted only when necessary\n quoteProps: \"as-needed\",\n rangeEnd: Number.POSITIVE_INFINITY,\n // format the entire contents of the file\n rangeStart: 0,\n // no need to write the beginning @prettier of the file\n requirePragma: false,\n // semicolon at the end of the line\n semi: true,\n // use single quotes\n singleQuote: false,\n // use 4 spaces for indentation\n tabWidth: 4,\n // all comma at the end\n trailingComma: \"all\",\n // use spaces instead of indentations\n useTabs: false,\n // vue files script and style tags indentation\n vueIndentScriptAndStyle: false,\n};\n\nexport default config;\n"]}