Skip to content

Commit

Permalink
fix(template): add plugin:import/electron to TypeScript ESLint config (
Browse files Browse the repository at this point in the history
…#2399)

* chore(template-typescript-webpack): remove superfluous resolver config
* refactor(template): use import/recommended over errors+warnings
* chore(template-typescript-webpack): add test script
  • Loading branch information
malept authored Jul 23, 2021
1 parent 4fadec7 commit f42c962
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 18 deletions.
2 changes: 1 addition & 1 deletion packages/template/typescript-webpack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"main": "dist/TypeScriptWebpackTemplate.js",
"typings": "dist/TypeScriptWebpackTemplate.d.ts",
"scripts": {
"test": "echo No Tests"
"test": "mocha --config ../../../.mocharc.js test/**/*_spec.ts"
},
"engines": {
"node": ">= 12.13.0"
Expand Down
18 changes: 3 additions & 15 deletions packages/template/typescript-webpack/tmpl/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,9 @@
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:import/recommended",
"plugin:import/electron",
"plugin:import/typescript"
],
"parser": "@typescript-eslint/parser",
"settings": {
"import/resolver": {
"node": {
"extensions": [
".js",
".jsx",
".ts",
".tsx"
]
}
}
}
"parser": "@typescript-eslint/parser"
}
4 changes: 2 additions & 2 deletions packages/template/typescript/tmpl/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:import/recommended",
"plugin:import/electron",
"plugin:import/typescript"
],
"parser": "@typescript-eslint/parser"
Expand Down

0 comments on commit f42c962

Please sign in to comment.