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

Commit fb94d7b

Browse files
committedDec 5, 2018
feat: add base config
1 parent fafca07 commit fb94d7b

File tree

4 files changed

+31
-1
lines changed

4 files changed

+31
-1
lines changed
 

‎lib/configs/base.js

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
module.exports = {
2+
parser: require.resolve('vue-eslint-parser'),
3+
parserOptions: {
4+
ecmaVersion: 2018,
5+
sourceType: 'module',
6+
ecmaFeatures: {
7+
jsx: true
8+
}
9+
},
10+
env: {
11+
browser: true,
12+
es6: true
13+
},
14+
rules: {
15+
'nuxt/no-this-in-async-data': 'error'
16+
}
17+
}

‎lib/index.js

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
module.exports = {
2+
rules: {
3+
'no-this-in-async-data': require('./lib/rules/no-this-in-async-data')
4+
},
5+
configs: {
6+
'base': require('./configs/base')
7+
},
8+
processors: {
9+
'.vue': require('./processors')
10+
}
11+
}

‎lib/processors/index.js

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module.exports = require('eslint-plugin-vue/lib/processor')

‎package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
"lint-staged": "^8.1.0"
4545
},
4646
"dependencies": {
47-
"eslint-plugin-vue": "^5.0.0"
47+
"eslint-plugin-vue": "^5.0.0",
48+
"vue-eslint-parser": "^4.0.2"
4849
}
4950
}

0 commit comments

Comments
 (0)
This repository has been archived.