-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🐛♻️ use rushstack's eslint-patch to avoid eslint dep hoist
This also refactors all configs that use plugins to be written in TS instead of YAML
- Loading branch information
1 parent
874e9b5
commit 9a2343f
Showing
77 changed files
with
1,178 additions
and
1,122 deletions.
There are no files selected for viewing
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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,21 @@ | ||
import '@rushstack/eslint-patch/modern-module-resolution'; | ||
import type { ESLint } from 'eslint'; | ||
|
||
const config: ESLint.ConfigData = { | ||
plugins: ['eslint-plugin-import'], | ||
|
||
parserOptions: { | ||
sourceType: 'module', | ||
}, | ||
|
||
rules: { | ||
/** Disallow commonjs modules. */ | ||
'import/no-commonjs': 'error', | ||
|
||
// TODO: this could turn off other `no-restricted-syntax1 rules unintentionally | ||
/** Turn off the `import` ban from `@code-style/eslint-config/rule-sets/imports.yaml` */ | ||
'no-restricted-syntax': 'off', | ||
}, | ||
}; | ||
|
||
export = config; |
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,8 @@ | ||
{ | ||
"extends": ["./tsconfig.json"], | ||
"compilerOptions": { | ||
"baseUrl": "./" | ||
}, | ||
"include": ["src/"], | ||
"exclude": ["**/*.spec.ts"] | ||
} |
Oops, something went wrong.