@agilebot/eslint-config 0.1.5 → 0.1.6

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/lib/cli.js CHANGED
@@ -1,7 +1,7 @@
1
1
  const fs = require('node:fs');
2
2
  const path = require('node:path');
3
3
 
4
- module.exports = function (filename) {
4
+ module.exports = function cli(filename) {
5
5
  filename = filename || path.join(__dirname, 'index');
6
6
 
7
7
  const isEslint = /^\.eslint.*/;
@@ -1,12 +1,3 @@
1
1
  module.exports = {
2
- extends: ['plugin:@agilebot/recommended'],
3
- rules: {
4
- // 禁止使用inline style,应该使用mui的sx属性或tss或styled-component
5
- '@agilebot/react/no-inline-styles': [
6
- 'error',
7
- {
8
- allowedFor: ['Grow']
9
- }
10
- ]
11
- }
2
+ extends: ['plugin:@agilebot/recommended']
12
3
  };
package/lib/configs/ts.js CHANGED
@@ -13,7 +13,11 @@ module.exports = {
13
13
  // Allow camelCase variables (23.2), PascalCase variables (23.8), and UPPER_CASE variables (23.10)
14
14
  {
15
15
  selector: 'variable',
16
- format: ['camelCase', 'PascalCase', 'UPPER_CASE']
16
+ format: ['camelCase', 'PascalCase', 'UPPER_CASE'],
17
+ filter: {
18
+ regex: '^(__dirname|__filename)$',
19
+ match: false
20
+ }
17
21
  },
18
22
  // Allow camelCase functions (23.2), and PascalCase functions (23.8)
19
23
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agilebot/eslint-config",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
4
4
  "description": "Agilebot's ESLint config",
5
5
  "bin": {
6
6
  "eslint-agilebot": "bin/eslint-agilebot"
@@ -17,12 +17,12 @@
17
17
  },
18
18
  "homepage": "https://github.com/sh-agilebot/frontend-toolkit/tree/master/packages/eslint-config#readme",
19
19
  "dependencies": {
20
- "@cspell/eslint-plugin": "^8.6.0",
20
+ "@cspell/eslint-plugin": "^8.7.0",
21
21
  "@stylistic/eslint-plugin": "^1.7.0",
22
- "@typescript-eslint/eslint-plugin": "^7.1.1",
23
- "@typescript-eslint/parser": "^7.1.1",
22
+ "@typescript-eslint/eslint-plugin": "^7.6.0",
23
+ "@typescript-eslint/parser": "^7.6.0",
24
24
  "eslint-config-godaddy": "^6.0.0",
25
- "eslint-config-love": "^43.1.0",
25
+ "eslint-config-love": "^47.0.0",
26
26
  "eslint-config-prettier": "^9.1.0",
27
27
  "eslint-import-resolver-typescript": "^3.6.1",
28
28
  "eslint-plugin-deprecation": "^2.0.0",
@@ -31,14 +31,14 @@
31
31
  "eslint-plugin-import": "npm:eslint-plugin-i@^2.29.1",
32
32
  "eslint-plugin-jsdoc": "^48.2.1",
33
33
  "eslint-plugin-jsx-a11y": "^6.8.0",
34
- "eslint-plugin-n": "^16.6.2",
35
- "eslint-plugin-no-relative-import-paths": "^1.5.2",
34
+ "eslint-plugin-n": "^17.2.0",
35
+ "eslint-plugin-no-relative-import-paths": "^1.5.4",
36
36
  "eslint-plugin-prettier": "^5.1.3",
37
37
  "eslint-plugin-promise": "^6.0.0",
38
38
  "eslint-plugin-react": "^7.34.1",
39
39
  "eslint-plugin-react-hooks": "^4.6.0",
40
40
  "eslint-plugin-react-prefer-function-component": "^3.3.0",
41
- "eslint-plugin-unicorn": "^51.0.1",
41
+ "eslint-plugin-unicorn": "^52.0.0",
42
42
  "eslint-plugin-you-dont-need-lodash-underscore": "^6.13.0"
43
43
  },
44
44
  "peerDependencies": {