Last active
March 1, 2023 21:47
-
-
Save surdle/05505fea2c67ba792fda3f1853b75996 to your computer and use it in GitHub Desktop.
Configure standard or ts-standard linter package.json
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
// standard | |
"eslintConfig": { | |
"extends": [ | |
"./node_modules/standard/eslintrc.json" | |
] | |
} | |
// ts-standard | |
"eslintConfig": { | |
"extends": [ | |
"./node_modules/ts-standard/eslintrc.json" | |
], | |
"parserOptions": { | |
"project": [ | |
"./tsconfig.json" | |
] | |
} | |
} | |
// code for User Snippets | |
"Add Standard linter": { | |
"prefix": "standard", | |
"body": [ | |
"\"eslintConfig\": {", | |
" \"extends\": [\"./node_modules/standard/eslintrc.json\"]", | |
"}" | |
], | |
"description": "Add Standard linter" | |
}, | |
"Add ts-standard linter": { | |
"prefix": "ts-standard", | |
"body": [ | |
"\"eslintConfig\": {", | |
" \"extends\": [\"./node_modules/ts-standard/eslintrc.json\"],", | |
" \"parserOptions\": {\"project\": [\"./tsconfig.json\"]}", | |
"}" | |
], | |
"description": "Add ts-standard linter" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment