-
-
Save hashg/5114b609a42debdbb9ea64791cc8164e to your computer and use it in GitHub Desktop.
eslint-prettier
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
parser: 'babel-eslint', | |
extends: ['plugin:prettier/recommended', 'prettier/react'], | |
plugins: ['prettier', 'jest'], | |
parserOptions: { | |
sourceType: 'module', | |
ecmaVersion: 2020, | |
ecmaFeatures: { | |
jsx: true, | |
}, | |
}, | |
env: { | |
es2020: true, | |
node: true, | |
'jest/globals': true, | |
}, | |
rules: { | |
'prettier/prettier': 'error', | |
'no-new-func': 'off', | |
'arrow-parens': 0, | |
}, | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
... | |
"devDependencies": { | |
... | |
"eslint": "^6.8.0", | |
"eslint-config-prettier": "^6.10.1", | |
"eslint-plugin-jest": "^23.8.2", | |
"eslint-plugin-prettier": "^3.1.2", | |
"eslint-plugin-react": "^7.19.0", | |
... | |
"prettier": "^2.0.2", | |
... | |
}, | |
... | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
printWidth: 120, | |
tabWidth: 2, | |
useTabs: false, | |
singleQuote: true, | |
trailingComma: 'es5', | |
parser: 'babel', | |
jsxBracketSameLine: true, | |
arrowParens: 'always', | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment