Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix problem with eslint-plugin-vue new rules #8

Merged
merged 5 commits into from
Nov 23, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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