mirror of
https://github.com/tenrok/vue-select.git
synced 2026-06-22 10:30:34 +03:00
build: update eslint config (#1470)
This commit is contained in:
+11
-3
@@ -2,13 +2,21 @@ module.exports = {
|
|||||||
parser: 'vue-eslint-parser',
|
parser: 'vue-eslint-parser',
|
||||||
parserOptions: {
|
parserOptions: {
|
||||||
parser: 'babel-eslint',
|
parser: 'babel-eslint',
|
||||||
sourceType: 'module'
|
sourceType: 'module',
|
||||||
},
|
},
|
||||||
plugins: ['prettier'],
|
plugins: ['prettier'],
|
||||||
extends: [
|
extends: [
|
||||||
'plugin:prettier/recommended',
|
'plugin:prettier/recommended',
|
||||||
'plugin:vue/recommended',
|
'plugin:vue/recommended',
|
||||||
'prettier/vue'
|
'prettier/vue',
|
||||||
|
],
|
||||||
|
ignorePatterns: [
|
||||||
|
'!.*.js',
|
||||||
|
'!docs/.vuepress',
|
||||||
|
'docs/.vuepress/dist',
|
||||||
|
'node_modules',
|
||||||
|
'dist',
|
||||||
|
'coverage',
|
||||||
|
'yarn.lock',
|
||||||
],
|
],
|
||||||
ignorePatterns: ['node_modules/', 'dist/', 'coverage/']
|
|
||||||
}
|
}
|
||||||
|
|||||||
+2
-2
@@ -19,8 +19,8 @@
|
|||||||
"build:docs": "cd docs && yarn build",
|
"build:docs": "cd docs && yarn build",
|
||||||
"build:preview": "cd docs && yarn build",
|
"build:preview": "cd docs && yarn build",
|
||||||
"test": "jest",
|
"test": "jest",
|
||||||
"eslint": "eslint '**/*.{js,vue}'",
|
"eslint": "eslint '{**/*,*}.{js,ts,jsx,tsx,vue}'",
|
||||||
"eslint:fix": "eslint --fix '**/*.{js,vue}'",
|
"eslint:fix": "npm run eslint -- --fix",
|
||||||
"semantic-release": "semantic-release",
|
"semantic-release": "semantic-release",
|
||||||
"commit": "git-cz"
|
"commit": "git-cz"
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user