Created
August 13, 2017 14:51
-
-
Save msokk/99238890e19bc0208c950cea9d9aa0d8 to your computer and use it in GitHub Desktop.
<style> block linted by Eslint
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
parser: "vue-eslint-parser", | |
extends: ["airbnb-base", "plugin:vue/recommended"] | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> eslint-plugin-vue-test@1.0.0 lint ./eslint-plugin-vue-test | |
> eslint --ext .js,.vue src | |
./eslint-plugin-vue-test/src/Title.vue | |
7:1 error Line 7 exceeds the maximum line length of 100 max-len | |
✖ 1 problem (1 error, 0 warnings) | |
> eslint --ext .js,.vue src "--version" | |
v4.4.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "eslint-plugin-vue-test", | |
"version": "1.0.0", | |
"private": true, | |
"scripts": { | |
"lint": "eslint --ext .js,.vue src" | |
}, | |
"devDependencies": { | |
"eslint": "^4.4.1", | |
"eslint-config-airbnb-base": "^11.3.1", | |
"eslint-plugin-import": "^2.7.0", | |
"eslint-plugin-vue": "beta" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<h1>Test</h1> | |
</template> | |
<style> | |
h1 { | |
box-shadow: 0 -3em 0 0.2em, 2em -2em 0 0em, 3em 0 0 -1em, 2em 2em 0 -1em, 0 3em 0 -1em, -2em 2em 0 -1em, -3em 0 0 -1em, -2em -2em 0 0; | |
} | |
</style> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment