Skip to content

Instantly share code, notes, and snippets.

@kutyel
Created August 7, 2019 10:23
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kutyel/41f74154abe899e90c9fad1fe1453e48 to your computer and use it in GitHub Desktop.
Save kutyel/41f74154abe899e90c9fad1fe1453e48 to your computer and use it in GitHub Desktop.
Personal JS options πŸ˜‰πŸš€
{
"presets": [
"@babel/preset-react",
[
"@babel/preset-env",
{
"targets": {
"browsers": [
"last 2 versions",
"ie >= 11"
]
}
}
]
],
"plugins": [
"@babel/plugin-transform-react-jsx",
"@babel/plugin-proposal-class-properties",
"@babel/plugin-proposal-optional-chaining"
]
}
{
"extends": [
"prettier",
"prettier/react"
],
"plugins": [
"react"
],
"parser": "babel-eslint",
"parserOptions": {
"ecmaFeatures": {
"jsx": true,
"modules": true
}
},
"rules": {
"react/jsx-uses-react": "warn",
"react/jsx-uses-vars": "warn",
"no-unused-vars": [
"warn",
{
"varsIgnorePattern": "React"
}
]
}
}
{
"semi": false,
"singleQuote": true,
"trailingComma": "es5"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment