Skip to content

Commit f07b3ff

Browse files
chore: use @nuxtjs/eslint-config
1 parent ad5e2dc commit f07b3ff

File tree

3 files changed

+76
-1268
lines changed

3 files changed

+76
-1268
lines changed

.eslintrc.js

+3-23
Original file line numberDiff line numberDiff line change
@@ -3,27 +3,7 @@ module.exports = {
33
parserOptions: {
44
sourceType: 'module'
55
},
6-
env: {
7-
browser: true,
8-
node: true,
9-
jest: true
10-
},
11-
extends: 'standard',
12-
plugins: [
13-
'jest'
14-
],
15-
rules: {
16-
// Allow paren-less arrow functions
17-
'arrow-parens': 0,
18-
// Allow async-await
19-
'generator-star-spacing': 0,
20-
// Allow debugger during development
21-
'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0,
22-
// Do not allow console.logs etc...
23-
'no-console': 2
24-
},
25-
globals: {
26-
'jest/globals': true,
27-
jasmine: true
28-
}
6+
extends: [
7+
"@nuxtjs"
8+
]
299
}

package.json

+2
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@
6060
"@babel/core": "^7.1.2",
6161
"@commitlint/cli": "^7.2.1",
6262
"@commitlint/config-conventional": "^7.1.2",
63+
"@nuxtjs/eslint-config": "^0.0.1",
6364
"@vue/server-test-utils": "^1.0.0-beta.15",
6465
"@vue/test-utils": "^1.0.0-beta.15",
6566
"babel-preset-vue-app": "^2.0.0",
@@ -72,6 +73,7 @@
7273
"eslint-plugin-node": "^7.0.1",
7374
"eslint-plugin-promise": "^4.0.1",
7475
"eslint-plugin-standard": "^4.0.0",
76+
"eslint-plugin-vue": "^4.7.1",
7577
"husky": "^1.0.0-rc.2",
7678
"jest": "^23.6.0",
7779
"jest-serializer-vue": "^2.0.2",

0 commit comments

Comments
 (0)