mirror of
https://github.com/wassname/talk.git
synced 2026-06-27 16:47:24 +08:00
3bfcc509d2
* chore: setup eslint * chore: tslint checks with types & check for import order * chore: complete eslint transition * fix: tests * fix: linting after rebase, faster lint for lint-staged * chore: remove line * fix: lint rules * feat: add a11y linter and fix errors * fix: tests
59 lines
1.6 KiB
JSON
59 lines
1.6 KiB
JSON
{
|
|
"files.associations": {
|
|
"*.css": "postcss"
|
|
},
|
|
"files.exclude": {
|
|
"**/.git": true,
|
|
"**/.svn": true,
|
|
"**/.hg": true,
|
|
"**/CVS": true,
|
|
"**/.DS_Store": true,
|
|
".vs": true
|
|
},
|
|
"tslint.enable": false,
|
|
"eslint.validate": [
|
|
{ "language": "javascript", "autoFix": true },
|
|
{ "language": "typescript", "autoFix": true },
|
|
{ "language": "typescriptreact", "autoFix": true }
|
|
],
|
|
"typescript.tsdk": "node_modules/typescript/lib",
|
|
"postcss.validate": false,
|
|
"javascript.preferences.importModuleSpecifier": "non-relative",
|
|
"importSorter.importStringConfiguration.quoteMark": "double",
|
|
"importSorter.importStringConfiguration.maximumNumberOfImportExpressionsPerLine.count": 80,
|
|
"importSorter.sortConfiguration.customOrderingRules.rules": [
|
|
{
|
|
"type": "importMember",
|
|
"regex": "^$",
|
|
"orderLevel": 70,
|
|
"disableSort": true
|
|
},
|
|
{
|
|
"regex": "__generated__",
|
|
"orderLevel": 40
|
|
},
|
|
{
|
|
"regex": "^coral-",
|
|
"orderLevel": 30
|
|
},
|
|
{
|
|
"regex": "\\.css$",
|
|
"orderLevel": 60,
|
|
"disableSort": true
|
|
},
|
|
{
|
|
"regex": "^[.]",
|
|
"orderLevel": 50
|
|
},
|
|
],
|
|
"importSorter.importStringConfiguration.maximumNumberOfImportExpressionsPerLine.type": "newLineEachExpressionAfterCountLimitExceptIfOnlyOne",
|
|
"importSorter.importStringConfiguration.trailingComma": "multiLine",
|
|
"importSorter.importStringConfiguration.tabSize": 2,
|
|
"eslint.enable": true,
|
|
"importSorter.generalConfiguration.exclude": [
|
|
"d\\.ts$",
|
|
"__generated__"
|
|
],
|
|
"eslint.alwaysShowStatus": true
|
|
}
|