@seanblonien/eslint-config-react 1.0.2 → 1.0.3
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 +38 -3
- package/dist/index.d.ts +13 -1
- package/dist/index.js +29 -0
- package/dist/index.js.map +1 -1
- package/package.json +9 -3
package/README.md
CHANGED
|
@@ -8,23 +8,29 @@ Sean Blonien's opinionated ESLint config for TypeScript & React projects. **This
|
|
|
8
8
|
|
|
9
9
|
## Installation
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
This package provides two configurations: one for standard React projects and one for Next.js projects.
|
|
12
12
|
|
|
13
13
|
**Note:** This package automatically includes `@seanblonien/eslint-config-base` as a dependency, so you don't need to install it separately.
|
|
14
|
-
|
|
15
14
|
```sh
|
|
16
15
|
# pnpm
|
|
17
16
|
pnpm add -D eslint @seanblonien/eslint-config-react
|
|
17
|
+
pnpm add -D eslint @seanblonien/eslint-config-react @next/eslint-plugin-next # For Next.js projects only
|
|
18
18
|
|
|
19
19
|
# npm
|
|
20
20
|
npm install -D eslint @seanblonien/eslint-config-react
|
|
21
|
+
npm install -D eslint @seanblonien/eslint-config-react @next/eslint-plugin-next # For Next.js projects only
|
|
21
22
|
|
|
22
23
|
# yarn
|
|
23
24
|
yarn add -D eslint @seanblonien/eslint-config-react
|
|
25
|
+
yarn add -D eslint @seanblonien/eslint-config-react @next/eslint-plugin-next # For Next.js projects only
|
|
24
26
|
```
|
|
25
27
|
|
|
26
28
|
## Usage
|
|
27
29
|
|
|
30
|
+
### Standard React Projects
|
|
31
|
+
|
|
32
|
+
Use the default export for React projects without Next.js:
|
|
33
|
+
|
|
28
34
|
```ts
|
|
29
35
|
// eslint.config.ts
|
|
30
36
|
import reactConfig from '@seanblonien/eslint-config-react';
|
|
@@ -33,7 +39,7 @@ export default [
|
|
|
33
39
|
...reactConfig,
|
|
34
40
|
{
|
|
35
41
|
rules: {
|
|
36
|
-
|
|
42
|
+
// Override rules as needed
|
|
37
43
|
},
|
|
38
44
|
},
|
|
39
45
|
{
|
|
@@ -42,6 +48,27 @@ export default [
|
|
|
42
48
|
];
|
|
43
49
|
```
|
|
44
50
|
|
|
51
|
+
### Next.js Projects
|
|
52
|
+
|
|
53
|
+
Use the `configWithNext` named export for Next.js projects (includes Next.js recommended rules and Core Web Vitals):
|
|
54
|
+
|
|
55
|
+
```ts
|
|
56
|
+
// eslint.config.ts
|
|
57
|
+
import { configWithNext } from '@seanblonien/eslint-config-react';
|
|
58
|
+
|
|
59
|
+
export default [
|
|
60
|
+
...configWithNext(),
|
|
61
|
+
{
|
|
62
|
+
rules: {
|
|
63
|
+
// Override rules as needed
|
|
64
|
+
},
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
ignores: ['dist/**', 'build/**', '.next/**'],
|
|
68
|
+
},
|
|
69
|
+
];
|
|
70
|
+
```
|
|
71
|
+
|
|
45
72
|
## What's Included
|
|
46
73
|
|
|
47
74
|
This config extends [@seanblonien/eslint-config-base](https://github.com/seanblonien/seanblonien-eslint-config/tree/main/packages/eslint-config-base) and builds on top of the following additional direct dependencies:
|
|
@@ -53,6 +80,14 @@ This config extends [@seanblonien/eslint-config-base](https://github.com/seanblo
|
|
|
53
80
|
- **[eslint-plugin-jsx-a11y](https://www.npmjs.com/package/eslint-plugin-jsx-a11y)** - Accessibility rules for JSX elements
|
|
54
81
|
- **[eslint-plugin-react-compiler](https://www.npmjs.com/package/eslint-plugin-react-compiler)** - Linting support for the experimental React Compiler
|
|
55
82
|
|
|
83
|
+
### Optional Next.js Support
|
|
84
|
+
|
|
85
|
+
When using the `configWithNext` export, the following additional plugin is required:
|
|
86
|
+
|
|
87
|
+
- **[@next/eslint-plugin-next](https://www.npmjs.com/package/@next/eslint-plugin-next)** - Next.js-specific linting rules including Core Web Vitals checks
|
|
88
|
+
|
|
89
|
+
**Important:** When using `configWithNext`, you must **not** also add `@next/eslint-plugin-next` / `@next/next` in your own ESLint config (for example in `plugins` or other shared configs). This config already registers the plugin, and ESLint will error if a plugin with the same key is loaded twice.
|
|
90
|
+
|
|
56
91
|
## Requirements
|
|
57
92
|
|
|
58
93
|
- Node.js >= 20
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
import { Linter } from 'eslint';
|
|
2
2
|
|
|
3
3
|
declare const config: Linter.Config[];
|
|
4
|
+
/**
|
|
5
|
+
* React ESLint config with Next.js plugin support.
|
|
6
|
+
* Requires @next/eslint-plugin-next to be installed as a peer dependency.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```ts
|
|
10
|
+
* import { configWithNext } from '@seanblonien/eslint-config-react';
|
|
11
|
+
*
|
|
12
|
+
* export default [...configWithNext()];
|
|
13
|
+
* ```
|
|
14
|
+
*/
|
|
15
|
+
declare const configWithNext: () => Linter.Config[];
|
|
4
16
|
|
|
5
|
-
export { config as default };
|
|
17
|
+
export { configWithNext, config as default };
|
package/dist/index.js
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
2
|
+
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
3
|
+
}) : x)(function(x) {
|
|
4
|
+
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
5
|
+
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
6
|
+
});
|
|
7
|
+
|
|
1
8
|
// src/index.ts
|
|
2
9
|
import baseConfig, { booleanNameConvention } from "@seanblonien/eslint-config-base";
|
|
3
10
|
import jsxA11y from "eslint-plugin-jsx-a11y";
|
|
@@ -119,8 +126,30 @@ var config = [
|
|
|
119
126
|
}
|
|
120
127
|
}
|
|
121
128
|
];
|
|
129
|
+
var configWithNext = () => {
|
|
130
|
+
try {
|
|
131
|
+
const nextPlugin = __require("@next/eslint-plugin-next");
|
|
132
|
+
return [
|
|
133
|
+
...config,
|
|
134
|
+
{
|
|
135
|
+
plugins: {
|
|
136
|
+
"@next/next": nextPlugin
|
|
137
|
+
},
|
|
138
|
+
rules: {
|
|
139
|
+
...nextPlugin.configs.recommended.rules,
|
|
140
|
+
...nextPlugin.configs["core-web-vitals"].rules
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
];
|
|
144
|
+
} catch {
|
|
145
|
+
throw new Error(
|
|
146
|
+
"@next/eslint-plugin-next is required to use configWithNext. Install it with: pnpm add -D @next/eslint-plugin-next"
|
|
147
|
+
);
|
|
148
|
+
}
|
|
149
|
+
};
|
|
122
150
|
var index_default = config;
|
|
123
151
|
export {
|
|
152
|
+
configWithNext,
|
|
124
153
|
index_default as default
|
|
125
154
|
};
|
|
126
155
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/naming-convention -- config file */\nimport baseConfig, { booleanNameConvention } from '@seanblonien/eslint-config-base';\n// @ts-expect-error - no types available\nimport jsxA11y from 'eslint-plugin-jsx-a11y';\nimport reactPlugin from 'eslint-plugin-react';\nimport reactCompilerPlugin from 'eslint-plugin-react-compiler';\nimport reactHooks from 'eslint-plugin-react-hooks';\nimport reactHooksAddonsPlugin from 'eslint-plugin-react-hooks-addons';\nimport type { Linter } from 'eslint';\n\nconst config: Linter.Config[] = [\n // Spread base config\n ...baseConfig,\n\n // React compiler and hooks addons\n reactCompilerPlugin.configs.recommended,\n reactHooksAddonsPlugin.configs.recommended,\n reactPlugin.configs.flat.recommended,\n (reactHooks.configs as unknown as { flat: { recommended: Linter.Config } }\n ).flat.recommended,\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access -- incorrect type definition from package\n jsxA11y.flatConfigs.recommended as Linter.Config,\n\n // React plugin configuration\n {\n files: ['**/*.{tsx,jsx}'],\n languageOptions: {\n globals: {\n React: 'readonly',\n },\n parserOptions: {\n ecmaFeatures: {\n jsx: true,\n },\n },\n },\n settings: {\n react: {\n version: 'detect',\n },\n },\n rules: {\n // TS rule overrides for JSX files\n '@typescript-eslint/no-magic-numbers': 'off',\n '@typescript-eslint/restrict-template-expressions': 'off',\n '@typescript-eslint/no-use-before-define': 'off',\n 'unicorn/filename-case': [\n 'warn',\n {\n cases: { pascalCase: true, kebabCase: true },\n },\n ],\n 'padding-line-between-statements': [\n 'warn',\n { blankLine: 'always', prev: '*', next: 'return' },\n ],\n\n // --- React Rules ---\n // General React rules\n 'react/style-prop-object': 'off', // Keep off for RN\n 'react/prop-types': 'off',\n 'react/react-in-jsx-scope': 'off', // Not needed with new JSX transform\n 'react/no-multi-comp': ['error', { ignoreStateless: true }],\n 'react/no-array-index-key': 'warn',\n 'react/void-dom-elements-no-children': 'error',\n 'react/destructuring-assignment': ['warn', 'always'],\n 'react/boolean-prop-naming': ['warn', { rule: booleanNameConvention }],\n\n // Component definition rules\n 'react/function-component-definition': ['error', { namedComponents: 'arrow-function' }],\n 'react/jsx-filename-extension': ['error', { extensions: ['.tsx'] }],\n 'react/self-closing-comp': 'warn',\n\n // JSX formatting rules\n 'react/jsx-curly-brace-presence': 'warn',\n 'react/jsx-closing-bracket-location': ['warn', 'line-aligned'],\n 'react/jsx-no-useless-fragment': ['warn', { allowExpressions: true }],\n 'react/jsx-first-prop-new-line': ['warn'],\n 'react/jsx-tag-spacing': ['warn', { beforeClosing: 'never' }],\n 'react/jsx-key': 'error',\n 'react/jsx-max-depth': ['error', { max: 6 }],\n 'react/jsx-no-comment-textnodes': 'warn',\n 'react/jsx-boolean-value': ['error', 'never'],\n 'react/jsx-props-no-multi-spaces': 'error',\n\n // JSX multiline formatting\n '@stylistic/multiline-ternary': ['warn', 'always-multiline', { ignoreJSX: true }],\n '@stylistic/jsx-wrap-multilines': [\n 'warn',\n {\n declaration: 'parens-new-line',\n assignment: 'parens-new-line',\n return: 'parens-new-line',\n arrow: 'parens-new-line',\n condition: 'ignore',\n logical: 'ignore',\n prop: 'ignore',\n },\n ],\n\n // Props handling rules\n 'react/jsx-sort-props': ['warn', { shorthandFirst: true, callbacksLast: true, reservedFirst: true }],\n 'react/jsx-props-no-spreading': [\n 'error',\n {\n exceptions: [\n 'ScrollView',\n 'Component',\n 'Container',\n 'Screen',\n 'AppProvider',\n 'Checkbox.Item',\n 'TextInputPaper',\n 'StatusIcon',\n 'CircularProgressBase',\n 'CircularProgress',\n ],\n },\n ],\n\n // --- React Hooks Rules ---\n 'react-hooks-addons/no-unused-deps': 'warn',\n 'react-hooks/exhaustive-deps': [\n 'warn',\n {\n additionalHooks:\n '(useEffectIgnoreFirstRender|useAsyncEffect|useEffectDebounce|useEffectIgnoreFirstRender|useEffectInterval|useMemoCache|useMemoCacheKey|useMemoTiming|useCallbackThrottle)',\n },\n ],\n },\n },\n];\n\nexport default config;\n\n/* eslint-enable @typescript-eslint/naming-convention */\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/naming-convention -- config file */\nimport baseConfig, { booleanNameConvention } from '@seanblonien/eslint-config-base';\n// @ts-expect-error - no types available\nimport jsxA11y from 'eslint-plugin-jsx-a11y';\nimport reactPlugin from 'eslint-plugin-react';\nimport reactCompilerPlugin from 'eslint-plugin-react-compiler';\nimport reactHooks from 'eslint-plugin-react-hooks';\nimport reactHooksAddonsPlugin from 'eslint-plugin-react-hooks-addons';\nimport type { Linter } from 'eslint';\n\nconst config: Linter.Config[] = [\n // Spread base config\n ...baseConfig,\n\n // React compiler and hooks addons\n reactCompilerPlugin.configs.recommended,\n reactHooksAddonsPlugin.configs.recommended,\n reactPlugin.configs.flat.recommended,\n (reactHooks.configs as unknown as { flat: { recommended: Linter.Config } }\n ).flat.recommended,\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access -- incorrect type definition from package\n jsxA11y.flatConfigs.recommended as Linter.Config,\n\n // React plugin configuration\n {\n files: ['**/*.{tsx,jsx}'],\n languageOptions: {\n globals: {\n React: 'readonly',\n },\n parserOptions: {\n ecmaFeatures: {\n jsx: true,\n },\n },\n },\n settings: {\n react: {\n version: 'detect',\n },\n },\n rules: {\n // TS rule overrides for JSX files\n '@typescript-eslint/no-magic-numbers': 'off',\n '@typescript-eslint/restrict-template-expressions': 'off',\n '@typescript-eslint/no-use-before-define': 'off',\n 'unicorn/filename-case': [\n 'warn',\n {\n cases: { pascalCase: true, kebabCase: true },\n },\n ],\n 'padding-line-between-statements': [\n 'warn',\n { blankLine: 'always', prev: '*', next: 'return' },\n ],\n\n // --- React Rules ---\n // General React rules\n 'react/style-prop-object': 'off', // Keep off for RN\n 'react/prop-types': 'off',\n 'react/react-in-jsx-scope': 'off', // Not needed with new JSX transform\n 'react/no-multi-comp': ['error', { ignoreStateless: true }],\n 'react/no-array-index-key': 'warn',\n 'react/void-dom-elements-no-children': 'error',\n 'react/destructuring-assignment': ['warn', 'always'],\n 'react/boolean-prop-naming': ['warn', { rule: booleanNameConvention }],\n\n // Component definition rules\n 'react/function-component-definition': ['error', { namedComponents: 'arrow-function' }],\n 'react/jsx-filename-extension': ['error', { extensions: ['.tsx'] }],\n 'react/self-closing-comp': 'warn',\n\n // JSX formatting rules\n 'react/jsx-curly-brace-presence': 'warn',\n 'react/jsx-closing-bracket-location': ['warn', 'line-aligned'],\n 'react/jsx-no-useless-fragment': ['warn', { allowExpressions: true }],\n 'react/jsx-first-prop-new-line': ['warn'],\n 'react/jsx-tag-spacing': ['warn', { beforeClosing: 'never' }],\n 'react/jsx-key': 'error',\n 'react/jsx-max-depth': ['error', { max: 6 }],\n 'react/jsx-no-comment-textnodes': 'warn',\n 'react/jsx-boolean-value': ['error', 'never'],\n 'react/jsx-props-no-multi-spaces': 'error',\n\n // JSX multiline formatting\n '@stylistic/multiline-ternary': ['warn', 'always-multiline', { ignoreJSX: true }],\n '@stylistic/jsx-wrap-multilines': [\n 'warn',\n {\n declaration: 'parens-new-line',\n assignment: 'parens-new-line',\n return: 'parens-new-line',\n arrow: 'parens-new-line',\n condition: 'ignore',\n logical: 'ignore',\n prop: 'ignore',\n },\n ],\n\n // Props handling rules\n 'react/jsx-sort-props': ['warn', { shorthandFirst: true, callbacksLast: true, reservedFirst: true }],\n 'react/jsx-props-no-spreading': [\n 'error',\n {\n exceptions: [\n 'ScrollView',\n 'Component',\n 'Container',\n 'Screen',\n 'AppProvider',\n 'Checkbox.Item',\n 'TextInputPaper',\n 'StatusIcon',\n 'CircularProgressBase',\n 'CircularProgress',\n ],\n },\n ],\n\n // --- React Hooks Rules ---\n 'react-hooks-addons/no-unused-deps': 'warn',\n 'react-hooks/exhaustive-deps': [\n 'warn',\n {\n additionalHooks:\n '(useEffectIgnoreFirstRender|useAsyncEffect|useEffectDebounce|useEffectIgnoreFirstRender|useEffectInterval|useMemoCache|useMemoCacheKey|useMemoTiming|useCallbackThrottle)',\n },\n ],\n },\n },\n];\n\n/**\n * React ESLint config with Next.js plugin support.\n * Requires @next/eslint-plugin-next to be installed as a peer dependency.\n *\n * @example\n * ```ts\n * import { configWithNext } from '@seanblonien/eslint-config-react';\n *\n * export default [...configWithNext()];\n * ```\n */\nexport const configWithNext = (): Linter.Config[] => {\n try {\n // eslint-disable-next-line @typescript-eslint/no-require-imports, unicorn/prefer-module -- optional peer dependency\n const nextPlugin = require('@next/eslint-plugin-next') as {\n configs: {\n 'core-web-vitals': Linter.Config;\n 'recommended': Linter.Config;\n };\n };\n\n return [\n ...config,\n {\n plugins: {\n '@next/next': nextPlugin,\n },\n rules: {\n ...nextPlugin.configs.recommended.rules,\n ...nextPlugin.configs['core-web-vitals'].rules,\n },\n },\n ];\n } catch {\n throw new Error(\n '@next/eslint-plugin-next is required to use configWithNext. ' +\n 'Install it with: pnpm add -D @next/eslint-plugin-next',\n );\n }\n};\n\nexport default config;\n\n/* eslint-enable @typescript-eslint/naming-convention */\n"],"mappings":";;;;;;;;AACA,OAAO,cAAc,6BAA6B;AAElD,OAAO,aAAa;AACpB,OAAO,iBAAiB;AACxB,OAAO,yBAAyB;AAChC,OA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c;AAAA,QAChB;AAAA,QACA,OAAO;AAAA,UACL,GAAG,WAAW,QAAQ,YAAY;AAAA,UAClC,GAAG,WAAW,QAAQ,iBAAiB,EAAE;AAAA,QAC3C;AAAA,MACF;AAAA,IACF;AAAA,EACF,QAAQ;AACN,UAAM,IAAI;AAAA,MACR;AAAA,IAEF;AAAA,EACF;AACF;AAEA,IAAO,gBAAQ;","names":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@seanblonien/eslint-config-react",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "Sean Blonien's opinionated ESLint config for TypeScript & React projects",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"dist"
|
|
34
34
|
],
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@seanblonien/eslint-config-base": "1.0.
|
|
36
|
+
"@seanblonien/eslint-config-base": "1.0.3",
|
|
37
37
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
38
38
|
"eslint-plugin-react": "^7.37.5",
|
|
39
39
|
"eslint-plugin-react-compiler": "19.1.0-rc.2",
|
|
@@ -49,7 +49,13 @@
|
|
|
49
49
|
"vitest": "^4.0.9"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
52
|
-
"eslint": ">= 9"
|
|
52
|
+
"eslint": ">= 9",
|
|
53
|
+
"@next/eslint-plugin-next": ">= 15"
|
|
54
|
+
},
|
|
55
|
+
"peerDependenciesMeta": {
|
|
56
|
+
"@next/eslint-plugin-next": {
|
|
57
|
+
"optional": true
|
|
58
|
+
}
|
|
53
59
|
},
|
|
54
60
|
"publishConfig": {
|
|
55
61
|
"access": "public"
|