Skip to content

Commit

Permalink
Small docs fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrei Dumitrescu committed Jul 16, 2017
1 parent 4999b3c commit ce1e7af
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Other bundles: [XO](https://www.npmjs.com/package/xo), [eslint-config-airbnb](ht
- [Formatting your code using ESLint rules](#formatting-your-code-using-eslint-rules)
- [ESLint-Formatter](#eslint-formatter)
- [Watch npm script](#watch-npm-script)
- [Example of `.eslintrc.js` using `babel-eslint` and `eslint-import-resolver-webpack`](#example-of-eslintrcjs-using-babel-eslint-and-eslint-import-resolver-webpack)
- [Example of `.eslintrc.js`](#example-of-eslintrcjs)
- [Do some reading while you're at it](#do-some-reading-while-youre-at-it)
- [Changelog](#changelog)
- [2.5.0 - 16 July 2017](#250---16-july-2017)
Expand Down Expand Up @@ -259,7 +259,7 @@ Example config for ES6 import:
"relative" : false,
"base_directory": false,
"prefix" : [ "from", "import" ],
"extensions" : [ "js", "jsx", "scss", "sass", "css" ],
"extensions" : [ "js", "jsx", "sass", "scss", "less", "css" ],

"replace_on_insert": [
// Remove extensions from path
Expand Down Expand Up @@ -288,7 +288,9 @@ While using the plugin with `eslint` you will notice a delay when formatting. Th

### Watch npm script

## Example of `.eslintrc.js` using [`babel-eslint`](https://github.com/babel/babel-eslint) and [`eslint-import-resolver-webpack`](https://www.npmjs.com/package/eslint-import-resolver-webpack)
## Example of `.eslintrc.js`

Using [`babel-eslint`](https://github.com/babel/babel-eslint) and [`eslint-import-resolver-webpack`](https://www.npmjs.com/package/eslint-import-resolver-webpack)

```javascript
/* eslint-env node */
Expand All @@ -314,7 +316,7 @@ module.exports = {

// A list of regex strings that, if matched by a path, will not report
// the matching module if no exports are found.
"import/ignore": [ "\.(scss|less|css)$" ],
"import/ignore": [ "\.(sass|scss|less|css)$" ],
},

// Add your custom rules here
Expand Down

0 comments on commit ce1e7af

Please sign in to comment.