patrick-mades-dev-tools
Version:
A collection of development tools and utilities Made by Patrick Made for Patrick Made (but feel free to use it for your own projects)
46 lines (45 loc) • 1.07 kB
JavaScript
"use strict";
/**
* ESLint Configuration
* Default configuration for ESLint
*/
Object.defineProperty(exports, "__esModule", { value: true });
const eslintConfig = `module.exports = {
env: {
es6: true,
node: true,
browser: true,
},
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 2021,
sourceType: 'module',
ecmaFeatures: {
jsx: true,
},
},
extends: [
'eslint:recommended',
'plugin:react/recommended',
'plugin:react-hooks/recommended',
'plugin:@typescript-eslint/recommended',
'prettier',
],
rules: {
'linebreak-style': ['error', 'unix'],
semi: ['error', 'always'],
'arrow-body-style': ['error', 'as-needed'],
'react-hooks/rules-of-hooks': 'error',
'react-hooks/exhaustive-deps': 'warn',
'react/display-name': 'off',
'react/react-in-jsx-scope': 'off',
'react/prop-types': 'off',
},
plugins: ['react', 'react-hooks', '@typescript-eslint'],
settings: {
react: {
version: 'detect',
},
},
};`;
exports.default = eslintConfig;