Skip to content

Commit 8979ced

Browse files
committed
chore: init project
1 parent da50112 commit 8979ced

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+10416
-1
lines changed

.editorconfig

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Editor configuration, see https://editorconfig.org
2+
root = true
3+
4+
[*]
5+
charset = utf-8
6+
indent_style = space
7+
indent_size = 2
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true
10+
11+
[*.ts]
12+
quote_type = single
13+
14+
[*.md]
15+
max_line_length = off
16+
trim_trailing_whitespace = false

.eslintrc.json

+87
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
{
2+
"root": true,
3+
"ignorePatterns": ["dist"],
4+
"overrides": [
5+
{
6+
"files": ["*.ts"],
7+
"parserOptions": {
8+
"project": ["tsconfig.json", "e2e/tsconfig.json"],
9+
"createDefaultProgram": true
10+
},
11+
"extends": [
12+
"eslint:recommended",
13+
"plugin:@typescript-eslint/recommended",
14+
"plugin:@typescript-eslint/recommended-type-checked",
15+
"plugin:@angular-eslint/recommended",
16+
"plugin:@angular-eslint/template/process-inline-templates"
17+
],
18+
"rules": {
19+
"max-len": [
20+
"warn",
21+
{
22+
"code": 100,
23+
"ignoreComments": true,
24+
"ignoreStrings": true,
25+
"ignoreTemplateLiterals": true
26+
}
27+
],
28+
"object-shorthand": [
29+
"warn",
30+
"always",
31+
{
32+
"avoidQuotes": true
33+
}
34+
],
35+
"quote-props": ["warn", "consistent-as-needed"],
36+
"quotes": [
37+
"warn",
38+
"single",
39+
{
40+
"allowTemplateLiterals": true
41+
}
42+
],
43+
"semi": ["warn", "always"],
44+
"@typescript-eslint/explicit-module-boundary-types": "off",
45+
"@typescript-eslint/no-explicit-any": "off",
46+
"@typescript-eslint/no-empty-function": "off",
47+
"@typescript-eslint/no-floating-promises": "off",
48+
"@typescript-eslint/no-inferrable-types": "off",
49+
"@typescript-eslint/no-non-null-assertion": "off",
50+
"@typescript-eslint/no-unsafe-assignment": "off",
51+
"@typescript-eslint/no-unsafe-argument": "off",
52+
"@typescript-eslint/no-unsafe-call": "off",
53+
"@typescript-eslint/no-unsafe-return": "off",
54+
"@typescript-eslint/no-unsafe-member-access": "off",
55+
"@typescript-eslint/no-unused-vars": "off",
56+
"@typescript-eslint/unbound-method": "off",
57+
"@angular-eslint/component-class-suffix": "off",
58+
"@angular-eslint/component-selector": "off",
59+
"@angular-eslint/directive-class-suffix": "off",
60+
"@angular-eslint/directive-selector": "off",
61+
"@angular-eslint/no-empty-lifecycle-method": "off",
62+
"@angular-eslint/no-host-metadata-property": "off",
63+
"@angular-eslint/no-input-rename": "off",
64+
"@angular-eslint/no-inputs-metadata-property": "off",
65+
"@angular-eslint/no-output-native": "off",
66+
"@angular-eslint/no-output-rename": "off"
67+
}
68+
},
69+
{
70+
"files": ["*.html"],
71+
"extends": ["plugin:@angular-eslint/template/recommended"],
72+
"rules": {}
73+
},
74+
{
75+
"files": ["*.js"],
76+
"parserOptions": {
77+
"ecmaVersion": 11
78+
},
79+
"env": {
80+
"node": true,
81+
"amd": true
82+
},
83+
"extends": ["eslint:recommended"],
84+
"rules": {}
85+
}
86+
]
87+
}

.gitignore

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# See http://help.github.com/ignore-files/ for more about ignoring files.
2+
3+
# Compiled output
4+
/dist
5+
/tmp
6+
/out-tsc
7+
/bazel-out
8+
9+
# Node
10+
/node_modules
11+
npm-debug.log
12+
yarn-error.log
13+
14+
# IDEs and editors
15+
.idea/
16+
.project
17+
.classpath
18+
.c9/
19+
*.launch
20+
.settings/
21+
*.sublime-workspace
22+
23+
# Visual Studio Code
24+
.vscode/*
25+
!.vscode/settings.json
26+
!.vscode/tasks.json
27+
!.vscode/launch.json
28+
!.vscode/extensions.json
29+
.history/*
30+
31+
# Miscellaneous
32+
/.angular/cache
33+
.sass-cache/
34+
/connect.lock
35+
/coverage
36+
/libpeerconnection.log
37+
testem.log
38+
/typings
39+
40+
# System files
41+
.DS_Store
42+
Thumbs.db

.husky/commit-msg

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
npx --no-install commitlint --edit "$1"

.husky/pre-commit

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
npx --no-install lint-staged

.prettierignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# add files you wish to ignore here

.prettierrc

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"arrowParens": "avoid",
3+
"bracketSpacing": true,
4+
"htmlWhitespaceSensitivity": "css",
5+
"insertPragma": false,
6+
"jsxBracketSameLine": false,
7+
"jsxSingleQuote": false,
8+
"printWidth": 100,
9+
"proseWrap": "preserve",
10+
"quoteProps": "consistent",
11+
"requirePragma": false,
12+
"semi": true,
13+
"singleQuote": true,
14+
"tabWidth": 2,
15+
"trailingComma": "es5",
16+
"useTabs": false
17+
}

.stylelintrc

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{
2+
"ignoreFiles": [
3+
"dist/**"
4+
],
5+
"extends": [
6+
"stylelint-config-standard",
7+
"stylelint-config-recommended-scss"
8+
],
9+
"rules": {
10+
"alpha-value-notation": null,
11+
"annotation-no-unknown": null,
12+
"at-rule-empty-line-before": null,
13+
"block-no-empty": null,
14+
"color-function-notation": "legacy",
15+
"function-no-unknown": null,
16+
"import-notation": null,
17+
"no-descending-specificity": null,
18+
"no-empty-source": null,
19+
"media-query-no-invalid": null,
20+
"number-max-precision": null,
21+
"selector-pseudo-element-no-unknown": [
22+
true,
23+
{
24+
"ignorePseudoElements": [
25+
"ng-deep"
26+
]
27+
}
28+
],
29+
"selector-class-pattern": null,
30+
"selector-type-no-unknown": null,
31+
"value-keyword-case": null,
32+
"scss/at-extend-no-missing-placeholder": null,
33+
"scss/at-if-no-null": null,
34+
"scss/comment-no-empty": null,
35+
"scss/operator-no-unspaced": null,
36+
"scss/operator-no-newline-after": null
37+
}
38+
}

.vscode/extensions.json

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=827846
3+
"recommendations": [
4+
"angular.ng-template",
5+
"cyrilletuzi.angular-schematics",
6+
"esbenp.prettier-vscode",
7+
"stylelint.vscode-stylelint",
8+
"syler.sass-indented",
9+
"editorconfig.editorconfig",
10+
"mrmlnc.vscode-scss"
11+
]
12+
}

.vscode/launch.json

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
3+
"version": "0.2.0",
4+
"configurations": [
5+
{
6+
"name": "ng serve",
7+
"type": "chrome",
8+
"request": "launch",
9+
"preLaunchTask": "npm: start",
10+
"url": "http://localhost:4200/"
11+
},
12+
{
13+
"name": "ng test",
14+
"type": "chrome",
15+
"request": "launch",
16+
"preLaunchTask": "npm: test",
17+
"url": "http://localhost:9876/debug.html"
18+
}
19+
]
20+
}

.vscode/settings.json

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"editor.rulers": [100],
3+
"html.format.wrapLineLength": 100,
4+
"html.format.wrapAttributes": "preserve-aligned",
5+
"[javascript]": {
6+
"editor.defaultFormatter": "esbenp.prettier-vscode"
7+
},
8+
"[typescript]": {
9+
"editor.defaultFormatter": "esbenp.prettier-vscode"
10+
},
11+
"[jsonc]": {
12+
"editor.defaultFormatter": "esbenp.prettier-vscode"
13+
},
14+
"editor.codeActionsOnSave": {
15+
"source.fixAll.stylelint": "explicit"
16+
}
17+
}

.vscode/tasks.json

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
// For more information, visit: https://go.microsoft.com/fwlink/?LinkId=733558
3+
"version": "2.0.0",
4+
"tasks": [
5+
{
6+
"type": "npm",
7+
"script": "start",
8+
"isBackground": true,
9+
"problemMatcher": {
10+
"owner": "typescript",
11+
"pattern": "$tsc",
12+
"background": {
13+
"activeOnStart": true,
14+
"beginsPattern": {
15+
"regexp": "(.*?)"
16+
},
17+
"endsPattern": {
18+
"regexp": "bundle generation complete"
19+
}
20+
}
21+
}
22+
},
23+
{
24+
"type": "npm",
25+
"script": "test",
26+
"isBackground": true,
27+
"problemMatcher": {
28+
"owner": "typescript",
29+
"pattern": "$tsc",
30+
"background": {
31+
"activeOnStart": true,
32+
"beginsPattern": {
33+
"regexp": "(.*?)"
34+
},
35+
"endsPattern": {
36+
"regexp": "bundle generation complete"
37+
}
38+
}
39+
}
40+
}
41+
]
42+
}

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1-
# codemirror
1+
# Code Editor
2+
23
CodeMirror 6 wrapper for Angular

0 commit comments

Comments
 (0)