mirror of
https://github.com/simon987/music-graph-ui.git
synced 2025-04-20 18:26:44 +00:00
54 lines
1.3 KiB
JavaScript
54 lines
1.3 KiB
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'
|
|
],
|
|
// check if imports actually resolve
|
|
'settings': {
|
|
'import/resolver': {
|
|
'webpack': {
|
|
'config': 'build/webpack.base.js'
|
|
}
|
|
}
|
|
},
|
|
// add your custom rules here
|
|
'rules': {
|
|
// Indent with 4 spaces
|
|
"indent": ["error", 4],
|
|
"no-param-reassign": 0,
|
|
"no-underscore-dangle": 0,
|
|
// 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
|
|
},
|
|
"globals": {
|
|
"describe": true,
|
|
"it": true,
|
|
"expect": true,
|
|
"window": true,
|
|
"document": true,
|
|
"__DEV__": true,
|
|
"__PROD__": true,
|
|
"__APP_MODE__": ""
|
|
},
|
|
};
|