Last active
September 2, 2020 06:48
-
-
Save roeniss/2d4650fd159736d0cb1eca6943a381ff to your computer and use it in GitHub Desktop.
nodejs boilerplate snippets
This file contains hidden or 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
Show hidden characters
{ | |
"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"] | |
} | |
} |
This file contains hidden or 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
{ | |
"printWidth": 120, | |
"singleQuote": false, | |
"jsxSingleQuote": false, | |
"trailingComma": "all" | |
} |
This file contains hidden or 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
{ | |
"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