๐Ÿ“ฆ ljharb / safe-publish-latest

๐Ÿ“„ .eslintrc ยท 25 lines
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{
	"root": true,

	"extends": "@ljharb/eslint-config/node/12",

	"rules": {
		"array-bracket-newline": ["error", { "multiline": true, "minItems": 1 }],
		"array-element-newline": ["error", { "multiline": true, "minItems": 2 }],
		"func-style": "off",
		"max-lines-per-function": ["error", 115],
		"no-magic-numbers": ["error", { "ignore": [0, 1, -1] }],
		"no-throw-literal": "warn",
	},

	"overrides": [
		{
			"files": "test/**",
			"rules": {
				"max-lines-per-function": "off",
				"no-magic-numbers": "off",
			},
		},
	],
}