-
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.
chore(deps): update dependency @jenssimon/eslint-config-base to v8 (#206
) * chore(deps): update dependency @jenssimon/eslint-config-base to v8 * ci(lint): update config --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Jens Simon <jens.simon80@googlemail.com>
- Loading branch information
1 parent
4013eaf
commit d2745c9
Showing
8 changed files
with
212 additions
and
506 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -10,3 +10,6 @@ yarn-error.log | |
!.yarn/releases | ||
!.yarn/sdks | ||
!.yarn/versions | ||
|
||
.yalc/ | ||
yalc.lock |
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,89 @@ | ||
import path from 'node:path' | ||
import { fileURLToPath } from 'node:url' | ||
|
||
import globals from 'globals' | ||
|
||
import { FlatCompat } from '@eslint/eslintrc' | ||
import { fixupConfigRules } from '@eslint/compat' | ||
|
||
|
||
// mimic CommonJS variables -- not needed if using CommonJS | ||
const __filename = fileURLToPath(import.meta.url) // eslint-disable-line no-underscore-dangle | ||
const __dirname = path.dirname(__filename) // eslint-disable-line no-underscore-dangle | ||
|
||
const compat = new FlatCompat({ | ||
baseDirectory: __dirname, | ||
}) | ||
|
||
|
||
export default [ | ||
{ | ||
ignores: [ | ||
'.yarn/', | ||
'.yalc/', | ||
'dist/', | ||
'demo/dist/', | ||
'coverage/', | ||
], | ||
}, | ||
|
||
...fixupConfigRules(compat.config({ | ||
parserOptions: { | ||
project: 'tsconfig.json', | ||
}, | ||
extends: [ | ||
'@jenssimon/base', | ||
], | ||
overrides: [ | ||
{ | ||
files: [ | ||
'*.ts', | ||
], | ||
extends: [ | ||
'@jenssimon/typescript', | ||
], | ||
rules: { | ||
'@typescript-eslint/naming-convention': 'off', | ||
}, | ||
}, | ||
{ | ||
files: [ | ||
'**/*.test.*', | ||
'**/*.spec.*', | ||
'**/__tests__/**', | ||
'**/__mocks__/**', | ||
], | ||
plugins: [ | ||
'@vitest', | ||
], | ||
extends: [ | ||
'plugin:@vitest/legacy-recommended', | ||
], | ||
}, | ||
], | ||
})).map((rule) => ({ | ||
files: [ | ||
'**/*.js', | ||
'**/*.ts', | ||
], | ||
...rule, | ||
})), | ||
|
||
{ | ||
files: [ | ||
'demo/**', | ||
], | ||
languageOptions: { | ||
globals: { | ||
...globals.browser, | ||
}, | ||
}, | ||
rules: { | ||
'no-await-in-loop': 'off', | ||
'no-constant-condition': 'off', | ||
'no-restricted-syntax': 'off', | ||
'promise/prefer-await-to-then': 'off', | ||
'unicorn/prefer-top-level-await': 'off', | ||
}, | ||
}, | ||
] |
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
Oops, something went wrong.