@studyportals/eslint-config
Advanced tools
Comparing version 0.0.6 to 0.0.7
{ | ||
"name": "@studyportals/eslint-config", | ||
"version": "0.0.6", | ||
"version": "0.0.7", | ||
"description": "Eslint config for studyportals", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -1,2 +0,2 @@ | ||
# Install & basic usage | ||
# Installation | ||
@@ -33,4 +33,32 @@ Install the package | ||
# Basic usage | ||
## Usage within your command line | ||
1. Make sure you have the packages installed. | ||
2. Run eslint against your desired file(s), `npx eslint --ext js,vue MyComponent.vue` | ||
## Usage within webpack | ||
1. Install eslint-loader, `npm i -D eslint-loader` | ||
2. Add beneath rule to your webpack config file. | ||
```js | ||
// webpack.config.js | ||
module.exports = { | ||
// ... other options | ||
module: { | ||
rules: [ | ||
{ | ||
enforce: 'pre', | ||
test: /\.(js|vue)$/, | ||
loader: 'eslint-loader', | ||
exclude: /node_modules/ | ||
} | ||
] | ||
} | ||
} | ||
``` | ||
# Guidelines | ||
Coming soon! |
@@ -45,4 +45,5 @@ //http://eslint.org/docs/rules/ | ||
"vue/order-in-components": [0], | ||
"vue/attributes-order": [0] | ||
"vue/attributes-order": [0], | ||
"vue/mustache-interpolation-spacing": [0] | ||
} | ||
}; |
3913
83
64