npm i prettier eslint-config-prettier eslint-plugin-prettier --save-dev
rules: {
'prettier/prettier': 'error',
},
extends: [
'prettier',
],
plugins: [
'prettier',
],
{ | |
"semi": true, | |
"tabWidth": 2, | |
"useTabs": false, | |
"printWidth": 100, | |
"singleQuote": true, | |
"trailingComma": "all", | |
"jsxSingleQuote": true, | |
"jsxBracketSameLine": true, | |
"arrowParens": "always", | |
"endOfLine": "auto" | |
} |