chore: update eslint config (#6840)
This commit is contained in:
parent
831a1c846f
commit
ec7d37d92f
|
|
@ -1,17 +1,16 @@
|
||||||
test/assets/modernizr.js
|
# Ignore everything by default
|
||||||
lib/
|
**/*
|
||||||
*.js
|
|
||||||
|
# Check ts files in src/
|
||||||
|
!src
|
||||||
|
!src/**/*.ts
|
||||||
|
src/**/*.d.ts
|
||||||
src/generated/*
|
src/generated/*
|
||||||
src/server/chromium/protocol.ts
|
src/server/chromium/protocol.ts
|
||||||
src/server/firefox/protocol.ts
|
src/server/firefox/protocol.ts
|
||||||
src/server/webkit/protocol.ts
|
src/server/webkit/protocol.ts
|
||||||
src/third_party/
|
|
||||||
/types/*
|
# Check ts files in tests/
|
||||||
/index.d.ts
|
!tests
|
||||||
utils/generate_types/overrides.d.ts
|
!tests/**/*.ts
|
||||||
utils/generate_types/test/test.ts
|
tests/**/*.d.ts
|
||||||
node_modules/
|
|
||||||
browser_patches/*/checkout/
|
|
||||||
browser_patches/chromium/output/
|
|
||||||
**/*.d.ts
|
|
||||||
output/
|
|
||||||
|
|
|
||||||
|
|
@ -114,7 +114,7 @@ module.exports = {
|
||||||
// copyright
|
// copyright
|
||||||
"notice/notice": [2, {
|
"notice/notice": [2, {
|
||||||
"mustMatch": "Copyright",
|
"mustMatch": "Copyright",
|
||||||
"templateFile": "./utils/copyright.js",
|
"templateFile": require("path").join(__dirname, "utils", "copyright.js"),
|
||||||
}],
|
}],
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
"atest": "folio --config=tests/config/android.config.ts",
|
"atest": "folio --config=tests/config/android.config.ts",
|
||||||
"etest": "folio --config=tests/config/electron.config.ts",
|
"etest": "folio --config=tests/config/electron.config.ts",
|
||||||
"test": "folio --config=tests/config/default.config.ts",
|
"test": "folio --config=tests/config/default.config.ts",
|
||||||
"eslint": "[ \"$CI\" = true ] && eslint --quiet -f codeframe --ext js,ts . || eslint --ext js,ts .",
|
"eslint": "[ \"$CI\" = true ] && eslint --quiet -f codeframe --ext ts . || eslint --ext ts .",
|
||||||
"tsc": "tsc -p .",
|
"tsc": "tsc -p .",
|
||||||
"tsc-installer": "tsc -p ./src/install/tsconfig.json",
|
"tsc-installer": "tsc -p ./src/install/tsconfig.json",
|
||||||
"doc": "node utils/doclint/cli.js",
|
"doc": "node utils/doclint/cli.js",
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue