Skip to content

Commit

Permalink
Hello world react
Browse files Browse the repository at this point in the history
  • Loading branch information
fsufitch committed Feb 11, 2020
1 parent 0f67ce2 commit 5731ffa
Show file tree
Hide file tree
Showing 11 changed files with 9,546 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .babelrc
@@ -0,0 +1,7 @@
{
"presets": [
"@babel/env",
"@babel/typescript",
"@babel/react"
]
}
29 changes: 29 additions & 0 deletions .eslintrc.js
@@ -0,0 +1,29 @@
const path = require('path');
module.exports = {
parser: '@typescript-eslint/parser', // Specifies the ESLint parser
extends: [
'plugin:react/recommended', // Uses the recommended rules from @eslint-plugin-react
'plugin:@typescript-eslint/recommended' // Uses the recommended rules from the @typescript-eslint/eslint-plugin
],
parserOptions: {
project: path.resolve(__dirname, './tsconfig.json'),
tsconfigRootDir: __dirname,
ecmaVersion: 2018, // Allows for the parsing of modern ECMAScript features
sourceType: 'module', // Allows for the use of imports
ecmaFeatures: {
jsx: true,
},
},
rules: {
// Place to specify ESLint rules. Can be used to overwrite rules specified from the extended configs
// e.g. "@typescript-eslint/explicit-function-return-type": "off",

// Implicit return type is good enough for strict typing
"@typescript-eslint/explicit-function-return-type": "off"
},
settings: {
react: {
version: 'detect', // Tells eslint-plugin-react to automatically detect the version of React to use
},
},
};

0 comments on commit 5731ffa

Please sign in to comment.