@stzhu/eslint-config 0.2.0 → 0.3.1
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 +1 -0
- package/package.json +3 -2
- package/src/configs/typescript.js +1 -1
- package/src/ts.js +0 -2
- package/src/turbo.js +4 -0
package/README.md
CHANGED
|
@@ -42,6 +42,7 @@ Add these as needed:
|
|
|
42
42
|
- `@stzhu/eslint-config/vitest`: Vitest testing configuration
|
|
43
43
|
- `@stzhu/eslint-config/storybook`: Storybook configuration
|
|
44
44
|
- `@stzhu/eslint-config/tailwind`: Tailwind CSS configuration
|
|
45
|
+
- `@stzhu/eslint-config/turbo`: Turborepo monorepo
|
|
45
46
|
- `@stzhu/eslint-config/lingui`: Lingui internationalization configuration
|
|
46
47
|
|
|
47
48
|
## Example Configurations
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stzhu/eslint-config",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"description": "Shared config for ESLint",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint"
|
|
@@ -21,7 +21,8 @@
|
|
|
21
21
|
"./storybook": "./src/storybook.js",
|
|
22
22
|
"./vitest": "./src/vitest.js",
|
|
23
23
|
"./tailwind": "./src/tailwind.js",
|
|
24
|
-
"./lingui": "./src/lingui.js"
|
|
24
|
+
"./lingui": "./src/lingui.js",
|
|
25
|
+
"./turbo": "./src/turbo.js"
|
|
25
26
|
},
|
|
26
27
|
"dependencies": {
|
|
27
28
|
"@eslint/js": "^9.28.0",
|
package/src/ts.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import js from '@eslint/js';
|
|
2
2
|
import prettier from 'eslint-config-prettier';
|
|
3
|
-
import turbo from 'eslint-plugin-turbo';
|
|
4
3
|
import globals from 'globals';
|
|
5
4
|
import tseslint from 'typescript-eslint';
|
|
6
5
|
|
|
@@ -13,7 +12,6 @@ export default tseslint.config(
|
|
|
13
12
|
// name: 'ts/ignores',
|
|
14
13
|
ignores: ['dist/', '.wrangler/'],
|
|
15
14
|
},
|
|
16
|
-
turbo.configs['flat/recommended'],
|
|
17
15
|
Object.assign({ name: '@eslint/js/recommended' }, js.configs.recommended),
|
|
18
16
|
...importConfig,
|
|
19
17
|
{
|
package/src/turbo.js
ADDED