UNPKG

@magento/eslint-config

Version:

Shared ESLint configuration for Magento PWA-related projects

26 lines (24 loc) 673 B
const config = { env: { es6: true }, plugins: ['jsx-a11y', 'package-json', 'react', 'react-hooks'], extends: [ 'eslint:recommended', 'prettier', 'plugin:jsx-a11y/recommended', 'plugin:package-json/recommended' ], rules: { 'prefer-const': 'error', 'no-console': 'off', 'no-unused-vars': 'error', 'react/jsx-uses-vars': 'error', 'react/jsx-uses-react': 'error', 'react-hooks/exhaustive-deps': 'error', 'react-hooks/rules-of-hooks': 'error', 'no-duplicate-imports': 'error', 'one-var': ['error', 'never'] } }; module.exports = config;