@epiijs/eslint-config

1.0.1 • Public • Published

@epiijs/eslint-config

About

This package combines many eslint rules for epiijs styled codes as an extensible shared config.

1.x can only work with eslint@9.

These following recommended rules are enabled.

  • by eslint
  • by typescript-eslint
  • about code style by epiijs
  • about import
  • about react by react and react-hooks

Usage

  1. Install this package and eslint as devDependencies.
npm install --save-dev @epiijs/eslint-config@latest eslint@latest
  1. Install ESLint extension in your VSCode.

  2. Create the eslint config file eslint.config.mjs.

import config from '@epiijs/eslint-config';

export default [
  {
    ignores: [
      'YourIgnoredFiles'
    ]
  },
  ...config,
  {
    languageOptions: {
      parserOptions: {
        projectService: true,
        tsconfigRootDir: import.meta.dirname
      }
    }
  }
];

Readme

Keywords

Package Sidebar

Install

npm i @epiijs/eslint-config

Weekly Downloads

111

Version

1.0.1

License

MIT

Unpacked Size

10.4 kB

Total Files

9

Last publish

Collaborators

  • sartrey