Skip to content

Commit

Permalink
🆙 update(config): recommended config file
Browse files Browse the repository at this point in the history
  • Loading branch information
kazupon committed Mar 18, 2019
1 parent 56dbbb0 commit 2e5c3c5
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
12 changes: 12 additions & 0 deletions lib/configs/recommended.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,18 @@
'use strict'

module.exports = {
parser: require.resolve('vue-eslint-parser'),
parserOptions: {
ecmaVersion: 2018,
sourceType: 'module',
ecmaFeatures: {
jsx: true
}
},
env: {
browser: true,
es6: true
},
plugins: ['vue-i18n'],
rules: {
'vue-i18n/no-missing-keys': 'error',
Expand Down
12 changes: 12 additions & 0 deletions scripts/update-recommended-rules.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,18 @@ writeFileSync(
'use strict'
module.exports = {
parser: require.resolve('vue-eslint-parser'),
parserOptions: {
ecmaVersion: 2018,
sourceType: 'module',
ecmaFeatures: {
jsx: true
}
},
env: {
browser: true,
es6: true
},
plugins: ['vue-i18n'],
rules: {
${rules.filter(rule => rule.recommended)
Expand Down

0 comments on commit 2e5c3c5

Please sign in to comment.