tiptap/.eslintrc.js

63 lines
1.1 KiB
JavaScript
Raw Normal View History

2018-08-21 05:02:21 +08:00
module.exports = {
plugins: ['html'],
parserOptions: {
2018-12-20 04:55:32 +08:00
parser: 'babel-eslint',
2018-08-21 05:02:21 +08:00
sourceType: 'module',
},
env: {
es6: true,
node: true,
},
globals: {
document: false,
navigator: false,
window: false,
collect: false,
cy: false,
2018-11-10 06:01:23 +08:00
test: false,
expect: false,
2018-08-21 05:02:21 +08:00
it: false,
describe: false,
2018-11-10 06:01:23 +08:00
FileReader: false,
2018-08-21 05:02:21 +08:00
},
extends: [
2018-12-20 04:55:32 +08:00
'plugin:vue/base',
2018-08-21 05:02:21 +08:00
'airbnb-base',
],
rules: {
// required semicolons
2018-11-09 04:46:12 +08:00
'semi': ['error', 'never'],
2018-08-21 05:02:21 +08:00
// error handling
'no-console': ['error', { allow: ['warn', 'error'] }],
2018-08-21 05:02:21 +08:00
// 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',
2019-02-05 07:03:27 +08:00
'func-names': ['error', 'never'],
2018-08-21 05:02:21 +08:00
}
2018-11-09 04:46:12 +08:00
}