Skip to content

Commit 203d603

Browse files
authored
feat: add eslint-plugin-n (#18)
1 parent fe2bf30 commit 203d603

File tree

5 files changed

+86
-2
lines changed

5 files changed

+86
-2
lines changed

package-lock.json

+77-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
"eslint-config-prettier": "9.1.0",
2222
"eslint-plugin-import": "2.29.1",
2323
"eslint-plugin-jsx-a11y": "6.8.0",
24+
"eslint-plugin-n": "16.6.2",
2425
"eslint-plugin-no-unsanitized": "4.0.2",
2526
"eslint-plugin-react": "7.34.1",
2627
"eslint-plugin-react-hooks": "4.6.0",

src/configs/node.ts

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import { type ESLintConfig } from '../types'
2+
3+
export const node: ESLintConfig = {
4+
plugins: ['@flaminc'],
5+
extends: ['plugin:n/recommended'],
6+
}

src/configs/react.ts

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import { type ESLintConfig } from '../types'
33
export const react: ESLintConfig = {
44
plugins: ['@flaminc'],
55
extends: [
6-
'plugin:@flaminc/recommended',
76
'plugin:react/recommended',
87
'plugin:react/jsx-runtime',
98
'plugin:react-hooks/recommended',

src/index.ts

+2
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,13 @@ import { type ESLint } from 'eslint'
22

33
import { name, version } from '../package.json'
44

5+
import { node } from './configs/node'
56
import { react } from './configs/react'
67
import { recommended } from './configs/recommended'
78

89
const plugin: ESLint.Plugin = {
910
configs: {
11+
node,
1012
react,
1113
recommended,
1214
},

0 commit comments

Comments
 (0)