-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(ESLint): update ESLint dependency to v9.x and move to flat conf…
…ig (#1297)
- Loading branch information
1 parent
5056a45
commit 80fa4e1
Showing
45 changed files
with
2,257 additions
and
1,836 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
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 |
---|---|---|
@@ -1,4 +1 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
npx --no -- commitlint --edit ${1} |
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
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,30 @@ | ||
const globals = require('globals'); | ||
const jsESLint = require('@eslint/js'); | ||
const nxESLint = require('@nx/eslint-plugin'); | ||
const jsoncParser = require('jsonc-eslint-parser'); | ||
const prettierPlugin = require('eslint-plugin-prettier'); | ||
|
||
/** @type { import("eslint").Linter.Config[] } */ | ||
module.exports = [ | ||
jsESLint.configs.recommended, | ||
prettierPlugin, | ||
{ ignores: ['node_modules', '!.storybook', 'dist'] }, | ||
{ | ||
plugins: { | ||
'@nx': nxESLint, | ||
}, | ||
languageOptions: { | ||
globals: { | ||
...globals.browser, | ||
...globals.node, | ||
}, | ||
}, | ||
}, | ||
{ | ||
files: ['**/*.json'], | ||
languageOptions: { | ||
parser: jsoncParser, | ||
}, | ||
rules: { '@nx/dependency-checks': 'error' }, | ||
}, | ||
]; |
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.