@antscorp/eslint-config-antsomi

1.0.6 • Public • Published

@antscorp/eslint-config-antsomi

Version Downloads Last commit

This package provides Antsomi's .eslintrc as an extensible shared config.

Usage

We export ESLint configurations for your usage.

Setup

1) Install dependencies (and peer dependencies)

npx install-peerdeps --dev @antscorp/eslint-config-antsomi

2) Configure Eslint

Within your ESLint config file:

extends: [
+ '@antscorp/antsomi'
]

3) Configure the ESLint TypeScript parser

This config requires knowledge of your TypeScript config.

In your ESLint config, set parserOptions.project to the path of your tsconfig.json.

For example:

{
  extends: ['@antscorp/antsomi'],
+ parserOptions: {
+   project: './tsconfig.json'
+ }
}

5) Run ESLint

Open a terminal to the root of your project, and run the following command:

yarn run eslint --ext js,ts,tsx

Package Sidebar

Install

npm i @antscorp/eslint-config-antsomi

Weekly Downloads

5

Version

1.0.6

License

MIT

Unpacked Size

5.61 kB

Total Files

4

Last publish

Collaborators

  • cuongcn
  • ngocthangh
  • datle0497
  • vinlt.antsomi
  • khanhhv
  • sangndd-antsomi