Skip to content

Commit c88f2de

Browse files
authored
yaml configuration files and cleanup (#47)
- update eslint to 2.13.0 - convert eslintrc to yaml - convert language grammar and configuration to yaml - their json output is minified - update vsce ignores - simplify many regex patterns - fix number highlighting inside variable names - add highlighting for a few missing keywords - slightly restructure tests - change some scope names to comply with textmate spec
1 parent 932051e commit c88f2de

19 files changed

+588
-312
lines changed

.eslintignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
node_modules/
2-
out/
2+
*.js

.eslintrc.json

Lines changed: 0 additions & 15 deletions
This file was deleted.

.eslintrc.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
root: true
2+
parser: '@typescript-eslint/parser'
3+
parserOptions:
4+
tsconfigRootDir: .
5+
project: [./tsconfig.json]
6+
plugins:
7+
- '@typescript-eslint'
8+
extends:
9+
- eslint:recommended
10+
- plugin:@typescript-eslint/recommended
11+
rules:
12+
no-duplicate-imports: error
13+
no-template-curly-in-string: error
14+
eqeqeq: error

.vscodeignore

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,20 @@
1-
# raw images
2-
*.xcf
1+
# version control
2+
.gitignore
3+
.github/
4+
5+
# config files
6+
.eslintignore
7+
tsconfig.json
8+
9+
# source files
10+
src/
11+
**/scripts/
12+
**/tests/
13+
**/*.yml
14+
**/*.xcf
315

416
# other
5-
.github/
617
.vscode/
718
*.code-workspace
8-
src/
9-
**/tests/
1019
**/*.map
11-
.gitignore
12-
tsconfig.json
13-
.eslintrc.json
14-
.eslintignore
20+
CONTRIBUTING.md

language-configuration.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
comments:
2+
lineComment: "'"
3+
4+
brackets:
5+
- [(, )]
6+
7+
autoClosingPairs:
8+
- [(, )]
9+
- ['"', '"']
10+
11+
surroundingPairs:
12+
- [(, )]
13+
- ['"', '"']

0 commit comments

Comments
 (0)