2.2.3 • Published 6 months ago
@tuomashatakka/eslint-config v2.2.3
@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 rulesrules.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
6 months ago
2.2.2
9 months ago
2.2.1
10 months ago
2.1.2
10 months ago
2.2.0
10 months ago
2.1.1
10 months ago
2.1.4
10 months ago
2.1.0
10 months ago
2.0.0
10 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
8 years ago
0.1.12
8 years ago
0.1.11
8 years ago
0.1.10
8 years ago
0.1.9
8 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