@cherepanov.pavel/shareable-config 2.0.2 → 2.0.4

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.
@@ -25,6 +25,7 @@
25
25
  // typescript
26
26
  "typescript.enablePromptUseWorkspaceTsdk": true,
27
27
 
28
+ "css.validate": false,
28
29
  "json.validate.enable": false,
29
30
  "editor.formatOnSave": false,
30
31
  "editor.codeActionsOnSave": {
package/README.md CHANGED
@@ -47,13 +47,14 @@ import {
47
47
  After:
48
48
  ```js
49
49
  import {
50
- globalConfig,
51
- jsConfig,
52
- tsConfig,
53
- vueConfig,
50
+ globalConfig,
51
+ jsConfig,
52
+ tsConfig,
53
+ vueConfig,
54
+ jsonConfig,
54
55
  } from '@cherepanov.pavel/shareable-config/eslint-config';
55
56
  import {
56
- OFF,
57
+ OFF,
57
58
  WARN,
58
59
  ERROR,
59
60
  } from '@cherepanov.pavel/shareable-config/eslint-config/constants/severity.js';
@@ -57,24 +57,7 @@ const COMMON_RULES = {
57
57
  "jsonc/no-useless-escape": suggestionRules["no-useless-escape"],
58
58
  "jsonc/object-curly-newline": [
59
59
  jsFormatting["@stylistic/object-curly-newline"][0],
60
- {
61
- "ObjectExpression": {
62
- multiline: false,
63
- minProperties: 1,
64
- },
65
- "ObjectPattern": {
66
- multiline: false,
67
- minProperties: 1,
68
- },
69
- "ImportDeclaration": {
70
- multiline: false,
71
- minProperties: 1,
72
- },
73
- "ExportDeclaration": {
74
- multiline: false,
75
- minProperties: 1,
76
- },
77
- },
60
+ jsFormatting["@stylistic/object-curly-newline"][1],
78
61
  // Object.fromEntries(
79
62
  // [
80
63
  // "ObjectExpression",
@@ -77,7 +77,7 @@ export const possibleProblemRules = {
77
77
  ERROR,
78
78
  ],
79
79
  "no-empty-pattern": [
80
- ERROR,
80
+ WARN,
81
81
  ],
82
82
  "no-ex-assign": [
83
83
  ERROR,
@@ -9,10 +9,7 @@ import {
9
9
  export default {
10
10
  "@stylistic/array-bracket-newline": [
11
11
  ERROR,
12
- {
13
- multiline: true,
14
- minItems: 1,
15
- },
12
+ "always",
16
13
  ],
17
14
  "@stylistic/array-bracket-spacing": [
18
15
  ERROR,
@@ -226,36 +223,7 @@ export default {
226
223
  ],
227
224
  "@stylistic/object-curly-newline": [
228
225
  ERROR,
229
- {
230
- "ObjectExpression": {
231
- multiline: false,
232
- minProperties: 1,
233
- },
234
- "ObjectPattern": {
235
- multiline: false,
236
- minProperties: 1,
237
- },
238
- "ImportDeclaration": {
239
- multiline: false,
240
- minProperties: 1,
241
- },
242
- "ExportDeclaration": {
243
- multiline: false,
244
- minProperties: 1,
245
- },
246
- "TSTypeLiteral": {
247
- multiline: false,
248
- minProperties: 1,
249
- },
250
- "TSInterfaceBody": {
251
- multiline: false,
252
- minProperties: 1,
253
- },
254
- "TSEnumBody": {
255
- multiline: false,
256
- minProperties: 1,
257
- },
258
- },
226
+ "always",
259
227
  ],
260
228
  "@stylistic/object-curly-spacing": [
261
229
  ERROR,
@@ -6,9 +6,9 @@ import {
6
6
  } from "node:url";
7
7
 
8
8
  const currentDir = dirname(fileURLToPath(import.meta.url));
9
- const concat = (...arrays) => {
9
+ function concat(...arrays) {
10
10
  return [].concat(...arrays);
11
- };
11
+ }
12
12
 
13
13
  export const baseConfig = {
14
14
  extends: concat(
@@ -1,6 +1,9 @@
1
1
  export default {
2
2
  rules: {
3
- "color-hex-alpha": "never",
3
+ // invalid
4
+ "color-no-invalid-hex": true,
5
+
6
+ "color-hex-alpha": null,
4
7
  "color-hex-length": "long",
5
8
  "color-named": "never",
6
9
  "declaration-no-important": true,
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@cherepanov.pavel/shareable-config",
3
3
  "description": "setup for new repositories",
4
- "version": "2.0.2",
4
+ "version": "2.0.4",
5
5
  "type": "module",
6
6
  "devEngines": {
7
7
  "packageManager": {
8
8
  "name": "npm",
9
- "version": "12.0.2"
9
+ "version": "11.19.0"
10
10
  },
11
11
  "runtime": {
12
12
  "name": "node",