This repository was archived by the owner on Jan 19, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes #144 Requires ~~#259~~, ~~#260~~. - added a util to make it standardised and easier to add default config for a rule - configured recommended based on #144 - purposely switched `recommended` prop to be `"error" | "warning" | false` - inside the eslint repo, it should be `true`. otherwise it's just a property that isn't used officially by eslint. It's truthy so `eslint-docs` still work. - changed recommended generator to accept `"error"`/`"warning"` for more configurability. - adjusted default config of certain rules that didn't match our recommendations.
- Loading branch information
1 parent
787d5e3
commit 2087aac
Showing
44 changed files
with
709 additions
and
209 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
node_modules | ||
lib/configs/recommended.json | ||
.vscode |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,42 @@ | ||
{ | ||
"parser": "eslint-plugin-typescript/parser", | ||
"parserOptions": { | ||
"sourceType": "module" | ||
}, | ||
"plugins": [ | ||
"typescript" | ||
], | ||
"rules": { | ||
"class-name-casing": "error", | ||
"indent": "error", | ||
"no-unused-vars": "error" | ||
"typescript/adjacent-overload-signatures": "error", | ||
"typescript/array-type": "error", | ||
"typescript/ban-types": "error", | ||
"camelcase": "off", | ||
"typescript/camelcase": "error", | ||
"typescript/class-name-casing": "error", | ||
"typescript/explicit-function-return-type": "warning", | ||
"typescript/explicit-member-accessibility": "error", | ||
"indent": "off", | ||
"typescript/indent": "error", | ||
"typescript/interface-name-prefix": "error", | ||
"typescript/member-delimiter-style": "error", | ||
"typescript/no-angle-bracket-type-assertion": "error", | ||
"no-array-constructor": "off", | ||
"typescript/no-array-constructor": "error", | ||
"typescript/no-empty-interface": "error", | ||
"typescript/no-explicit-any": "warning", | ||
"typescript/no-inferrable-types": "error", | ||
"typescript/no-misused-new": "error", | ||
"typescript/no-namespace": "error", | ||
"typescript/no-non-null-assertion": "error", | ||
"typescript/no-object-literal-type-assertion": "error", | ||
"typescript/no-parameter-properties": "error", | ||
"typescript/no-triple-slash-reference": "error", | ||
"no-unused-vars": "off", | ||
"typescript/no-unused-vars": "warning", | ||
"typescript/no-use-before-define": "error", | ||
"typescript/no-var-requires": "error", | ||
"typescript/prefer-interface": "error", | ||
"typescript/prefer-namespace-keyword": "error", | ||
"typescript/type-annotation-spacing": "error" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.