0.9.4 • Published 2 months ago

@nnecec/eslint-config v0.9.4

Weekly downloads
-
License
MIT
Repository
-
Last release
2 months ago

@nnecec/eslint-config

Features

  • Work friendly with Prettier.
  • Extends third-party-config:recommended first.
  • Default enabled: unicorn, sort-package-json, sort import & export, json.
  • Optional: TypeScript, React, Tailwind.CSS, jsdoc.
  • ESLint flat config (>=0.7.0).

Usage

$ npm install --save-dev @nnecec/eslint-config
# or
$ pnpm add @nnecec/eslint-config

Create eslint.config.js at your project:

import nnecec from '@nnecec/eslint-config'

export default nnecec()
// or
export default [
  ...nnecec(),
  {
    // your configs
  }
]

Options

type Options = {
  prettier: boolean // default: true
  unicorn: boolean // default: true
  'sort-package-json': boolean // default: true
  sort: boolean // default: true
  json: boolean // default: true
  // ------
  jsdoc: boolean // default: false
  typescript: boolean // default: false
  react: boolean // default: false
  tailwindcss: boolean // default: false
  node: boolean // default: false
}

Usage(legacy)

Install:

npm install --save-dev eslint @nnecec/eslint-config

Edit .eslintrc.js:

module.exports = {
  // Base config, includes Standard, Prettier, ImportSort, unicorn.
  extends: ['@nnecec/eslint-config'],
  // includes **Base** and TypeScript config.
  extends: ['@nnecec/eslint-config/typescript'],
  // includes **TypeScript** config and React config.
  extends: ['@nnecec/eslint-config/react'],
  // includes **React** config and Tailwind.
  extends: ['@nnecec/eslint-config/react-universal'],
}
0.9.4

2 months ago

0.9.3

2 months ago

0.9.2

2 months ago

0.9.0

3 months ago

0.9.1

3 months ago

0.8.10

4 months ago

0.8.9

4 months ago

0.8.8

4 months ago

0.8.7

5 months ago

0.8.6

5 months ago

0.8.5

5 months ago

0.7.6

5 months ago

0.8.4

5 months ago

0.7.5

6 months ago

0.8.1

5 months ago

0.7.2

6 months ago

0.6.3

8 months ago

0.8.0

5 months ago

0.7.1

6 months ago

0.6.2

9 months ago

0.8.3

5 months ago

0.7.4

6 months ago

0.8.2

5 months ago

0.7.3

6 months ago

0.6.4

8 months ago

0.5.0

10 months ago

0.7.0

6 months ago

0.6.1

9 months ago

0.6.0

9 months ago

0.5.1

10 months ago

0.4.2

11 months ago

0.3.0

12 months ago

0.2.7

1 year ago

0.4.1

11 months ago

0.4.0

11 months ago

0.3.1

11 months ago

0.2.1

1 year ago

0.2.0

1 year ago

0.2.6

1 year ago

0.2.3

1 year ago

0.2.2

1 year ago

0.2.5

1 year ago

0.2.4

1 year ago

0.1.0

1 year ago

0.1.1

1 year ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.5

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.4

2 years ago

0.0.1

2 years ago