mirror of
https://github.com/threeal/cmake-action.git
synced 2025-06-09 10:41:22 +00:00
test: use .gitignore
in ESLint (#112)
* test(eslint): use `.gitignore` to ignore files * test(eslint): ignore `main` directory from checking
This commit is contained in:
parent
61dd4011c7
commit
8885aea737
@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
"root": true,
|
"root": true,
|
||||||
|
"ignorePatterns": ["main"],
|
||||||
"extends": ["eslint:recommended", "prettier"],
|
"extends": ["eslint:recommended", "prettier"],
|
||||||
"parserOptions": {
|
"parserOptions": {
|
||||||
"ecmaVersion": 2022,
|
"ecmaVersion": 2022,
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"bundle": "tsc && ncc build dist/main.mjs -o main",
|
"bundle": "tsc && ncc build dist/main.mjs -o main",
|
||||||
"check": "prettier --write . !main !README.md && eslint src package.json",
|
"check": "prettier --write . !main !README.md && eslint --ignore-path .gitignore .",
|
||||||
"test": "tsc && jest"
|
"test": "tsc && jest"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
Loading…
Reference in New Issue
Block a user