Skip to content
This repository was archived by the owner on Aug 18, 2021. It is now read-only.

Commit 26f665e

Browse files
danezhzoo
authored andcommitted
Add configuration section to README (#303)
1 parent 115dd3d commit 26f665e

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,21 @@ $ npm install [email protected] babel-eslint@6 --save-dev
6565

6666
Check out the [ESLint docs](http://eslint.org/docs/rules/) for all possible rules.
6767

68+
### Configuration
69+
70+
`sourceType` can be set to `'module'`(default) or `'script'` if your code isn't using ECMAScript modules.
71+
72+
**.eslintrc**
73+
74+
```json
75+
{
76+
"parser": "babel-eslint",
77+
"parserOptions": {
78+
"sourceType": "module"
79+
}
80+
}
81+
```
82+
6883
### Run
6984

7085
```sh

0 commit comments

Comments
 (0)