@lego/eslint-config-react
Version:
LEGO shareable eslint config for js projects
27 lines • 728 B
JavaScript
;
process.env.LEGO_ESLINT_CONFIG_REACT = 'on';
const config = {
extends: [
'./rules/react',
'./rules/react-hooks', // lego react-hooks configuration
],
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 2018,
sourceType: 'module',
},
plugins: ['react', 'react-hooks'],
rules: {
'node/no-missing-import': ['error', { tryExtensions: ['.js', '.jsx', '.ts', '.tsx'] }],
},
settings: {
'import/extensions': ['.js', '.ts', '.jsx', '.tsx'],
'import/parsers': {
'@typescript-eslint/parser': ['.ts', '.tsx'],
},
},
};
module.exports = config;
//# sourceMappingURL=index.js.map