mirror of
https://github.com/vuejs/babel-plugin-jsx.git
synced 2025-04-24 02:22:33 +08:00
fix: eslint errors
This commit is contained in:
parent
b23cfe0020
commit
371f6a59de
16
.eslintrc.js
16
.eslintrc.js
@ -16,7 +16,7 @@ module.exports = {
|
|||||||
plugins: ['@typescript-eslint', 'import'],
|
plugins: ['@typescript-eslint', 'import'],
|
||||||
extends: [
|
extends: [
|
||||||
'eslint-config-airbnb-base',
|
'eslint-config-airbnb-base',
|
||||||
'plugin:@typescript-eslint/recommended'
|
'plugin:@typescript-eslint/recommended',
|
||||||
],
|
],
|
||||||
rules: {
|
rules: {
|
||||||
'no-nested-ternary': [0],
|
'no-nested-ternary': [0],
|
||||||
@ -26,18 +26,18 @@ module.exports = {
|
|||||||
'import/no-extraneous-dependencies': [0],
|
'import/no-extraneous-dependencies': [0],
|
||||||
'consistent-return': [0],
|
'consistent-return': [0],
|
||||||
'no-bitwise': [0],
|
'no-bitwise': [0],
|
||||||
'prefer-destructuring': [2, { 'array': false }],
|
'prefer-destructuring': [2, { array: false }],
|
||||||
'import/extensions': [2, 'ignorePackages', { ts: 'never' }],
|
'import/extensions': [0],
|
||||||
'@typescript-eslint/ban-ts-comment': [0],
|
'@typescript-eslint/ban-ts-comment': [0],
|
||||||
'@typescript-eslint/explicit-module-boundary-types': [0],
|
'@typescript-eslint/explicit-module-boundary-types': [0],
|
||||||
'@typescript-eslint/no-explicit-any': [0],
|
'@typescript-eslint/no-explicit-any': [0],
|
||||||
'@typescript-eslint/no-non-null-assertion': [0]
|
'@typescript-eslint/no-non-null-assertion': [0],
|
||||||
},
|
},
|
||||||
settings: {
|
settings: {
|
||||||
'import/resolver': {
|
'import/resolver': {
|
||||||
node: {
|
node: {
|
||||||
extensions: ['.js', '.jsx', '.ts', '.tsx']
|
extensions: ['.js', '.jsx', '.ts', '.tsx'],
|
||||||
}
|
},
|
||||||
}
|
},
|
||||||
}
|
},
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user