Skip to content

Commit b9aaf7d

Browse files
committed
Add linting
1 parent 09408d1 commit b9aaf7d

26 files changed

+1125
-55
lines changed

.eslintignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
/node_modules/
2+
/npm/
3+
/coverage/

.eslintrc.js

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
// http://eslint.org/docs/user-guide/configuring
2+
3+
module.exports = {
4+
root: true,
5+
parserOptions: {
6+
parser: 'babel-eslint',
7+
ecmaVersion: 2017,
8+
sourceType: "module"
9+
},
10+
env: {
11+
browser: true,
12+
jest: true
13+
},
14+
// https://github.com/feross/standard/blob/master/RULES.md#javascript-standard-style
15+
extends: [
16+
'standard',
17+
'plugin:vue/recommended'
18+
],
19+
// required to lint *.vue files
20+
plugins: [
21+
'vue'
22+
],
23+
// add your custom rules here
24+
rules: {
25+
// allow paren-less arrow functions
26+
'arrow-parens': 0,
27+
// allow async-await
28+
'generator-star-spacing': 0
29+
}
30+
}

0 commit comments

Comments
 (0)