is there some trick to getting a custom `.eslintrc...
# help
s
is there some trick to getting a custom
.eslintrc.js
working in an SST project? it seems to be ignoring my rules
ah it’s
.eslintrc.json
apparently. but the rules are still ignored.
@Frank @thdxr I had to add this manually to my
.eslintrc.json
to get linting in .ts files
Copy code
{
  "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?
t
I think I saw one other issue with eslint that might be similar. I'm not familiar yet with how sst's eslint implementation works but will take a look this week
s
oh actually, I can use
.eslintrc.js
too. it just needs the
parser
and
plugins
props
cool, thanks! I see
@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 files
d
Ah yes, haha. That was my issue as well. I'm on mobile now so I can't see my code easily, but search this slack for eslint and you can read my write-up of how I fixed it