Browse Source

chore: update eslint config (#6840)

pull/6802/head
Dmitry Gozman 2 weeks ago
committed by GitHub
parent
commit
ec7d37d92f
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 25
      .eslintignore
  2. 2
      .eslintrc.js
  3. 2
      package.json

25
.eslintignore

@ -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

2
.eslintrc.js

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

2
package.json

@ -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",

Loading…
Cancel
Save