UNPKG

3.17 kBJavaScriptView Raw
1"use strict";
2
3const includeDeprecated = !process.env.ESLINT_CONFIG_PRETTIER_NO_DEPRECATED;
4
5module.exports = {
6 rules: {
7 // The following rules can be used in some cases. See the README for more
8 // information. (These are marked with `0` instead of `"off"` so that a
9 // script can distinguish them.)
10 curly: 0,
11 "lines-around-comment": 0,
12 "max-len": 0,
13 "no-confusing-arrow": 0,
14 "no-mixed-operators": 0,
15 "no-tabs": 0,
16 "no-unexpected-multiline": 0,
17 quotes: 0,
18 // The rest are rules that you never need to enable when using Prettier.
19 "array-bracket-newline": "off",
20 "array-bracket-spacing": "off",
21 "array-element-newline": "off",
22 "arrow-parens": "off",
23 "arrow-spacing": "off",
24 "block-spacing": "off",
25 "brace-style": "off",
26 "comma-dangle": "off",
27 "comma-spacing": "off",
28 "comma-style": "off",
29 "computed-property-spacing": "off",
30 "dot-location": "off",
31 "eol-last": "off",
32 "func-call-spacing": "off",
33 "function-call-argument-newline": "off",
34 "function-paren-newline": "off",
35 "generator-star": "off",
36 "generator-star-spacing": "off",
37 "implicit-arrow-linebreak": "off",
38 indent: "off",
39 "jsx-quotes": "off",
40 "key-spacing": "off",
41 "keyword-spacing": "off",
42 "linebreak-style": "off",
43 "multiline-ternary": "off",
44 "newline-per-chained-call": "off",
45 "new-parens": "off",
46 "no-arrow-condition": "off",
47 "no-comma-dangle": "off",
48 "no-extra-parens": "off",
49 "no-extra-semi": "off",
50 "no-floating-decimal": "off",
51 "no-mixed-spaces-and-tabs": "off",
52 "no-multi-spaces": "off",
53 "no-multiple-empty-lines": "off",
54 "no-reserved-keys": "off",
55 "no-space-before-semi": "off",
56 "no-trailing-spaces": "off",
57 "no-whitespace-before-property": "off",
58 "no-wrap-func": "off",
59 "nonblock-statement-body-position": "off",
60 "object-curly-newline": "off",
61 "object-curly-spacing": "off",
62 "object-property-newline": "off",
63 "one-var-declaration-per-line": "off",
64 "operator-linebreak": "off",
65 "padded-blocks": "off",
66 "quote-props": "off",
67 "rest-spread-spacing": "off",
68 semi: "off",
69 "semi-spacing": "off",
70 "semi-style": "off",
71 "space-after-function-name": "off",
72 "space-after-keywords": "off",
73 "space-before-blocks": "off",
74 "space-before-function-paren": "off",
75 "space-before-function-parentheses": "off",
76 "space-before-keywords": "off",
77 "space-in-brackets": "off",
78 "space-in-parens": "off",
79 "space-infix-ops": "off",
80 "space-return-throw-case": "off",
81 "space-unary-ops": "off",
82 "space-unary-word-ops": "off",
83 "switch-colon-spacing": "off",
84 "template-curly-spacing": "off",
85 "template-tag-spacing": "off",
86 "unicode-bom": "off",
87 "wrap-iife": "off",
88 "wrap-regex": "off",
89 "yield-star-spacing": "off",
90 ...(includeDeprecated && {
91 // Deprecated since version 4.0.0.
92 // https://github.com/eslint/eslint/pull/8286
93 "indent-legacy": "off",
94 // Deprecated since version 3.3.0.
95 // https://eslint.org/docs/rules/no-spaced-func
96 "no-spaced-func": "off",
97 }),
98 },
99};