@cherepanov.pavel/shareable-config 1.0.4 → 1.0.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.
@@ -1,18 +1,16 @@
1
1
  {
2
2
  // TODO: delimit the scope in another way
3
- "template for todo comments for easy search in project for HTML only": {
4
- "scope": "html",
5
- "prefix": "t html todo",
6
- "body": [
7
- "$BLOCK_COMMENT_START TODO:",
8
- "$0"
9
- "$BLOCK_COMMENT_END"
10
- ]
11
- },
12
- "template for todo comments for easy search in project": {
13
- "prefix": "t todo",
14
- "body": [
15
- "$LINE_COMMENT TODO: ",
16
- ]
17
- },
18
- }
3
+ "template for todo comments for easy search in project for HTML only": {
4
+ "scope": "html",
5
+ "prefix": "t html todo",
6
+ "body": [
7
+ "$BLOCK_COMMENT_START TODO:",
8
+ "$0",
9
+ "$BLOCK_COMMENT_END",
10
+ ],
11
+ },
12
+ "template for todo comments for easy search in project": {
13
+ "prefix": "t todo",
14
+ "body": ["$LINE_COMMENT TODO: "],
15
+ },
16
+ }
@@ -1,4 +1,5 @@
1
1
  {
2
+ "editor.renderWhitespace": "selection",
2
3
  "editor.tabSize": 2,
3
4
  "editor.linkedEditing": true,
4
5
  "editor.suggestSelection": "recentlyUsed",
@@ -30,6 +31,9 @@
30
31
  "source.fixAll.eslint": "explicit",
31
32
  "source.fixAll.stylelint": "explicit",
32
33
  },
34
+ "files.associations": {
35
+ "*.code-snippets": "jsonc",
36
+ },
33
37
  "eslint.validate": [
34
38
  "javascript",
35
39
  "typescript",
@@ -44,6 +48,7 @@
44
48
  // "scss",
45
49
  // "vue"
46
50
  // ],
51
+ "cSpell.language": "en,ru",
47
52
  "cSpell.words": [
48
53
  "Cherepanov",
49
54
  "Pavel",
@@ -1,28 +1,28 @@
1
1
  {
2
- "template for empty vue file": {
3
- "scope": "vue",
4
- "prefix": "t vue file",
5
- "body": [
2
+ "template for empty vue file": {
3
+ "scope": "vue",
4
+ "prefix": "t vue file",
5
+ "body": [
6
6
  "<script setup>",
7
- "</script>",
8
- "",
9
- "<template>",
10
- "</template>",
11
- "",
12
- "<style scoped lang=\"scss\">",
13
- "</style>"
14
- ],
15
- // typescript multiline
16
- "body": [
7
+ "</script>",
8
+ "",
9
+ "<template>",
10
+ "</template>",
11
+ "",
12
+ "<style scoped lang=\"scss\">",
13
+ "</style>",
14
+ ],
15
+ // typescript multiline
16
+ "body": [
17
17
  "<script setup lang=\"ts\">",
18
- "</script>",
19
- "",
18
+ "</script>",
19
+ "",
20
20
  "<template>",
21
- "</template>",
22
- "",
23
- "<style scoped lang=\"scss\">",
24
- "</style>"
25
- ],
26
- // typescript multiline end
27
- },
21
+ "</template>",
22
+ "",
23
+ "<style scoped lang=\"scss\">",
24
+ "</style>",
25
+ ],
26
+ // typescript multiline end
27
+ },
28
28
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cherepanov.pavel/shareable-config",
3
3
  "description": "setup for new repositories",
4
- "version": "1.0.4",
4
+ "version": "1.0.6",
5
5
  "type": "module",
6
6
  "devEngines": {
7
7
  "packageManager": {
@@ -9,10 +9,7 @@ export default defineConfig([
9
9
  includeIgnoreFile(gitignorePath),
10
10
  {
11
11
  name: 'Additional .gitignore patterns',
12
- ignores: [
13
- 'public/js/*',
14
- '**/*.code-snippets',
15
- ],
12
+ ignores: ['public/js/*'],
16
13
  },
17
14
  {
18
15
  files: [
@@ -5,6 +5,7 @@ import { jsFormatting } from '../rules/stylistic/index.js';
5
5
 
6
6
  const JSON_BUT_JSONC_FILES = [
7
7
  '**/.vscode/*.json',
8
+ '**/.vscode/*.code-snippets',
8
9
  '**/tsconfig*.json',
9
10
  ];
10
11
  const COMMON_RULES = {
@@ -8,7 +8,7 @@ import tsParser from '@typescript-eslint/parser';
8
8
  import { jsRules } from '../rules/javascript/index.js';
9
9
 
10
10
  export default {
11
- files: ['**/*.*ts'],
11
+ files: ['**/*.{ts,mts,cts}'],
12
12
  plugins: {
13
13
  '@typescript-eslint': tsPlugin,
14
14
  '@stylistic': stylisticPlugin,