-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add static code analyzer and eslint
- Loading branch information
1 parent
94adfec
commit 0c10eb8
Showing
5 changed files
with
3,821 additions
and
1,180 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
module.exports = { | ||
extends: ["plugin:vue/recommended", "plugin:prettier-vue/recommended", "prettier"], | ||
|
||
settings: { | ||
"prettier-vue": { | ||
// Settings for how to process Vue SFC Blocks | ||
SFCBlocks: { | ||
/** | ||
* Use prettier to process `<template>` blocks or not | ||
* | ||
* If set to `false`, you may need to enable those vue rules that are disabled by `eslint-config-prettier`, | ||
* because you need them to lint `<template>` blocks | ||
* | ||
* @default true | ||
*/ | ||
template: true, | ||
|
||
/** | ||
* Use prettier to process `<script>` blocks or not | ||
* | ||
* If set to `false`, you may need to enable those rules that are disabled by `eslint-config-prettier`, | ||
* because you need them to lint `<script>` blocks | ||
* | ||
* @default true | ||
*/ | ||
script: true, | ||
|
||
/** | ||
* Use prettier to process `<style>` blocks or not | ||
* | ||
* @default true | ||
*/ | ||
style: true, | ||
}, | ||
usePrettierrc: true, | ||
fileInfoOptions: { | ||
withNodeModules: false, | ||
}, | ||
}, | ||
}, | ||
|
||
rules: { | ||
"prettier-vue/prettier": [ | ||
"error", | ||
{ | ||
// Override all options of `prettier` here | ||
// @see https://prettier.io/docs/en/options.html | ||
printWidth: 100, | ||
singleQuote: false, | ||
semi: true, | ||
trailingComma: "es5", | ||
bracketSameLine: true, | ||
}, | ||
], | ||
}, | ||
}; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
build | ||
coverage |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{} |
Oops, something went wrong.