1.4.2 • Published 1 year ago

@qimpl/eslint-config v1.4.2

Weekly downloads
31
License
MIT
Repository
github
Last release
1 year ago

Qimpl Eslint/Prettier config

Qimpl shared eslint configuration

NPM

Usage

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

React

There is the .eslintrc.js config for React/React Native projects:

module.exports = {
  extends: '@qimpl/eslint-config/react',
};

With TypeScript:

Don't forget to add the parserOptions into your project Eslint config

module.exports = {
  extends: '@qimpl/eslint-config/react-typescript',
  parserOptions: {
    project: './tsconfig.json',
  },
};

Svelte

There is the .eslintrc.js config for Svelte projects:

module.exports = {
  extends: '@qimpl/eslint-config/svelte',
};

VS Code config

Once you have done. You probably want your editor to lint and fix for you.

  1. Install the ESLint package
  2. Now we need to setup some VS Code settings via Code/FilePreferencesSettings. Click to the {} icon in the top right corner and add this :
{
  "editor.codeActionsOnSave": {
    "source.fixAll.eslint": true
  }
}
1.4.2

1 year ago

1.4.1

3 years ago

1.3.8

3 years ago

1.3.7

3 years ago

1.3.6

3 years ago

1.3.5

3 years ago

1.3.4

3 years ago

1.3.3

3 years ago

1.3.2

3 years ago

1.3.1

3 years ago

1.3.0

3 years ago

1.2.0

3 years ago

1.1.0

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago