mirror of
https://gitee.com/mafgwo/stackedit
synced 2024-11-15 19:22:27 +08:00
07d824faca
New localDbSvc.getWorkspaceItems method used to export workspaces. Added offline availability in the workspace management modal. New accordion in the badge management modal. Add badge creation checks in unit tests.
45 lines
1010 B
JavaScript
45 lines
1010 B
JavaScript
// http://eslint.org/docs/user-guide/configuring
|
|
|
|
module.exports = {
|
|
root: true,
|
|
parser: 'babel-eslint',
|
|
parserOptions: {
|
|
sourceType: 'module'
|
|
},
|
|
env: {
|
|
browser: true,
|
|
},
|
|
extends: 'airbnb-base',
|
|
// required to lint *.vue files
|
|
plugins: [
|
|
'html'
|
|
],
|
|
globals: {
|
|
"NODE_ENV": false,
|
|
"VERSION": false
|
|
},
|
|
// check if imports actually resolve
|
|
'settings': {
|
|
'import/resolver': {
|
|
'webpack': {
|
|
'config': 'build/webpack.base.conf.js'
|
|
}
|
|
}
|
|
},
|
|
// add your custom rules here
|
|
'rules': {
|
|
'no-param-reassign': [2, { 'props': false }],
|
|
// don't require .vue extension when importing
|
|
'import/extensions': ['error', 'always', {
|
|
'js': 'never',
|
|
'vue': 'never'
|
|
}],
|
|
// allow optionalDependencies
|
|
'import/no-extraneous-dependencies': ['error', {
|
|
'optionalDependencies': ['test/unit/index.js']
|
|
}],
|
|
// allow debugger during development
|
|
'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0
|
|
}
|
|
}
|