Skip to content

Commit

Permalink
Add missing eslint rule
Browse files Browse the repository at this point in the history
  • Loading branch information
krzkaczor committed Jun 24, 2021
1 parent 99f946d commit e503e9a
Show file tree
Hide file tree
Showing 3 changed files with 231 additions and 8 deletions.
6 changes: 4 additions & 2 deletions .eslintrc.json → .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
{
module.exports = {
"env": {
"es6": true
},
"extends": ["typestrict"],
"plugins": ["no-only-tests"],
"plugins": ["no-only-tests", "import"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.json",
"sourceType": "module"
},
"rules": {
//: "this gets inlined into a package eslint, so it means: use current package's package.info or the one at the project root"
// "import/no-extraneous-dependencies": ["error", { "packageDir": ["./", "../../"] }],
"@typescript-eslint/no-unused-vars": ["off"],
"@typescript-eslint/no-use-before-define": "off",
"@typescript-eslint/no-useless-constructor": "error",
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
"earljs": "^0.1.10",
"eslint": "^6.8.0",
"eslint-config-typestrict": "^1.0.0",
"eslint-plugin-import": "^2.23.4",
"eslint-plugin-no-only-tests": "^2.4.0",
"eslint-plugin-sonarjs": "^0.5.0",
"mocha": "^8.2.0",
Expand Down
Loading

0 comments on commit e503e9a

Please sign in to comment.