I don't ever want to import anything from storybook files, but they constantly pollute my intelli-sense.
Here is my jsconfig.json:
{
"compilerOptions": {
"experimentalDecorators": true,
"allowSyntheticDefaultImports": true,
"module": "commonjs",
"target": "es6",
"jsx": "react",
"baseUrl": "src",
"paths": {
"*": ["*", "src/*"]
}
},
"include": ["src/**/*.js"],
"exclude": ["dist", "node_modules", "**/node_modules/*", "src/**/*.stories", "src/**/*.stories.*"]
}
I have tried adding "src/**/*.stories" to the "exclude" option in jsconfig.json.
I've also tried various alternatives. One annoying thing is that this appeared to work with my Button example, but then I tried Spinner and files still aren't being filtered?
Is it anything to do with the fact that I'm including them before excluding?