@rife/config 0.0.6-beta.1 → 0.0.6-beta.11

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/.prettierrc.js CHANGED
@@ -1,27 +1,25 @@
1
1
  // https://prettier.io/docs/en/options.html
2
2
 
3
- /**
4
- * @type {any}
5
- */
3
+ /** @type {any} */
6
4
  module.exports = {
7
- printWidth: 135,
8
- useTabs: false, // 缩进使用空格
9
- tabWidth: 4,
10
- semi: true, // 强制加分号
11
- singleQuote: true, // 强制单引号
12
- quoteProps: 'as-needed',
13
- jsxSingleQuote: false,
14
- trailingComma: 'all',
15
- bracketSameLine: true, // jsx props结束符在新行
16
- arrowParens: 'avoid',
17
- endOfLine: 'lf',
18
- bracketSpacing: true,
19
- overrides: [
20
- {
21
- files: ['*.wxml'],
22
- options: {
23
- parser: 'html',
24
- },
25
- },
26
- ],
27
- }
5
+ printWidth: 135,
6
+ useTabs: false, // 缩进使用空格
7
+ tabWidth: 4,
8
+ semi: true, // 强制加分号
9
+ singleQuote: true, // 强制单引号
10
+ quoteProps: 'as-needed',
11
+ jsxSingleQuote: false,
12
+ trailingComma: 'all',
13
+ bracketSameLine: true, // jsx props结束符在新行
14
+ arrowParens: 'avoid',
15
+ endOfLine: 'lf',
16
+ bracketSpacing: true,
17
+ overrides: [
18
+ {
19
+ files: ['*.wxml'],
20
+ options: {
21
+ parser: 'html',
22
+ },
23
+ },
24
+ ],
25
+ };
package/eslint.mjs CHANGED
@@ -9,8 +9,12 @@ import parser from '@typescript-eslint/parser';
9
9
  import prettier from 'eslint-config-prettier';
10
10
  import importPlugin from 'eslint-plugin-import';
11
11
 
12
+ const ignores = ['**/node_modules/*', '**/dist/*', '**/.pnpm/*'];
13
+
14
+ /** @type {any} */
12
15
  export function eslint() {
13
16
  return [
17
+ { ignores },
14
18
  {
15
19
  languageOptions: {
16
20
  parser,
@@ -20,7 +24,7 @@ export function eslint() {
20
24
  import: importPlugin,
21
25
  },
22
26
  files: ['**/*.{js,jsx,ts,tsx,mjs,cjs}'],
23
- // ignores: ['*/node_modules/**/*'],
27
+ ignores,
24
28
  rules: {
25
29
  'unicode-bom': ['error', 'never'],
26
30
  eqeqeq: ['warn', 'always'], // 使用三等号
package/package.json CHANGED
@@ -1,22 +1,20 @@
1
1
  {
2
2
  "name": "@rife/config",
3
- "version": "0.0.6-beta.1",
4
- "description": "",
5
- "author": "",
6
- "license": "ISC",
7
- "keywords": [],
8
- "main": "index.js",
3
+ "version": "0.0.6-beta.11",
9
4
  "files": [
10
5
  "tsconfig.json",
11
6
  ".prettierrc.js",
12
7
  "eslint.mjs"
13
8
  ],
14
- "devDependencies": {
15
- "@typescript-eslint/parser": "^8.20.0",
16
- "eslint": "^9.18.0",
17
- "eslint-config-prettier": "^10.0.1",
18
- "eslint-plugin-import": "^2.31.0",
19
- "prettier": "^3.4.2"
9
+ "dependencies": {
10
+ "@typescript-eslint/parser": "^8.50.0",
11
+ "eslint": "^9.39.2",
12
+ "eslint-config-prettier": "^10.1.8",
13
+ "eslint-plugin-import": "^2.32.0",
14
+ "prettier": "^3.7.4",
15
+ "postcss-less": "^6.0.0",
16
+ "stylelint": "^16.11.0",
17
+ "stylelint-config-recess-order": "^7.4.0"
20
18
  },
21
19
  "rife": {
22
20
  "hostDependencies": {
@@ -24,7 +22,6 @@
24
22
  }
25
23
  },
26
24
  "scripts": {
27
- "lint": "eslint . --fix",
28
- "release": "pnpm publish --registry https://registry.npmjs.org"
25
+ "release": "pnpm publish --registry https://registry.npmjs.org --no-git-checks --tag beta --access public"
29
26
  }
30
27
  }
package/tsconfig.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "compilerOptions": {
3
3
  "target": "ESNext",
4
- "module": "CommonJS",
4
+ "module": "esnext",
5
5
  "lib": ["ESNext", "DOM"],
6
6
  "sourceMap": true,
7
7
  "pretty": true,
@@ -14,7 +14,7 @@
14
14
  "noUnusedParameters": false,
15
15
  "noImplicitReturns": true,
16
16
  "noFallthroughCasesInSwitch": true,
17
- "moduleResolution": "node",
17
+ "moduleResolution": "bundler",
18
18
  "resolveJsonModule": true,
19
19
  "downlevelIteration": true,
20
20
  "experimentalDecorators": true,
@@ -26,7 +26,9 @@
26
26
  "forceConsistentCasingInFileNames": true,
27
27
  "incremental": true,
28
28
  "noImplicitThis": true,
29
- "alwaysStrict": true
29
+ "alwaysStrict": true,
30
+ "allowUnreachableCode": true,
31
+ "isolatedModules": true
30
32
  },
31
- "include": ["./src/**/*"]
33
+ "include": ["package.json"]
32
34
  }