UNPKG

@carto/ps-style-guide

Version:

CARTO's engineering style guide for Professional Services

32 lines (30 loc) 682 B
import pluginReact from 'eslint-plugin-react' import pluginJsxA11y from 'eslint-plugin-jsx-a11y' import * as reactHooks from 'eslint-plugin-react-hooks' /** @type {import('eslint').Linter.Config[]} */ export default [ pluginReact.configs.flat.recommended, pluginReact.configs.flat['jsx-runtime'], reactHooks.configs.recommended, { name: 'react', settings: { react: { version: 'detect', }, }, }, { name: 'react-a11y', plugins: { 'jsx-a11y': pluginJsxA11y, }, rules: pluginJsxA11y.configs.recommended.rules, }, { name: 'react-compiler', rules: { 'react-hooks/react-compiler': 'error', }, }, ]