UNPKG

969 BJavaScriptView Raw
1/* eslint-disable license-header/header */
2
3module.exports = {
4 env: {
5 browser: true,
6 es6: true,
7 node: true,
8 },
9 extends: [
10 "eslint:recommended",
11 "plugin:@typescript-eslint/eslint-recommended",
12 "plugin:jest/recommended",
13 "plugin:jest/style",
14 ],
15 globals: {
16 Atomics: "readonly",
17 SharedArrayBuffer: "readonly",
18 },
19 parser: "@typescript-eslint/parser",
20 parserOptions: {
21 ecmaVersion: 2018,
22 sourceType: "module",
23 tsconfigRootDir: __dirname,
24 project: ["./tsconfig.eslint.json"],
25 },
26 plugins: ["@typescript-eslint", "jest", "license-header"],
27 rules: {
28 // There's a TypeScript-specific version of this rule;
29 // we disable the generic one, because it thinks imported types are unused
30 // when they're not:
31 "no-unused-vars": "off",
32 "@typescript-eslint/no-floating-promises": "error",
33 "license-header/header": [process.env.CI ? "error" : "warn", "./resources/license-header.js"],
34 },
35};