9360aa2d27
The quotes rule had to be disabled for e2e tests generated from ngdoc because dgeni templates use double quotes as string delimiters. Since we can't have guarantees that dgeni template wrappers will follow the same JS code style the Angular 1 repo uses, we should find a way to enforce our ESLint setup only for the parts in this repo, perhaps via prepending a generated `/* eslint-enable OUR_RULES */` pragma. Closes #15011
26 lines
1.0 KiB
JSON
26 lines
1.0 KiB
JSON
{
|
|
// This config contains proposed rules that we'd like to have enabled but haven't
|
|
// converted the code to adhere yet. If a decision comes to not enable one of these
|
|
// rules, it should be removed from the file. Every rule that got enabled in the
|
|
// end should be moved from here to a respective section in .eslintrc.json
|
|
|
|
"rules": {
|
|
// Rules are divided into sections from http://eslint.org/docs/rules/
|
|
|
|
// Best practices
|
|
"complexity": ["error", 10],
|
|
"dot-notation": "error",
|
|
"dot-location": ["error", "property"],
|
|
|
|
// Stylistic issues
|
|
"block-spacing": ["error", "always"],
|
|
"comma-spacing": "error",
|
|
"id-blacklist": ["error", "event"],
|
|
"indent": ["error", 2],
|
|
"key-spacing": ["error", { "beforeColon": false, "afterColon": true, "mode": "minimum" }],
|
|
"object-curly-spacing": ["error", "never"],
|
|
"object-property-newline": ["error", { "allowMultiplePropertiesPerLine": true }],
|
|
"operator-linebreak": ["error", "after", { "overrides": { "?": "before", ":": "before" }}]
|
|
}
|
|
}
|