2.2.3 • Published 4 months ago

@tuomashatakka/eslint-config v2.2.3

Weekly downloads
18
License
ISC
Repository
github
Last release
4 months ago

@tuomashatakka/eslint-config

Opinionated yet functional AF base config for ESLint using the new flat config format

For Next.js, React and TypeScript projects.

Installation

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

Usage

Using the full config

Create an eslint.config.js file in your project root:

import config from '@tuomashatakka/eslint-config'

export default config

Using just the rules

If you want to use only the rules in your own config:

import { rules } from '@tuomashatakka/eslint-config'

export default [
  // Your custom config here
  {
    // ...
    rules
  }
]

Features

  • TypeScript support
  • React/JSX support
  • Modern JavaScript features
  • Stylistic rules for consistent code formatting
  • Import/export validation

Structure

The package uses ESLint's flat config format and has a simple structure:

  • index.mjs - Exports the full config and rules
  • rules.mjs - Contains all the ESLint rules

Todo

  • Style imports aren't yet enforced to have an empty line between them and other imports.
  • I really love Python's enforced linting style for having two rows between major blocks and 1 row between minor. I should finish my block padding plugin some day for the ESLinter. My linting rules would really appreciate that.

License

ISC

2.2.3

4 months ago

2.2.2

8 months ago

2.2.1

8 months ago

2.1.2

9 months ago

2.2.0

9 months ago

2.1.1

9 months ago

2.1.4

9 months ago

2.1.0

9 months ago

2.0.0

9 months ago

0.2.2

6 years ago

0.2.1

6 years ago

0.2.0

6 years ago

0.1.17

7 years ago

0.1.16

7 years ago

0.1.15

7 years ago

0.1.14

7 years ago

0.1.13

7 years ago

0.1.12

7 years ago

0.1.11

7 years ago

0.1.10

7 years ago

0.1.9

7 years ago

0.1.8

8 years ago

0.1.7

8 years ago

0.1.6

8 years ago

0.1.5

8 years ago

0.1.4

8 years ago

0.1.3

8 years ago

0.1.2

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago