@growflow/eslint-config

Common ESLint configs for Growflow Org.

Usage no npm install needed!

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

README

GrowFlow Shared ESLint Configuration

Shareable ESLint configuration to apply consistent syntax and styling rules across GrowFlow projects.

Usage

You can install this package and all of its peer dependencies with install-peerdeps:

npx install-peerdeps --dev @growflow/eslint-config

You can then create a .eslintrc.js file with content similar to the following:

module.exports = {
  extends: ['@growflow'],
  parserOptions: {
    project: 'tsconfig.json', // if using typescript
  },
};

This will apply the core eslint config settings as well as settings to eslint your tests with Jest. If you are not using Jest or only want to include the core settings for whatever reason, you can extend the core config:

module.exports = {
  extends: ['@growflow/eslint-config/core'],
  parserOptions: {
    project: 'tsconfig.json', // if using typescript
  },
};

Or if you only want to include the Jest configuration with in an .eslintrc.js within a test folder, you can do that as well:

module.exports = {
  extends: ['@growflow/eslint-config/jest']
};

Editor Integration

You should be able to use your favorite editor's (*cough* VS Code) ESLint to easily format your code on save or with the Format command.