-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
102f7e8
commit f2df787
Showing
5 changed files
with
1,266 additions
and
2,075 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
import configurations from '@plugjs/eslint-plugin' | ||
|
||
export default [ | ||
...configurations, | ||
|
||
// ===== DEFINE THE LOCATION OF OUR TSCONFIG.JSON FILES ====================== | ||
{ | ||
languageOptions: { | ||
parserOptions: { | ||
createDefaultProgram: false, | ||
project: [ | ||
'./tsconfig.json', | ||
'./test/tsconfig.json', | ||
], | ||
}, | ||
}, | ||
}, | ||
|
||
// ===== ENSURE THAT OUR MAIN FILES DEPEND ONLY ON PROPER DEPENDENCIES ======= | ||
{ | ||
files: [ 'src/**' ], | ||
rules: { | ||
// Turn _ON_ dependencies checks only for sources | ||
'import-x/no-extraneous-dependencies': [ 'error', { | ||
'devDependencies': true, | ||
'peerDependencies': true, | ||
'optionalDependencies': true, | ||
'bundledDependencies': false, | ||
} ], | ||
}, | ||
}, | ||
|
||
// ===== PROJECT LOCAL RULES ================================================= | ||
// Add any extra rule not tied to a specific "files" pattern here, e.g.: | ||
{ | ||
rules: { | ||
'no-console': 'off', | ||
}, | ||
}, | ||
|
||
// ===== IGNORED FILES ======================================================= | ||
// REMEMBER! Ignores *must* be in its own configuration, they can not coexist | ||
// with "rules", "languageOptions", "files", ... or anything else, otherwise | ||
// ESLint will blaantly ignore the ignore files! | ||
{ | ||
ignores: [ | ||
'coverage/', | ||
'dist/', | ||
'node_modules/', | ||
], | ||
}, | ||
] |
Oops, something went wrong.