@ai-foundation/eslint-config

AI Foundation's default eslint configuration

Usage no npm install needed!

<script type="module">
  import aiFoundationEslintConfig from 'https://cdn.skypack.dev/@ai-foundation/eslint-config';
</script>

README

AI-Foundation/eslint-config

AI Foundation's eslint defaults as an extensible shared config.

Installation

Minimal requirements

yarn add --dev eslint eslint-config-aif eslint-config-prettier eslint-plugin-filenames eslint-plugin-import eslint-plugin-prettier prettier

Optional install for React projects

yarn add --dev eslint-plugin-jsx-a11y eslint-plugin-react

Configure ESLint

To activate the ESLint configuration, make sure to extend whichever config fits your project.

  • Use @ai-foundation for plain javascript projects
  • Use @ai-foundation/eslint-config/react for React projects