UNPKG

@vyuh/sanity-schema-marketing

Version:

The Sanity schema package for the Marketing content blocks

38 lines (36 loc) 967 B
import reactHooks from 'eslint-plugin-react-hooks'; export default [ { extends: [ 'eslint:recommended', 'plugin:@typescript-eslint/recommended', 'plugin:react/recommended', ], parser: '@typescript-eslint/parser', parserOptions: { ecmaVersion: 2022, sourceType: 'module', ecmaFeatures: { jsx: true, }, }, plugins: ['@typescript-eslint', 'react'], settings: { react: { version: 'detect', }, }, rules: { 'react/react-in-jsx-scope': 'off', // Not needed in React 17+ 'react/prop-types': 'off', // We're using TypeScript '@typescript-eslint/explicit-module-boundary-types': 'off', '@typescript-eslint/no-explicit-any': 'warn', '@typescript-eslint/no-unused-vars': [ 'warn', { argsIgnorePattern: '^_' }, ], }, ignorePatterns: ['dist', 'node_modules'], }, reactHooks.configs['recommended-latest'], ];