Skip to content

Commit

Permalink
Merge pull request #8 from SoftboxLab/hotfix/eslint-plugin-vue
Browse files Browse the repository at this point in the history
Fix problem with eslint-plugin-vue new rules
  • Loading branch information
vilaboim authored Nov 23, 2018
2 parents 56e6169 + 8218529 commit 0316dd4
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 1,486 deletions.
20 changes: 15 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
# gandalf-lint-vue

<p align="center">
<img src="https://media.giphy.com/media/njYrp176NQsHS/giphy.gif"/><br/>
image source: <a href="https://giphy.com/gifs/lotr-gandalf-lord-of-the-rings-njYrp176NQsHS">Giphy</a>
<img src="https://media.giphy.com/media/njYrp176NQsHS/giphy.gif"/>
</p>


Expand All @@ -15,14 +14,21 @@ Install the most powerful linter of the middle-earth (and its dependencies):

Dependencies via NPM:
```bash
npm install --save-dev @softboxlab/eslint-config-gandalf-lint @softboxlab/eslint-config-gandalf-lint-vue eslint babel-lint
npm install --save-dev @softboxlab/eslint-config-gandalf-lint @softboxlab/eslint-config-gandalf-lint-vue eslint babel-lint eslint-plugin-vue@next
```

or via yarn:
```bash
yarn add --dev @softboxlab/eslint-config-gandalf-lint @softboxlab/eslint-config-gandalf-lint-vue eslint babel-lint
yarn add --dev @softboxlab/eslint-config-gandalf-lint @softboxlab/eslint-config-gandalf-lint-vue eslint babel-lint eslint-plugin-vue@next
```

## Requirements

- [ESLint](http://eslint.org/) `^5.0.0`.
- [eslint-plugin-vue](https://github.com/vuejs/eslint-plugin-vue) `^5.0.0`.
- [gandalf-lint](https://github.com/SoftboxLab/gandalf-lint) `^0.2.1`.
- Node.js `>=6.5.0`

## Configure
Call the white wizard by creating a `.eslintrc` file on your root project and writing in it:
```javascript
Expand All @@ -42,7 +48,7 @@ Remember to add the `eslint` plugin on your favorite IDE, like this one: [ESLint
If you want you can create a script on your `package.json` file like so:
```json
"scripts": {
"glint": "./node_modules/.bin/eslint ./{YOUR_PROJECT}/*.js"
"glint": "eslint {YOUR_SOURCE_FOLDER} --ext .js,.vue"
}
```

Expand All @@ -57,6 +63,10 @@ or using yarn:
yarn glint
```

## Tips

**To ignore some files from being linted just add them to a [.eslintignore](https://eslint.org/docs/user-guide/configuring#eslintignore) file**

## Autorun? Automatic lint?

**If you don't fell like creating any scripts, feel free to have your files linted on the fly by your IDE (did you remember to install the `eslint` plugin on your IDE?)**
Expand Down
3 changes: 0 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@ module.exports = {
'@softboxlab/eslint-config-gandalf-lint',
'plugin:vue/recommended'
],
plugins: [
'eslint-plugin-vue'
],
parserOptions: {
'parser': 'babel-eslint',
},
Expand Down
Loading

0 comments on commit 0316dd4

Please sign in to comment.