Use Create-React-App absolute path feature
parent
bbaec4a027
commit
a867ce0001
|
@ -1,6 +1,6 @@
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import './App.css';
|
import './App.css';
|
||||||
import Header from './components/Header';
|
import Header from 'components/Header';
|
||||||
import { Filters } from './Filters';
|
import { Filters } from './Filters';
|
||||||
import { Pokemon } from './features/Pokedex/Pokemon';
|
import { Pokemon } from './features/Pokedex/Pokemon';
|
||||||
|
|
||||||
|
|
|
@ -1,11 +1,7 @@
|
||||||
{
|
{
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"target": "es5",
|
"target": "es5",
|
||||||
"lib": [
|
"lib": ["dom", "dom.iterable", "esnext"],
|
||||||
"dom",
|
|
||||||
"dom.iterable",
|
|
||||||
"esnext"
|
|
||||||
],
|
|
||||||
"allowJs": true,
|
"allowJs": true,
|
||||||
"skipLibCheck": true,
|
"skipLibCheck": true,
|
||||||
"esModuleInterop": true,
|
"esModuleInterop": true,
|
||||||
|
@ -18,9 +14,10 @@
|
||||||
"resolveJsonModule": true,
|
"resolveJsonModule": true,
|
||||||
"isolatedModules": true,
|
"isolatedModules": true,
|
||||||
"noEmit": true,
|
"noEmit": true,
|
||||||
"jsx": "react-jsx"
|
"jsx": "react-jsx",
|
||||||
|
"incremental": true,
|
||||||
|
"baseUrl": "src"
|
||||||
},
|
},
|
||||||
"include": [
|
"include": ["src/**.tsx", "src/**.ts"],
|
||||||
"src"
|
"exclude": ["node_modules", "build", "public"]
|
||||||
]
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue