@kurateh/oxlint-config 0.0.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/dist/index.cjs ADDED
@@ -0,0 +1,130 @@
1
+ 'use strict';
2
+
3
+ // ../../node_modules/.pnpm/oxlint@1.73.0_oxlint-tsgolint@0.24.0/node_modules/oxlint/dist/index.js
4
+ function defineConfig(config) {
5
+ return config;
6
+ }
7
+
8
+ // index.ts
9
+ var index_default = defineConfig({
10
+ jsPlugins: [
11
+ "@kurateh/eslint-plugin",
12
+ "eslint-plugin-perfectionist",
13
+ "eslint-plugin-unused-imports",
14
+ {
15
+ name: "react-fallback",
16
+ specifier: "eslint-plugin-react"
17
+ }
18
+ ],
19
+ categories: {
20
+ correctness: "warn"
21
+ },
22
+ plugins: ["eslint", "import", "typescript", "react", "react-perf"],
23
+ options: {
24
+ typeAware: true,
25
+ typeCheck: true,
26
+ denyWarnings: true
27
+ },
28
+ rules: {
29
+ // eslint
30
+ "no-console": 1,
31
+ "object-shorthand": 1,
32
+ "no-param-reassign": [
33
+ 2,
34
+ {
35
+ props: true,
36
+ ignorePropertyModificationsForRegex: ["^draft$", "Draft$"]
37
+ }
38
+ ],
39
+ // TODO https://github.com/oxc-project/oxc/issues/479
40
+ // camelcase: [1, { allow: ["^\\w*_[A-Z]*$"] }],
41
+ "no-var": 2,
42
+ "no-unused-vars": [
43
+ 1,
44
+ {
45
+ ignoreRestSiblings: true,
46
+ vars: "all",
47
+ args: "after-used",
48
+ argsIgnorePattern: "^_",
49
+ varsIgnorePattern: "^_"
50
+ }
51
+ ],
52
+ // import
53
+ "import/no-named-as-default-member": 0,
54
+ // TODO https://github.com/oxc-project/oxc/pull/15703
55
+ // "import/no-extraneous-dependencies": [
56
+ // 2,
57
+ // {
58
+ // devDependencies: [
59
+ // "**/*.test.*",
60
+ // "**/*.stories.*",
61
+ // "**/*.config.*",
62
+ // "**/*.spec.*",
63
+ // ],
64
+ // },
65
+ // ],
66
+ // Since sorting imports is implemented in oxcfmt(https://oxc.rs/docs/guide/usage/formatter/sorting.html),
67
+ // and currently oxcfmt does not support features like `prettier-plugin-classnames`(https://oxc.rs/docs/guide/usage/formatter/sorting.html),
68
+ // use perfectionist to sort imports for now.
69
+ "perfectionist/sort-imports": [
70
+ 1,
71
+ {
72
+ type: "alphabetical",
73
+ order: "asc",
74
+ fallbackSort: { type: "unsorted" },
75
+ ignoreCase: true,
76
+ specialCharacters: "keep",
77
+ sortBy: "path",
78
+ internalPattern: ["^~/.+", "^@/.+", "^#.+"],
79
+ partitionByComment: false,
80
+ partitionByNewLine: false,
81
+ newlinesBetween: 1,
82
+ newlinesInside: 0,
83
+ maxLineLength: void 0,
84
+ groups: [
85
+ "type-import",
86
+ ["value-builtin", "value-external"],
87
+ "type-internal",
88
+ "value-internal",
89
+ ["type-parent", "type-sibling", "type-index"],
90
+ ["value-parent", "value-sibling", "value-index"],
91
+ "ts-equals-import",
92
+ "unknown"
93
+ ],
94
+ customGroups: [],
95
+ environment: "node",
96
+ useExperimentalDependencyDetection: true
97
+ }
98
+ ],
99
+ // unused-imports
100
+ "unused-imports/no-unused-imports": 1,
101
+ // kurateh
102
+ "@kurateh/import-path": 1,
103
+ // typescript
104
+ "typescript/consistent-type-imports": [
105
+ 1,
106
+ {
107
+ fixStyle: "inline-type-imports"
108
+ }
109
+ ],
110
+ // react
111
+ "react/react-in-jsx-scope": 0,
112
+ "react-fallback/function-component-definition": [
113
+ 1,
114
+ {
115
+ namedComponents: "arrow-function",
116
+ unnamedComponents: "arrow-function"
117
+ }
118
+ ],
119
+ "react/jsx-curly-brace-presence": [
120
+ 1,
121
+ {
122
+ props: "never",
123
+ children: "never"
124
+ }
125
+ ],
126
+ "react/no-children-prop": 1
127
+ }
128
+ });
129
+
130
+ module.exports = index_default;
@@ -0,0 +1,69 @@
1
+ declare const _default: {
2
+ jsPlugins: (string | {
3
+ name: string;
4
+ specifier: string;
5
+ })[];
6
+ categories: {
7
+ correctness: "warn";
8
+ };
9
+ plugins: ("eslint" | "react" | "typescript" | "import" | "react-perf")[];
10
+ options: {
11
+ typeAware: true;
12
+ typeCheck: true;
13
+ denyWarnings: true;
14
+ };
15
+ rules: {
16
+ "no-console": number;
17
+ "object-shorthand": number;
18
+ "no-param-reassign": [number, {
19
+ props: true;
20
+ ignorePropertyModificationsForRegex: string[];
21
+ }];
22
+ "no-var": number;
23
+ "no-unused-vars": [number, {
24
+ ignoreRestSiblings: true;
25
+ vars: "all";
26
+ args: "after-used";
27
+ argsIgnorePattern: string;
28
+ varsIgnorePattern: string;
29
+ }];
30
+ "import/no-named-as-default-member": number;
31
+ "perfectionist/sort-imports": [number, {
32
+ type: string;
33
+ order: string;
34
+ fallbackSort: {
35
+ type: string;
36
+ };
37
+ ignoreCase: boolean;
38
+ specialCharacters: string;
39
+ sortBy: string;
40
+ internalPattern: string[];
41
+ partitionByComment: boolean;
42
+ partitionByNewLine: boolean;
43
+ newlinesBetween: number;
44
+ newlinesInside: number;
45
+ maxLineLength: undefined;
46
+ groups: (string | string[])[];
47
+ customGroups: never[];
48
+ environment: string;
49
+ useExperimentalDependencyDetection: boolean;
50
+ }];
51
+ "unused-imports/no-unused-imports": number;
52
+ "@kurateh/import-path": number;
53
+ "typescript/consistent-type-imports": [number, {
54
+ fixStyle: "inline-type-imports";
55
+ }];
56
+ "react/react-in-jsx-scope": number;
57
+ "react-fallback/function-component-definition": [number, {
58
+ namedComponents: string;
59
+ unnamedComponents: string;
60
+ }];
61
+ "react/jsx-curly-brace-presence": [number, {
62
+ props: "never";
63
+ children: "never";
64
+ }];
65
+ "react/no-children-prop": number;
66
+ };
67
+ };
68
+
69
+ export { _default as default };
@@ -0,0 +1,69 @@
1
+ declare const _default: {
2
+ jsPlugins: (string | {
3
+ name: string;
4
+ specifier: string;
5
+ })[];
6
+ categories: {
7
+ correctness: "warn";
8
+ };
9
+ plugins: ("eslint" | "react" | "typescript" | "import" | "react-perf")[];
10
+ options: {
11
+ typeAware: true;
12
+ typeCheck: true;
13
+ denyWarnings: true;
14
+ };
15
+ rules: {
16
+ "no-console": number;
17
+ "object-shorthand": number;
18
+ "no-param-reassign": [number, {
19
+ props: true;
20
+ ignorePropertyModificationsForRegex: string[];
21
+ }];
22
+ "no-var": number;
23
+ "no-unused-vars": [number, {
24
+ ignoreRestSiblings: true;
25
+ vars: "all";
26
+ args: "after-used";
27
+ argsIgnorePattern: string;
28
+ varsIgnorePattern: string;
29
+ }];
30
+ "import/no-named-as-default-member": number;
31
+ "perfectionist/sort-imports": [number, {
32
+ type: string;
33
+ order: string;
34
+ fallbackSort: {
35
+ type: string;
36
+ };
37
+ ignoreCase: boolean;
38
+ specialCharacters: string;
39
+ sortBy: string;
40
+ internalPattern: string[];
41
+ partitionByComment: boolean;
42
+ partitionByNewLine: boolean;
43
+ newlinesBetween: number;
44
+ newlinesInside: number;
45
+ maxLineLength: undefined;
46
+ groups: (string | string[])[];
47
+ customGroups: never[];
48
+ environment: string;
49
+ useExperimentalDependencyDetection: boolean;
50
+ }];
51
+ "unused-imports/no-unused-imports": number;
52
+ "@kurateh/import-path": number;
53
+ "typescript/consistent-type-imports": [number, {
54
+ fixStyle: "inline-type-imports";
55
+ }];
56
+ "react/react-in-jsx-scope": number;
57
+ "react-fallback/function-component-definition": [number, {
58
+ namedComponents: string;
59
+ unnamedComponents: string;
60
+ }];
61
+ "react/jsx-curly-brace-presence": [number, {
62
+ props: "never";
63
+ children: "never";
64
+ }];
65
+ "react/no-children-prop": number;
66
+ };
67
+ };
68
+
69
+ export { _default as default };
package/dist/index.js ADDED
@@ -0,0 +1,132 @@
1
+ import { createRequire } from 'module';
2
+
3
+ createRequire(import.meta.url);
4
+
5
+ // ../../node_modules/.pnpm/oxlint@1.73.0_oxlint-tsgolint@0.24.0/node_modules/oxlint/dist/index.js
6
+ function defineConfig(config) {
7
+ return config;
8
+ }
9
+
10
+ // index.ts
11
+ var index_default = defineConfig({
12
+ jsPlugins: [
13
+ "@kurateh/eslint-plugin",
14
+ "eslint-plugin-perfectionist",
15
+ "eslint-plugin-unused-imports",
16
+ {
17
+ name: "react-fallback",
18
+ specifier: "eslint-plugin-react"
19
+ }
20
+ ],
21
+ categories: {
22
+ correctness: "warn"
23
+ },
24
+ plugins: ["eslint", "import", "typescript", "react", "react-perf"],
25
+ options: {
26
+ typeAware: true,
27
+ typeCheck: true,
28
+ denyWarnings: true
29
+ },
30
+ rules: {
31
+ // eslint
32
+ "no-console": 1,
33
+ "object-shorthand": 1,
34
+ "no-param-reassign": [
35
+ 2,
36
+ {
37
+ props: true,
38
+ ignorePropertyModificationsForRegex: ["^draft$", "Draft$"]
39
+ }
40
+ ],
41
+ // TODO https://github.com/oxc-project/oxc/issues/479
42
+ // camelcase: [1, { allow: ["^\\w*_[A-Z]*$"] }],
43
+ "no-var": 2,
44
+ "no-unused-vars": [
45
+ 1,
46
+ {
47
+ ignoreRestSiblings: true,
48
+ vars: "all",
49
+ args: "after-used",
50
+ argsIgnorePattern: "^_",
51
+ varsIgnorePattern: "^_"
52
+ }
53
+ ],
54
+ // import
55
+ "import/no-named-as-default-member": 0,
56
+ // TODO https://github.com/oxc-project/oxc/pull/15703
57
+ // "import/no-extraneous-dependencies": [
58
+ // 2,
59
+ // {
60
+ // devDependencies: [
61
+ // "**/*.test.*",
62
+ // "**/*.stories.*",
63
+ // "**/*.config.*",
64
+ // "**/*.spec.*",
65
+ // ],
66
+ // },
67
+ // ],
68
+ // Since sorting imports is implemented in oxcfmt(https://oxc.rs/docs/guide/usage/formatter/sorting.html),
69
+ // and currently oxcfmt does not support features like `prettier-plugin-classnames`(https://oxc.rs/docs/guide/usage/formatter/sorting.html),
70
+ // use perfectionist to sort imports for now.
71
+ "perfectionist/sort-imports": [
72
+ 1,
73
+ {
74
+ type: "alphabetical",
75
+ order: "asc",
76
+ fallbackSort: { type: "unsorted" },
77
+ ignoreCase: true,
78
+ specialCharacters: "keep",
79
+ sortBy: "path",
80
+ internalPattern: ["^~/.+", "^@/.+", "^#.+"],
81
+ partitionByComment: false,
82
+ partitionByNewLine: false,
83
+ newlinesBetween: 1,
84
+ newlinesInside: 0,
85
+ maxLineLength: void 0,
86
+ groups: [
87
+ "type-import",
88
+ ["value-builtin", "value-external"],
89
+ "type-internal",
90
+ "value-internal",
91
+ ["type-parent", "type-sibling", "type-index"],
92
+ ["value-parent", "value-sibling", "value-index"],
93
+ "ts-equals-import",
94
+ "unknown"
95
+ ],
96
+ customGroups: [],
97
+ environment: "node",
98
+ useExperimentalDependencyDetection: true
99
+ }
100
+ ],
101
+ // unused-imports
102
+ "unused-imports/no-unused-imports": 1,
103
+ // kurateh
104
+ "@kurateh/import-path": 1,
105
+ // typescript
106
+ "typescript/consistent-type-imports": [
107
+ 1,
108
+ {
109
+ fixStyle: "inline-type-imports"
110
+ }
111
+ ],
112
+ // react
113
+ "react/react-in-jsx-scope": 0,
114
+ "react-fallback/function-component-definition": [
115
+ 1,
116
+ {
117
+ namedComponents: "arrow-function",
118
+ unnamedComponents: "arrow-function"
119
+ }
120
+ ],
121
+ "react/jsx-curly-brace-presence": [
122
+ 1,
123
+ {
124
+ props: "never",
125
+ children: "never"
126
+ }
127
+ ],
128
+ "react/no-children-prop": 1
129
+ }
130
+ });
131
+
132
+ export { index_default as default };
package/package.json ADDED
@@ -0,0 +1,35 @@
1
+ {
2
+ "name": "@kurateh/oxlint-config",
3
+ "version": "0.0.0",
4
+ "type": "module",
5
+ "author": {
6
+ "name": "kurateh",
7
+ "email": "me@kurateh.com"
8
+ },
9
+ "repository": {
10
+ "url": "https://github.com/kurateh/eslint-plugin"
11
+ },
12
+ "description": "",
13
+ "exports": {
14
+ ".": {
15
+ "import": "./dist/index.js",
16
+ "require": "./dist/index.cjs"
17
+ }
18
+ },
19
+ "files": [
20
+ "dist"
21
+ ],
22
+ "keywords": [],
23
+ "license": "ISC",
24
+ "dependencies": {
25
+ "eslint-plugin-perfectionist": "^5.10.0",
26
+ "eslint-plugin-react": "^7.37.5",
27
+ "eslint-plugin-unused-imports": "^4.4.1",
28
+ "@kurateh/eslint-plugin": "0.0.0"
29
+ },
30
+ "scripts": {
31
+ "build": "tsup",
32
+ "format": "prettier --write .",
33
+ "format:check": "prettier --check ."
34
+ }
35
+ }