chore: update eslint config (#6840)

This commit is contained in:
Dmitry Gozman 2021-06-02 08:41:48 -07:00 committed by GitHub
parent 831a1c846f
commit ec7d37d92f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 14 additions and 15 deletions

View File

@ -1,17 +1,16 @@
test/assets/modernizr.js
lib/
*.js
# Ignore everything by default
**/*
# Check ts files in src/
!src
!src/**/*.ts
src/**/*.d.ts
src/generated/*
src/server/chromium/protocol.ts
src/server/firefox/protocol.ts
src/server/webkit/protocol.ts
src/third_party/
/types/*
/index.d.ts
utils/generate_types/overrides.d.ts
utils/generate_types/test/test.ts
node_modules/
browser_patches/*/checkout/
browser_patches/chromium/output/
**/*.d.ts
output/
# Check ts files in tests/
!tests
!tests/**/*.ts
tests/**/*.d.ts

View File

@ -114,7 +114,7 @@ module.exports = {
// copyright
"notice/notice": [2, {
"mustMatch": "Copyright",
"templateFile": "./utils/copyright.js",
"templateFile": require("path").join(__dirname, "utils", "copyright.js"),
}],
}
};

View File

@ -15,7 +15,7 @@
"atest": "folio --config=tests/config/android.config.ts",
"etest": "folio --config=tests/config/electron.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-installer": "tsc -p ./src/install/tsconfig.json",
"doc": "node utils/doclint/cli.js",