babel-plugin-jsx/.eslintrc.js

44 lines
1.0 KiB
JavaScript
Raw Normal View History

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',
2020-09-14 16:35:44 +08:00
'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],
2020-09-14 16:35:44 +08:00
'prefer-destructuring': [2, { array: false }],
'import/extensions': [0],
'@typescript-eslint/ban-ts-comment': [0],
'@typescript-eslint/explicit-module-boundary-types': [0],
'@typescript-eslint/no-explicit-any': [0],
2020-09-14 16:35:44 +08:00
'@typescript-eslint/no-non-null-assertion': [0],
},
settings: {
'import/resolver': {
node: {
2020-09-14 16:35:44 +08:00
extensions: ['.js', '.jsx', '.ts', '.tsx'],
},
},
},
};