@slango.configs/eslint 1.0.2 → 1.0.4
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/CHANGELOG.md +12 -0
- package/package.json +10 -9
- package/src/presets/typescript-react.js +30 -0
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@slango.configs/eslint",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Slango eslint configs",
|
|
6
6
|
"type": "module",
|
|
@@ -11,19 +11,20 @@
|
|
|
11
11
|
"@eslint-community/eslint-plugin-eslint-comments": "4.4.1",
|
|
12
12
|
"@eslint/compat": "1.2.8",
|
|
13
13
|
"@eslint/eslintrc": "3.3.1",
|
|
14
|
-
"@eslint/js": "9.
|
|
15
|
-
"@next/eslint-plugin-next": "15.
|
|
16
|
-
"eslint": "9.
|
|
17
|
-
"eslint-config-next": "15.
|
|
18
|
-
"eslint-config-prettier": "10.1.
|
|
19
|
-
"eslint-import-resolver-typescript": "4.3.
|
|
20
|
-
"eslint-plugin-import-x": "4.10.
|
|
14
|
+
"@eslint/js": "9.24.0",
|
|
15
|
+
"@next/eslint-plugin-next": "15.3.0",
|
|
16
|
+
"eslint": "9.24.0",
|
|
17
|
+
"eslint-config-next": "15.3.0",
|
|
18
|
+
"eslint-config-prettier": "10.1.2",
|
|
19
|
+
"eslint-import-resolver-typescript": "4.3.2",
|
|
20
|
+
"eslint-plugin-import-x": "4.10.2",
|
|
21
21
|
"eslint-plugin-perfectionist": "4.11.0",
|
|
22
22
|
"eslint-plugin-prettier": "5.2.6",
|
|
23
23
|
"eslint-plugin-react-hooks": "5.2.0",
|
|
24
|
+
"eslint-plugin-react-refresh": "0.4.19",
|
|
24
25
|
"eslint-plugin-regexp": "2.7.0",
|
|
25
26
|
"globals": "16.0.0",
|
|
26
|
-
"typescript-eslint": "8.29.
|
|
27
|
+
"typescript-eslint": "8.29.1"
|
|
27
28
|
},
|
|
28
29
|
"scripts": {
|
|
29
30
|
"lint": "eslint . --max-warnings 0",
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import reactHooks from 'eslint-plugin-react-hooks';
|
|
2
|
+
import reactRefresh from 'eslint-plugin-react-refresh';
|
|
3
|
+
import globals from 'globals';
|
|
4
|
+
import tsEslint from 'typescript-eslint';
|
|
5
|
+
|
|
6
|
+
import { globs, typescriptConfigs } from '../common.js';
|
|
7
|
+
import javascriptNode from './javascript-node.js';
|
|
8
|
+
import { browserTypescriptBrowserConfig } from './typescript-browser.js';
|
|
9
|
+
import { baseTypescriptConfig } from './typescript.js';
|
|
10
|
+
|
|
11
|
+
export const reactTypescriptBrowserConfig = {
|
|
12
|
+
...baseTypescriptConfig,
|
|
13
|
+
languageOptions: {
|
|
14
|
+
...baseTypescriptConfig.languageOptions,
|
|
15
|
+
globals: {
|
|
16
|
+
...baseTypescriptConfig.languageOptions.globals,
|
|
17
|
+
...globals.browser,
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
name: '@slango.configs/eslint/typescript-react',
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
const typescriptReactConfig = [
|
|
24
|
+
...javascriptNode,
|
|
25
|
+
reactHooks.configs['recommended-latest'],
|
|
26
|
+
reactRefresh.configs.recommended,
|
|
27
|
+
...tsEslint.config(...typescriptConfigs(globs.typescript), browserTypescriptBrowserConfig),
|
|
28
|
+
];
|
|
29
|
+
|
|
30
|
+
export default typescriptReactConfig;
|