-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
185 changed files
with
13,617 additions
and
8,081 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
src/imljson-language-features/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,62 @@ | ||
{ | ||
"root": true, | ||
"env": { | ||
"node": true | ||
"node": true, | ||
"es6": true | ||
}, | ||
"parserOptions": { | ||
"ecmaVersion": "latest" | ||
}, | ||
"parser": "@typescript-eslint/parser", | ||
"plugins": [ | ||
"@typescript-eslint" | ||
], | ||
"extends": [ | ||
"eslint:recommended", | ||
"plugin:@typescript-eslint/recommended" | ||
"eslint:recommended" | ||
], | ||
"rules": { | ||
"semi": [2, "always"], | ||
"@typescript-eslint/no-unused-vars": 0, | ||
"@typescript-eslint/no-explicit-any": 0, | ||
"@typescript-eslint/explicit-module-boundary-types": 0, | ||
"@typescript-eslint/no-non-null-assertion": 0 | ||
} | ||
}, | ||
"overrides": [ | ||
// Be more strict to new TypeScript files. | ||
{ | ||
"files": ["**/*.ts", "**/*.tsx"], | ||
"parser": "@typescript-eslint/parser", | ||
"plugins": [ | ||
"@typescript-eslint" | ||
], | ||
"extends": [ | ||
"eslint:recommended", | ||
"plugin:@typescript-eslint/recommended", | ||
"google", | ||
"eslint-config-prettier" | ||
], | ||
"rules": { | ||
"max-len": ["warn", 120, { "ignoreStrings": true, "ignoreComments": true, "ignoreTemplateLiterals": true }], // Line width 80 -> 120 | ||
"no-tabs": "off", // This project uses tabs instead of spaces as default. | ||
"quote-props": ["error", "as-needed"], | ||
// "object-curly-spacing" is not aligned in Google with Typescript default used style | ||
"object-curly-spacing": ["error", "always", { "objectsInObjects": true }], | ||
"require-jsdoc": "off", | ||
"valid-jsdoc":"off", | ||
"quotes": ["error", "single", { "avoidEscape": true }], // Allow to used double-quotes if inner string has single-quote. | ||
"block-spacing": ["error", "always"], // Rollback from Google style to ESLint default. | ||
"padded-blocks": "off", // Allow to start and end block ith blank lines. | ||
"no-multi-spaces": ["error", { "ignoreEOLComments": true }], // Ignore multiple spaces before comments that occur at the end of lines | ||
"operator-linebreak": ["error", "after", { "overrides": { "?": "before", ":": "before" } }], // Align with Prettier | ||
"@typescript-eslint/no-explicit-any": "off", | ||
"@typescript-eslint/no-unused-vars": ["error", { "argsIgnorePattern": "^_" }], // Add ignoring the `_paramName` | ||
"camelcase": ["error", { "allow": ["^testsOnly_"] }] | ||
} | ||
}, | ||
// For old JSfiles add couple of additional rules, which are included also in "google". | ||
{ | ||
"files": ["**/*.js"], | ||
"rules": { | ||
"indent": ["error", "tab", { | ||
"FunctionDeclaration": { "body": 1, "parameters": 1 }, | ||
"SwitchCase": 1 | ||
}], | ||
"no-unused-vars": "error" | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,3 +10,4 @@ node_modules | |
.DS_Store | ||
local | ||
out | ||
src/__is-pre-release-build.ts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"printWidth": 120, | ||
"useTabs": true, | ||
"singleQuote": true, | ||
"trailingComma": "all", | ||
"bracketSameLine": true, | ||
"arrowParens": "always" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,40 @@ | ||
// Place your settings in this file to overwrite default and user settings. | ||
{ | ||
"typescript.surveys.enabled": false | ||
} | ||
"typescript.surveys.enabled": false, | ||
"editor.rulers": [120], | ||
"typescript.preferences.quoteStyle": "single", | ||
"[typescript]": { | ||
"editor.defaultFormatter": "esbenp.prettier-vscode", | ||
"editor.formatOnSave": true | ||
}, | ||
|
||
"editor.codeActionsOnSave": [], | ||
// "editor.codeActionsOnSave": ["source.organizeImports.sortImports"], | ||
// Grouping rules for path patterns for imports. {} is the fall-back group. | ||
// Wiki: https://github.com/daidodo/format-imports/wiki/Grouping-Rules | ||
"tsImportSorter.configuration.groupRules": [ | ||
"^node:", | ||
{}, | ||
"^\\./", | ||
"^\\.\\./", | ||
"^\\.\\./\\.\\./", | ||
], | ||
// Disable formatting for files matching regular expressions. | ||
"tsImportSorter.configuration.exclude": [ | ||
"imljson-language-features/" | ||
], | ||
// Number of empty lines between groups (NOT sub-groups). | ||
"tsImportSorter.configuration.emptyLinesBetweenGroups": 0, | ||
// Line wrapping style. Valid values are 'prettier' or an object. | ||
// Wiki: https://github.com/daidodo/format-imports/wiki/Line-Wrapping-Style | ||
"tsImportSorter.configuration.wrappingStyle": "prettier", | ||
|
||
// Global Sorting rules. Valid values are 'none' or an object. | ||
// Wiki: https://github.com/daidodo/format-imports/wiki/Sorting-Rules | ||
"tsImportSorter.configuration.sortRules": "none", | ||
|
||
"markdownlint.config": { | ||
"MD003": false, | ||
"MD024": false | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.