Skip to content

Instantly share code, notes, and snippets.

@Tsugami
Created May 14, 2022 14:06
Show Gist options
  • Save Tsugami/4ade51ba1bc529bb2b600991855e0c85 to your computer and use it in GitHub Desktop.
Save Tsugami/4ade51ba1bc529bb2b600991855e0c85 to your computer and use it in GitHub Desktop.
Setup my prettier config
{
"semi": true,
"tabWidth": 2,
"useTabs": false,
"printWidth": 100,
"singleQuote": true,
"trailingComma": "all",
"jsxSingleQuote": true,
"jsxBracketSameLine": true,
"arrowParens": "always",
"endOfLine": "auto"
}

Commands

npm i prettier eslint-config-prettier eslint-plugin-prettier  --save-dev

Eslint file

 rules: {
    'prettier/prettier': 'error',
  },
extends: [
    'prettier',
  ],
  plugins: [
    'prettier',
  ],
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment