Skip to content

Commit

Permalink
[docs] fix examples in documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
ernscht committed Aug 27, 2018
1 parent b62665c commit 63ac872
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ $ npm install --save-dev eslint eslint-plugin-import @namics/eslint-config
### .eslintrc.js (add globals here if needed)
```
module.exports = {
"extends": require.resolve("@namics/eslint-config/configurations/es8-browser.js");
extends: require.resolve('@namics/eslint-config/configurations/es8-browser.js'),
};
```

Expand All @@ -47,7 +47,7 @@ module.exports = {
```
"scripts": {
"lint": "npm run lint:js",
"lint:js": "node_modules/.bin/eslint ."
"lint:js": "eslint ."
},
```
then run `npm run lint`
Expand Down
16 changes: 8 additions & 8 deletions documentation/with-prettier.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,20 @@

```
module.exports = {
"extends": [
"@namics/eslint-config/configurations/es8-browser.js",
"@namics/eslint-config/configurations/es8-browser-disable-styles.js"
].map(require.resolve)
extends: [
'@namics/eslint-config/configurations/es8-browser.js',
'@namics/eslint-config/configurations/es8-browser-disable-styles.js',
].map(require.resolve),
};
```

### ES8 (ES2017) + React + Prettier

```
module.exports = {
"extends": [
"@namics/eslint-config/configurations/es8-react.js",
"@namics/eslint-config/configurations/es8-react-disable-styles.js"
].map(require.resolve)
extends: [
'@namics/eslint-config/configurations/es8-react.js',
'@namics/eslint-config/configurations/es8-react-disable-styles.js',
].map(require.resolve),
};
```

0 comments on commit 63ac872

Please sign in to comment.