forked from GoogleChrome/web.dev
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
35 lines (35 loc) · 838 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
35
module.exports = {
plugins: [
"prettier",
],
extends: [
"eslint-config-prettier", // Uses eslint-config-prettier to disable ESLint rules from @typescript-eslint/eslint-plugin that would conflict with prettier.
"google", // Uses google style guide for js.
"plugin:prettier/recommended", // Enables eslint-plugin-prettier and displays prettier errors as ESLint errors. Make sure this is always the last configuration in the extends array.
],
env: {
es6: true,
node: true,
mocha: true,
browser: true,
},
parser: "babel-eslint",
parserOptions: {
ecmaVersion: 2018,
sourceType: "module",
},
globals: {
"customElements": true,
},
rules: {
"indent": [
"error",
2,
{
SwitchCase: 1,
},
],
"new-cap": 0,
"require-jsdoc": 0,
},
};