Files
hoc-element-affix/.eslintrc.js

45 lines
790 B
JavaScript
Raw Normal View History

2020-04-03 16:34:17 +08:00
const eslintConfig = {
2020-10-06 17:03:32 +08:00
root: true,
parserOptions: {
parser: '@babel/eslint-parser',
ecmaVersion: 7,
sourceType: 'module',
ecmaFeatures: {
jsx: true
2020-04-03 16:34:17 +08:00
}
},
2020-10-06 17:03:32 +08:00
env: {
browser: true,
es6: true,
node: true
2020-04-03 16:34:17 +08:00
},
2020-10-06 17:03:32 +08:00
globals: {
console: true
2020-04-03 16:34:17 +08:00
},
2020-10-06 17:03:32 +08:00
extends: [
'plugin:vue/essential',
'plugin:vue/recommended',
'@vue/standard'
2020-04-03 16:34:17 +08:00
],
2020-10-06 17:03:32 +08:00
plugins: [
'@babel',
'vue'
2020-04-03 16:34:17 +08:00
],
2020-10-06 17:03:32 +08:00
rules: {
'no-var': 1,
'no-alert': 1,
'no-ternary': 0,
'no-self-assign': 0,
'standard/no-callback-literal': 0,
'func-call-spacing': 0,
'prefer-promise-reject-errors': 0,
'no-unused-vars': 1,
'no-debugger': 1,
'no-console': 1,
2022-07-24 14:44:10 +08:00
'no-useless-constructor': 'off',
'import/extensions': 0
2020-04-03 16:34:17 +08:00
}
2020-10-06 17:03:32 +08:00
}
2020-04-03 16:34:17 +08:00
2020-10-06 17:03:32 +08:00
module.exports = eslintConfig