Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 0e90bb4

Browse filesBrowse files
committed
built: update eslint config
1 parent e338bbf commit 0e90bb4
Copy full SHA for 0e90bb4

File tree

Expand file treeCollapse file tree

1 file changed

+12
-7
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+12
-7
lines changed

‎.eslintrc.js

Copy file name to clipboardExpand all lines: .eslintrc.js
+12-7Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,23 @@ module.exports = {
88
jsx: true,
99
},
1010
},
11-
env: {
12-
jest: true
13-
},
1411
extends: [
12+
'plugin:vue/vue3-essential',
13+
'eslint:recommended',
1514
'@vue/typescript/recommended',
1615
'@vue/prettier',
1716
'@vue/prettier/@typescript-eslint',
18-
'eslint:recommended',
19-
'plugin:vue/vue3-recommended',
2017
],
2118
rules: {
22-
// Place to specify ESLint rules. Can be used to overwrite rules specified from the extended configs
23-
// e.g. "@typescript-eslint/explicit-function-return-type": "off",
19+
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
20+
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
2421
},
22+
overrides: [
23+
{
24+
files: ['**/__tests__/*.{j,t}s?(x)', '**/tests/unit/**/*.spec.{j,t}s?(x)'],
25+
env: {
26+
jest: true,
27+
},
28+
},
29+
],
2530
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.