Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var jsExtensions = ['.js', '.jsx'];
- var tsExtensions = ['.ts', '.tsx'];
- var allExtensions = jsExtensions.concat(tsExtensions);
- module.exports = {
- plugins: ['import'],
- extends: [
- 'plugin:react/recommended',
- 'plugin:@typescript-eslint/recommended',
- 'airbnb',
- 'plugin:prettier/recommended'
- ],
- parserOptions: {
- ecmaVersion: 2018,
- sourceType: 'module',
- ecmaFeatures: {
- jsx: true,
- },
- },
- settings: {
- 'import/extensions': allExtensions,
- 'import/parsers': {
- '@typescript-eslint/parser': tsExtensions
- },
- 'import/resolver': {
- 'node': {
- 'extensions': allExtensions
- }
- },
- react: {
- version: 'detect',
- },
- },
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement