2.1.12 • Published 1 month ago

@agaroot/eslint-config-common v2.1.12

Weekly downloads
-
License
MIT
Repository
github
Last release
1 month ago

@agaroot/eslint-config-common

npm version npm download license Github

This is a ESLint config commonly inherited by AGAROOT products.

Use this setting to ensure consistent code writing and maintain high code quality.

🚀 Installation

$ npm install -D @agaroot/eslint-config-common

# Needs install peer dependencies
$ npm install -D @typescript-eslint/eslint-plugin @typescript-eslint/parser eslint eslint-import-resolver-typescript eslint-plugin-import eslint-plugin-unicorn eslint-plugin-unused-imports

👏 Getting Started

Create a .eslintrc.js file in the root directory of your project, and add @agaroot/eslint-config-common to the extends array.

/** @type {import('eslint').Linter.Config} */
module.exports = {
  root: true,
  extends: [
    '@agaroot/eslint-config-common',
  ],
};

If you are using TypeScript, you need to add the parserOptions and import/resolver settings.

/** @type {import('eslint').Linter.Config} */
module.exports = {
  root: true,
  extends: [
    '@agaroot/eslint-config-common',
  ],
  parserOptions: {
    project: './tsconfig.json',
  },
  settings: {
    'import/resolver': {
      typescript: {
        project: './tsconfig.json',
      },
    },
  },
};

🤝 Contributing

Contributions, issues and feature requests are welcome.

Feel free to check issues page if you want to contribute.

📝 License

Copyright © 2023 AGAROOT TECHNOLOGIES.

This project is MIT licensed.

2.1.12

1 month ago

2.1.11

2 months ago

2.1.10

2 months ago

2.1.9

3 months ago

2.1.8

3 months ago

2.1.7

5 months ago

2.1.2

7 months ago

2.1.4

6 months ago

2.1.3

6 months ago

2.1.6

6 months ago

2.1.5

6 months ago

2.1.1

7 months ago

2.1.0

7 months ago

2.0.0

7 months ago

1.0.0

7 months ago