You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 18, 2021. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+13-7Lines changed: 13 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,15 +18,19 @@ For questions and support please visit the [`#discussion`](https://babeljs.slack
18
18
## Known Issues
19
19
20
20
Flow:
21
+
21
22
> Check out [eslint-plugin-flowtype](https://github.com/gajus/eslint-plugin-flowtype): An `eslint` plugin that makes flow type annotations global variables and marks declarations as used. Solves the problem of false positives with `no-undef` and `no-unused-vars`.
23
+
22
24
-`no-undef` for global flow types: `ReactElement`, `ReactClass`[#130](https://github.com/babel/babel-eslint/issues/130#issuecomment-111215076)
23
25
- Workaround: define types as globals in `.eslintrc` or define types and import them `import type ReactElement from './types'`
24
26
-`no-unused-vars/no-undef` with Flow declarations (`declare module A {}`) [#132](https://github.com/babel/babel-eslint/issues/132#issuecomment-112815926)
Please check out [eslint-plugin-react](https://github.com/yannickcr/eslint-plugin-react) for React/JSX issues
33
+
30
34
-`no-unused-vars` with jsx
31
35
32
36
Please check out [eslint-plugin-babel](https://github.com/babel/eslint-plugin-babel) for other issues
@@ -45,12 +49,12 @@ It just needs to export a `parse` method that takes in a string of code and outp
45
49
46
50
### Supported ESLint versions
47
51
48
-
ESLint | babel-eslint
49
-
------------ | -------------
50
-
4.x | >= 6.x
51
-
3.x | >= 6.x
52
-
2.x | >= 6.x
53
-
1.x | >= 5.x
52
+
|ESLint | babel-eslint|
53
+
|------ | ------------|
54
+
|4.x | >= 6.x|
55
+
|3.x | >= 6.x|
56
+
|2.x | >= 6.x|
57
+
|1.x | >= 5.x|
54
58
55
59
### Install
56
60
@@ -80,6 +84,7 @@ Check out the [ESLint docs](http://eslint.org/docs/rules/) for all possible rule
80
84
### Configuration
81
85
82
86
-`sourceType` can be set to `'module'`(default) or `'script'` if your code isn't using ECMAScript modules.
87
+
-`configFile` Optional. If not defined, babel-eslint will use Babel's default configuration file resolution logic. Otherwise, will use the path to config file given. See [Babel's documentation](https://babeljs.io/docs/en/options#configfile) for more details.
83
88
-`allowImportExportEverywhere` (default `false`) can be set to `true` to allow import and export declarations to appear anywhere a statement is allowed if your build environment supports that. Otherwise import and export declarations can only appear at a program's top level.
84
89
-`ecmaFeatures.globalReturn` (default `false`) allow return statements in the global scope when used with `sourceType: "script"`.
85
90
@@ -90,9 +95,10 @@ Check out the [ESLint docs](http://eslint.org/docs/rules/) for all possible rule
0 commit comments