Skip to content

Instantly share code, notes, and snippets.

@veremey
Created May 27, 2022 18:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save veremey/1a21b3b6472b9ea1f607ab6d15abe89c to your computer and use it in GitHub Desktop.
Save veremey/1a21b3b6472b9ea1f607ab6d15abe89c to your computer and use it in GitHub Desktop.
.prettierrc
{
"printWidth": 120,
"semi": false,
"singleQuote": true,
"trailingComma": "all",
"arrowParens": "always"
}
@veremey
Copy link
Author

veremey commented Mar 12, 2023

.prettierrc.js

module.exports = {
  plugins: ['./node_modules/prettier-plugin-multiline-arrays'],
  printWidth: 120,
  max_line_length: 120,
  tabWidth: 2,
  singleQuote: true,
  bracketSpacing: true,
  bracketSameLine: false,
  proseWrap: 'never', //
  singleAttributePerLine: true,
  semi: true,
  trailingComma: 'all',
  arrowParens: 'always',
  endOfLine: 'auto',
  multilineArraysWrapThreshold: 3,
  overrides: [
    {
      files: '*.{js,jsx,tsx,ts,scss,json,html}',
      options: {
        tabWidth: 2,
      },
    },
  ],
};

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment