Skip to content

Instantly share code, notes, and snippets.

@roeniss
Last active September 2, 2020 06:48
Show Gist options
  • Save roeniss/2d4650fd159736d0cb1eca6943a381ff to your computer and use it in GitHub Desktop.
Save roeniss/2d4650fd159736d0cb1eca6943a381ff to your computer and use it in GitHub Desktop.
nodejs boilerplate snippets
{
"env": {
"browser": true,
"es2020": true
},
"extends": ["eslint:recommended", "plugin:react/recommended", "plugin:@typescript-eslint/recommended"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 11,
"sourceType": "module"
},
"plugins": ["react", "@typescript-eslint"],
"rules": {
"indent": ["error", 2],
"linebreak-style": ["error", "unix"],
"quotes": ["error", "double"],
"semi": ["error", "always"]
}
}
{
"printWidth": 120,
"singleQuote": false,
"jsxSingleQuote": false,
"trailingComma": "all"
}
{
"compilerOptions": {
"allowSyntheticDefaultImports": true,
"jsx": "react-native",
"lib": ["dom", "esnext"],
"moduleResolution": "node",
"noEmit": true,
"skipLibCheck": true,
"resolveJsonModule": true,
"strict": true
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment