facebook / facebook/flow

Uncovered Code from imported styles.css file

Open
#5,143 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
22.3k
Forks
1.9k
PR merge metrics
No merged PRs in 30d

Description

styles.css
```css
:local(.abc){
width: 100%
}
```
XYZ.js
```javascript
import React from 'react'
import { Button } from 'react-bootstrap'
import styles from './styles.css'

const XYZ = () => (

Do

)

export default XYZ
```

this generates the following, using Atom(1.20.1) and the package flow-ide(1.9.0):

it underlines the `styles.abc`

Severity: Info
Provider: Flow IDE Coverage
Description: Uncovered code
File: src/components/XYZ.js

I don't want to use hacky ways like installing additional packages to fix flow. i want to fix this problem with the ways, flow has to offer, but i don't know how.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.