-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc.js
34 lines (34 loc) · 931 Bytes
/
.eslintrc.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
module.exports = {
env: {
browser: true,
commonjs: true,
es6: true,
node: true,
mocha: true,
},
plugins: ["prettier", "@typescript-eslint", "license-header"],
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
],
globals: {
Atomics: "readonly",
SharedArrayBuffer: "readonly",
},
parser: "@typescript-eslint/parser",
parserOptions: {
ecmaVersion: 2018,
sourceType: "module",
},
rules: {
"prettier/prettier": ["error", {
// To remove "error Delete `␍` prettier/prettier" reports on GitHub.
"endOfLine": "auto"
}],
// There's a TypeScript-specific version of this rule;
// we disable the generic one, because it thinks imported types are unused
// when they're not:
"no-unused-vars": "off",
"license-header/header": [process.env.CI ? "error" : "warn", "./resources/license-header.js"],
},
};