Skip to content

Commit

Permalink
fix: allow eslint node plugin to detect .ts files (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
RodEsp committed Sep 23, 2021
1 parent fc8a1cd commit 7a22dfc
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 333 deletions.
9 changes: 7 additions & 2 deletions index.js
@@ -1,8 +1,11 @@
module.exports = {
extends: [
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
"plugin:@typescript-eslint/recommended",
"plugin:node/recommended"
],
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],
rules: {
"@typescript-eslint/camelcase": "off",
"@typescript-eslint/explicit-function-return-type": "off",
Expand All @@ -18,7 +21,9 @@ module.exports = {
"@typescript-eslint/no-var-requires": "off",
"no-unused-expressions": "off",
"node/no-unsupported-features/es-syntax": "off",
"unicorn/no-await-in-loop": "off",
"node/no-missing-import": ["error", {
"tryExtensions": [".js", ".ts"]
}],
"valid-jsdoc": ["warn", { "requireReturnType": false, "requireParamType": false }]
}
}
11 changes: 5 additions & 6 deletions package.json
Expand Up @@ -5,15 +5,14 @@
"author": "oclif",
"bugs": "https://github.com/oclif/eslint-config-oclif-typescript/issues",
"dependencies": {
"@typescript-eslint/eslint-plugin": "^4",
"@typescript-eslint/parser": "^4",
"@typescript-eslint/eslint-plugin": "^4.31.2",
"@typescript-eslint/parser": "^4.31.2",
"eslint-config-xo-space": "^0.29.0",
"eslint-plugin-mocha": "^6.3.0",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-unicorn": "^19.0.1"
"eslint-plugin-mocha": "^9.0.0",
"eslint-plugin-node": "^11.1.0"
},
"devDependencies": {
"eslint": "^7",
"eslint": "^7.32.0",
"typescript": "^4"
},
"engines": {
Expand Down

0 comments on commit 7a22dfc

Please sign in to comment.