-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev' into jcfranco/move-design-token-tests-to-vitest
* dev: build: create a private package for shared eslint configs (#11240) build: simplify version placeholder replacement (#11266)
- Loading branch information
Showing
60 changed files
with
342 additions
and
486 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 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,24 +1,24 @@ | ||
const cspellPlugin = require("@cspell/eslint-plugin"); | ||
const eslint = require("@eslint/js"); | ||
const globals = require("globals"); | ||
const eslint = require("@eslint/js"); | ||
const tseslint = require("typescript-eslint"); | ||
const cspellPlugin = require("@cspell/eslint-plugin"); | ||
|
||
module.exports = [ | ||
eslint.configs.recommended, | ||
{ | ||
files: ["**/*.{c,m,}js"], | ||
plugins: { "@cspell": cspellPlugin }, | ||
module.exports = tseslint.config({ | ||
files: ["**/*.{c,m,}js"], | ||
extends: [eslint.configs.recommended, tseslint.configs.recommended], | ||
plugins: { "@cspell": cspellPlugin }, | ||
|
||
languageOptions: { | ||
ecmaVersion: 2021, | ||
sourceType: "commonjs", | ||
globals: { | ||
...globals.node, | ||
}, | ||
languageOptions: { | ||
ecmaVersion: 2021, | ||
sourceType: "commonjs", | ||
globals: { | ||
...globals.node, | ||
}, | ||
}, | ||
|
||
rules: { | ||
"comma-dangle": "off", | ||
"@cspell/spellchecker": ["warn", {}], | ||
}, | ||
rules: { | ||
"comma-dangle": "off", | ||
"@cspell/spellchecker": ["warn", {}], | ||
"@typescript-eslint/no-require-imports": "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
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,5 +1,5 @@ | ||
module.exports = { | ||
"*.{json,html,yml}": ["prettier --write"], | ||
"*.scss": ["stylelint --fix", "prettier --write"], | ||
"*.{s,}css": ["stylelint --fix", "prettier --write"], | ||
"*.md": ["prettier --write", "markdownlint --fix"], | ||
}; |
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 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.