mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-12-14 18:49:02 +08:00
61 lines
1.0 KiB
JavaScript
61 lines
1.0 KiB
JavaScript
module.exports = {
|
|
plugins: ['html'],
|
|
|
|
parserOptions: {
|
|
parser: 'babel-eslint',
|
|
sourceType: 'module',
|
|
},
|
|
|
|
env: {
|
|
es6: true,
|
|
node: true,
|
|
},
|
|
|
|
globals: {
|
|
document: false,
|
|
navigator: false,
|
|
window: false,
|
|
collect: false,
|
|
cy: false,
|
|
test: false,
|
|
expect: false,
|
|
it: false,
|
|
describe: false,
|
|
FileReader: false,
|
|
},
|
|
|
|
extends: [
|
|
'plugin:vue/base',
|
|
'airbnb-base',
|
|
],
|
|
|
|
rules: {
|
|
// required semicolons
|
|
'semi': ['error', 'never'],
|
|
|
|
// error handling
|
|
'no-console': ['error', { allow: ['warn', 'error'] }],
|
|
|
|
// indent
|
|
'no-tabs': 'off',
|
|
'indent': 'off',
|
|
|
|
// disable some import stuff
|
|
'import/extensions': 'off',
|
|
'import/no-extraneous-dependencies': 'off',
|
|
'import/no-unresolved': 'off',
|
|
'import/no-dynamic-require': 'off',
|
|
|
|
// disable for '__svg__'
|
|
'no-underscore-dangle': 'off',
|
|
|
|
'arrow-parens': ['error', 'as-needed'],
|
|
|
|
'padded-blocks': 'off',
|
|
|
|
'class-methods-use-this': 'off',
|
|
|
|
'global-require': 'off',
|
|
}
|
|
}
|