Skip to content

Commit

Permalink
Merge pull request #30 from comicrelief/more-typescript-fixes
Browse files Browse the repository at this point in the history
fix: Turn off rules that crash when linting TypeScript
  • Loading branch information
seb-cr authored Mar 16, 2021
2 parents 3fadaf2 + 5ee4ebc commit a04bb17
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions mixins/ts.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,15 @@ module.exports = {
],
"rules": {
"@typescript-eslint/no-unused-vars": ["error", { "argsIgnorePattern": "^_" }],
// these eslint rules can report incorrect errors in TypeScript files
// these rules can report incorrect errors or crash in TypeScript files
"semi": "off",
"@typescript-eslint/semi": "error",
"no-shadow": "off",
"indent": "off",
"import/no-webpack-loader-syntax": "off",
"import/no-useless-path-segments": "off",
// these are the replacement "extension rules" from @typescript-eslint
"@typescript-eslint/semi": "error",
"@typescript-eslint/no-shadow": "error",
"@typescript-eslint/indent": ["error", 2, { "SwitchCase": 0 }],
},
}

0 comments on commit a04bb17

Please sign in to comment.