-
-
Notifications
You must be signed in to change notification settings - Fork 253
/
.eslintrc.js
41 lines (39 loc) · 1.12 KB
/
.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
36
37
38
39
40
41
"use strict";
// This is the internal ESLint config for this project itself – it’s not part of
// the eslint-config-prettier npm package. The idea here is to extend some
// sharable config from npm and then include the configs exposed by this package
// as an “eat your own dogfood” test. That feels like a good test, but
// complicates things a little sometimes.
//
// NOTE: Keep this file in sync with `./eslint.config.js`!
module.exports = {
extends: ["./.eslintrc.base.js", "./index.js", "./prettier.js"],
rules: {
"prettier/prettier": "off",
},
overrides: [
{
files: ["{bin,test,scripts}/**/*.js"],
rules: {
"no-undef": "error",
"no-restricted-syntax": [
"error",
{
selector: "SequenceExpression",
message:
"The comma operator is confusing and a common mistake. Don’t use it!",
},
],
"quotes": [
"error",
"double",
{ avoidEscape: true, allowTemplateLiterals: false },
],
},
},
{
files: ["**/*.test.js"],
env: { jest: true },
},
],
};