@archon-research/oxlint-config 0.2.1 → 0.2.2

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/base.d.ts ADDED
@@ -0,0 +1,8 @@
1
+ declare const baseConfig: {
2
+ plugins: string[];
3
+ categories: {
4
+ correctness: string;
5
+ suspicious: string;
6
+ };
7
+ };
8
+ export default baseConfig;
package/dist/base.js ADDED
@@ -0,0 +1,8 @@
1
+ const baseConfig = {
2
+ plugins: ['typescript'],
3
+ categories: {
4
+ correctness: 'warn',
5
+ suspicious: 'warn',
6
+ },
7
+ };
8
+ export default baseConfig;
@@ -0,0 +1,11 @@
1
+ declare const reactConfig: {
2
+ plugins: string[];
3
+ categories: {
4
+ correctness: string;
5
+ suspicious: string;
6
+ };
7
+ rules: {
8
+ 'react/react-in-jsx-scope': string;
9
+ };
10
+ };
11
+ export default reactConfig;
package/dist/react.js ADDED
@@ -0,0 +1,11 @@
1
+ const reactConfig = {
2
+ plugins: ['typescript', 'react', 'react-hooks', 'jsx-a11y', 'import'],
3
+ categories: {
4
+ correctness: 'warn',
5
+ suspicious: 'warn',
6
+ },
7
+ rules: {
8
+ 'react/react-in-jsx-scope': 'off',
9
+ },
10
+ };
11
+ export default reactConfig;
package/package.json CHANGED
@@ -1,21 +1,31 @@
1
1
  {
2
2
  "name": "@archon-research/oxlint-config",
3
- "version": "0.2.1",
4
3
  "publishConfig": {
5
4
  "access": "public"
6
5
  },
7
6
  "type": "module",
8
7
  "files": [
8
+ "dist",
9
9
  "base.ts",
10
10
  "react.ts"
11
11
  ],
12
12
  "scripts": {
13
+ "build": "tsc -p tsconfig.build.json",
14
+ "clean": "rm -rf dist",
15
+ "prepare": "npm run build",
13
16
  "type:check": "tsgo -p tsconfig.json --noEmit"
14
17
  },
15
18
  "exports": {
16
- "./base": "./base.ts",
17
- "./react": "./react.ts"
19
+ "./base": {
20
+ "types": "./dist/base.d.ts",
21
+ "default": "./dist/base.js"
22
+ },
23
+ "./react": {
24
+ "types": "./dist/react.d.ts",
25
+ "default": "./dist/react.js"
26
+ }
18
27
  },
28
+ "version": "0.2.2",
19
29
  "repository": {
20
30
  "url": "https://github.com/archon-research/uikit"
21
31
  }