Skip to content
This repository has been archived by the owner on Mar 19, 2024. It is now read-only.

Commit

Permalink
feat: add base config
Browse files Browse the repository at this point in the history
  • Loading branch information
clarkdo committed Dec 5, 2018
1 parent 8943140 commit bf0759a
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 1 deletion.
17 changes: 17 additions & 0 deletions lib/configs/base.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
module.exports = {
parser: require.resolve('vue-eslint-parser'),
parserOptions: {
ecmaVersion: 2018,
sourceType: 'module',
ecmaFeatures: {
jsx: true
}
},
env: {
browser: true,
es6: true
},
rules: {
'nuxt/no-this-in-async-data': 'error'
}
}
11 changes: 11 additions & 0 deletions lib/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
module.exports = {
rules: {
'no-this-in-async-data': require('./lib/rules/no-this-in-async-data')
},
configs: {
'base': require('./configs/base')
},
processors: {
'.vue': require('./processors')
}
}
1 change: 1 addition & 0 deletions lib/processors/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require('eslint-plugin-vue/lib/processor')
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
"lint-staged": "^8.1.0"
},
"dependencies": {
"eslint-plugin-vue": "^5.0.0"
"eslint-plugin-vue": "^5.0.0",
"vue-eslint-parser": "^4.0.2"
}
}

0 comments on commit bf0759a

Please sign in to comment.