mirror of
https://github.com/vuejs/babel-plugin-jsx.git
synced 2024-11-10 09:39:14 +08:00
ebbd992ba0
* style: formate code * chore: disable no-non-null-assertion * chore: test vHtml and vText * chore: set optimize as true in test * style: fix eslint warning * chore: v-model test * fix: v-model has not type should use vModelText * chore: use typescript to refactor test * fix: slots test * feat: support isCustomElement
44 lines
1.0 KiB
JavaScript
44 lines
1.0 KiB
JavaScript
module.exports = {
|
|
root: true,
|
|
parserOptions: {
|
|
ecmaVersion: 2020,
|
|
ecmaFeatures: {
|
|
jsx: true,
|
|
},
|
|
},
|
|
env: {
|
|
browser: true,
|
|
node: true,
|
|
jest: true,
|
|
es6: true,
|
|
},
|
|
parser: '@typescript-eslint/parser',
|
|
plugins: ['@typescript-eslint', 'import'],
|
|
extends: [
|
|
'eslint-config-airbnb-base',
|
|
'plugin:@typescript-eslint/recommended'
|
|
],
|
|
rules: {
|
|
'no-nested-ternary': [0],
|
|
'no-param-reassign': [0],
|
|
'no-use-before-define': [0],
|
|
'no-plusplus': [0],
|
|
'import/no-extraneous-dependencies': [0],
|
|
'consistent-return': [0],
|
|
'no-bitwise': [0],
|
|
'prefer-destructuring': [2, { 'array': false }],
|
|
'import/extensions': [2, 'ignorePackages', { ts: 'never' }],
|
|
'@typescript-eslint/ban-ts-comment': [0],
|
|
'@typescript-eslint/explicit-module-boundary-types': [0],
|
|
'@typescript-eslint/no-explicit-any': [0],
|
|
'@typescript-eslint/no-non-null-assertion': [0]
|
|
},
|
|
settings: {
|
|
'import/resolver': {
|
|
node: {
|
|
extensions: ['.js', '.jsx', '.ts', '.tsx']
|
|
}
|
|
}
|
|
}
|
|
};
|