@cabloy/lint 5.0.6 → 5.0.8

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/api/eslint.js CHANGED
@@ -28,42 +28,3 @@ export default function eslintConfig(config, ...args) {
28
28
  },
29
29
  }, ...args);
30
30
  }
31
-
32
- // export default function eslintConfig(config, ...args) {
33
- // return [
34
- // ...tseslint.configs.recommended,
35
- // stylistic.configs.customize({
36
- // flat: true,
37
- // indent: 2,
38
- // quotes: 'single',
39
- // semi: true,
40
- // jsx: true,
41
- // }),
42
- // {
43
- // files,
44
- // languageOptions: {
45
- // parser: parserTs,
46
- // parserOptions: {
47
- // ecmaFeatures: {
48
- // jsx: true,
49
- // tsx: true,
50
- // },
51
- // ecmaVersion: 'latest',
52
- // useJSXTextNode: true,
53
- // sourceType: 'module',
54
- // },
55
- // globals: {
56
- // ...globals.node,
57
- // ...globals.jest,
58
- // },
59
- // },
60
- // rules,
61
- // },
62
- // {
63
- // files: ['**/*.json'],
64
- // ignores: ['package-lock.json'],
65
- // language: 'json/json',
66
- // ...json.configs.recommended,
67
- // },
68
- // ];
69
- // }
@@ -18,10 +18,10 @@
18
18
  "noUnusedLocals": true,
19
19
  "noUnusedParameters": true,
20
20
  "declaration": true,
21
- "declarationMap": true,
21
+ "declarationMap": false,
22
22
  "noEmit": false,
23
23
  "noEmitOnError": true,
24
- "sourceMap": true,
24
+ "sourceMap": false,
25
25
  "stripInternal": true,
26
26
  "allowSyntheticDefaultImports": true,
27
27
  "esModuleInterop": true,
package/common/rules.js CHANGED
@@ -1,4 +1,6 @@
1
1
  export const rules = {
2
+ 'test/no-only-tests': 'off',
3
+ 'test/no-import-node-test': 'off',
2
4
  'jsdoc/check-alignment': 'off',
3
5
  'no-extend-native': ['error', { exceptions: ['Set'] }],
4
6
  'no-new-func': 'off',
@@ -7,6 +9,7 @@ export const rules = {
7
9
  'n/prefer-global/process': 'off',
8
10
  'unicorn/error-message': 'off',
9
11
  'antfu/if-newline': 'off',
12
+ 'antfu/no-top-level-await': 'off',
10
13
  'antfu/top-level-function': 'off',
11
14
  'import/no-duplicates': 'off',
12
15
  'eslint-comments/no-unlimited-disable': 'off',
@@ -106,7 +109,7 @@ export const rules = {
106
109
  '@typescript-eslint/no-unsafe-function-type': 'off',
107
110
  '@typescript-eslint/no-use-before-define': ['error', { functions: false }],
108
111
  '@stylistic/max-len': ['error', {
109
- code: 130,
112
+ code: 150,
110
113
  tabWidth: 2,
111
114
  ignoreComments: true,
112
115
  ignoreTrailingComments: true,
package/front/eslint.js CHANGED
@@ -48,64 +48,3 @@ export default function eslintConfig(config, ...args) {
48
48
  },
49
49
  }, ...args);
50
50
  }
51
-
52
- // export default [
53
- // ...tseslint.configs.recommended,
54
- // ...eslintVue.configs['flat/recommended'],
55
- // stylistic.configs.customize({
56
- // indent: 2,
57
- // quotes: 'single',
58
- // semi: true,
59
- // jsx: true,
60
- // }),
61
- // {
62
- // languageOptions: {
63
- // parser: vueParser,
64
- // parserOptions: {
65
- // extraFileExtensions: ['.vue'],
66
- // ecmaFeatures: {
67
- // jsx: true,
68
- // tsx: true,
69
- // },
70
- // ecmaVersion: 'latest',
71
- // useJSXTextNode: true,
72
- // sourceType: 'module',
73
- // parser: parserTs,
74
- // },
75
- // globals: {
76
- // ...globals.browser,
77
- // ...globals.jest,
78
- // ga: 'readonly', // Google Analytics
79
- // cordova: 'readonly',
80
- // __statics: 'readonly',
81
- // __QUASAR_SSR__: 'readonly',
82
- // __QUASAR_SSR_SERVER__: 'readonly',
83
- // __QUASAR_SSR_CLIENT__: 'readonly',
84
- // __QUASAR_SSR_PWA__: 'readonly',
85
- // process: 'readonly',
86
- // Capacitor: 'readonly',
87
- // chrome: 'readonly',
88
- // // $: true,
89
- // // util: true,
90
- // // env: true,
91
- // // App: true,
92
- // // getApp: true,
93
- // // Page: true,
94
- // // wx: true,
95
- // // define: true,
96
- // Proxy: true,
97
- // },
98
- // },
99
- // rules: Object.assign({}, rules, rulesVue),
100
- // },
101
- // {
102
- // plugins: {
103
- // json,
104
- // },
105
- // files: ['**/*.json'],
106
- // language: 'json/json',
107
- // rules: {
108
- // 'json/no-duplicate-keys': 'error',
109
- // },
110
- // },
111
- // ];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cabloy/lint",
3
3
  "type": "module",
4
- "version": "5.0.6",
4
+ "version": "5.0.8",
5
5
  "description": "Node Style Guide for Cabloy.",
6
6
  "publishConfig": {
7
7
  "access": "public"