-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
34 lines (34 loc) · 1.01 KB
/
.eslintrc.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
module.exports = {
root: true,
env: {
browser: true,
mocha: true,
},
extends: [
'eslint:recommended',
// https://www.npmjs.com/package/eslint-config-airbnb-base
'airbnb-base',
// https://github.com/vuejs/eslint-plugin-vue
'plugin:vue/vue3-recommended',
],
rules: {
// Allow some things during development
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'max-len': process.env.NODE_ENV === 'production' ? 'error' : 'warn',
// Allow _xxx for unused arguments
'no-unused-vars': ['warn', { argsIgnorePattern: '^_' }],
// Allow some dangling underscores that PouchDB uses
'no-underscore-dangle': ['error', { allow: ['_id', '_rev']}],
// Allow for-of loops
'no-restricted-syntax': ['off', 'ForOfStatement'],
},
settings: {
// Resolve imports through webpack
'import/resolver': {
webpack: {
config: 'build/webpack.dev.js'
}
}
},
};