Skip to content
This repository was archived by the owner on May 11, 2022. It is now read-only.

Commit 4e64112

Browse files
committed
FUSETOOLS2-1342 - configure linter
- to run on each compilation (so can detect issues on CI) - to fail on leaking dependencies from dev dependencies - extension file must be specified to avoid failures on windows - it required to add another specific eslint plugin eslint-plugin-import Signed-off-by: Aurélien Pupier <[email protected]>
1 parent 6ad1d3e commit 4e64112

File tree

3 files changed

+555
-5
lines changed

3 files changed

+555
-5
lines changed

.eslintrc.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
},
77
"extends": [
88
"eslint:recommended",
9-
"plugin:@typescript-eslint/recommended"
9+
"plugin:@typescript-eslint/recommended",
10+
"plugin:import/typescript"
1011
],
1112
"parser": "@typescript-eslint/parser",
1213
"parserOptions": {
@@ -17,9 +18,11 @@
1718
}
1819
},
1920
"plugins": [
20-
"@typescript-eslint"
21+
"@typescript-eslint",
22+
"eslint-plugin-import"
2123
],
2224
"rules": {
23-
"@typescript-eslint/no-var-requires": "off" /** allows require statements outside of imports **/
25+
"@typescript-eslint/no-var-requires": "off", /** allows require statements outside of imports **/
26+
"import/no-extraneous-dependencies": ["error", {"devDependencies": ["**/test/**"], "optionalDependencies": false, "peerDependencies": false}]
2427
}
2528
}

0 commit comments

Comments
 (0)