@tuomashatakka/eslint-config 2.2.2 → 2.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,9 +1,57 @@
1
- # Rules for my linter
1
+ # @tuomashatakka/eslint-config
2
2
 
3
- Heavily opionated yet heavily clean and effective linter configuration for ESLint.
3
+ > Opinionated yet functional AF base config for ESLint using the new flat config format
4
4
 
5
- For Next, React and TS
5
+ For Next.js, React and TypeScript projects.
6
6
 
7
+ ## Installation
8
+
9
+ ```bash
10
+ npm install --save-dev @tuomashatakka/eslint-config
11
+ ```
12
+
13
+ ## Usage
14
+
15
+ ### Using the full config
16
+
17
+ Create an `eslint.config.js` file in your project root:
18
+
19
+ ```javascript
20
+ import config from '@tuomashatakka/eslint-config'
21
+
22
+ export default config
23
+ ```
24
+
25
+ ### Using just the rules
26
+
27
+ If you want to use only the rules in your own config:
28
+
29
+ ```javascript
30
+ import { rules } from '@tuomashatakka/eslint-config'
31
+
32
+ export default [
33
+ // Your custom config here
34
+ {
35
+ // ...
36
+ rules
37
+ }
38
+ ]
39
+ ```
40
+
41
+ ## Features
42
+
43
+ - TypeScript support
44
+ - React/JSX support
45
+ - Modern JavaScript features
46
+ - Stylistic rules for consistent code formatting
47
+ - Import/export validation
48
+
49
+ ## Structure
50
+
51
+ The package uses ESLint's flat config format and has a simple structure:
52
+
53
+ - `index.mjs` - Exports the full config and rules
54
+ - `rules.mjs` - Contains all the ESLint rules
7
55
 
8
56
  ### Todo
9
57
 
@@ -11,3 +59,7 @@ For Next, React and TS
11
59
  - I really love Python's enforced linting style for having two rows between major blocks
12
60
  and 1 row between minor. I should finish my block padding plugin some day for the ESLinter.
13
61
  My linting rules would really appreciate that.
62
+
63
+ ## License
64
+
65
+ ISC