Skip to content

Commit

Permalink
build: update eslint config (#1470)
Browse files Browse the repository at this point in the history
  • Loading branch information
sagalbot committed Aug 1, 2021
1 parent 96819eb commit a64ffc3
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
14 changes: 11 additions & 3 deletions .eslintrc.js
Expand Up @@ -2,13 +2,21 @@ module.exports = {
parser: 'vue-eslint-parser',
parserOptions: {
parser: 'babel-eslint',
sourceType: 'module'
sourceType: 'module',
},
plugins: ['prettier'],
extends: [
'plugin:prettier/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/']
}
4 changes: 2 additions & 2 deletions package.json
Expand Up @@ -19,8 +19,8 @@
"build:docs": "cd docs && yarn build",
"build:preview": "cd docs && yarn build",
"test": "jest",
"eslint": "eslint '**/*.{js,vue}'",
"eslint:fix": "eslint --fix '**/*.{js,vue}'",
"eslint": "eslint '{**/*,*}.{js,ts,jsx,tsx,vue}'",
"eslint:fix": "npm run eslint -- --fix",
"semantic-release": "semantic-release",
"commit": "git-cz"
},
Expand Down

0 comments on commit a64ffc3

Please sign in to comment.