Skip to content

Commit

Permalink
Enable the ES Lint Ruleset
Browse files Browse the repository at this point in the history
Enable the es lint recommended ruleset, the same way that it was configured in the legacy config.
Read here for the specifics of what it does:
https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/typescript-eslint/src/configs/eslint-recommended.ts
  • Loading branch information
elliot-huffman committed May 7, 2024
1 parent e48c548 commit 85114c8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import tseslint from 'typescript-eslint';

export default tseslint.config(
eslint.configs.recommended,
// Remove the tslint base config once a typescript rule set is added
tseslint.configs.base,
tseslint.configs.eslintRecommended,
{
'ignores': [
"/src/**/*.d.ts",
Expand All @@ -16,8 +16,6 @@ export default tseslint.config(
]
},
{
// The files property can be removed after a typescript rule set is added
'files': ['**/*.ts', '**/*.tsx', '**/*.mts', '**/*.cts'],
'languageOptions': {
'globals': {
...globals.mocha,
Expand Down

0 comments on commit 85114c8

Please sign in to comment.