Sam Hulick
08/09/2021, 12:04 AM.eslintrc.js
working in an SST project? it seems to be ignoring my rulesSam Hulick
08/09/2021, 12:06 AM.eslintrc.json
apparently. but the rules are still ignored.Sam Hulick
08/09/2021, 12:13 AM.eslintrc.json
to get linting in .ts files
{
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint"
],
"rules": {
"camelcase": "error",
"no-unused-vars": "warn"
}
}
rules aside of course, I’m thinking the parser
and plugins
should be set by default internally by SST?thdxr
08/09/2021, 12:15 AMSam Hulick
08/09/2021, 12:15 AM.eslintrc.js
too. it just needs the parser
and plugins
propsSam Hulick
08/09/2021, 12:15 AM@typescript-eslint
in the default SST proj’s node_modules. but I’m guessing the eslint config is not including the right stuff to lint TS filesDavid Martin
08/09/2021, 1:47 AM