Skip to content

Commit

Permalink
chore: setup new linting rule
Browse files Browse the repository at this point in the history
  • Loading branch information
RebeccaStevens committed Aug 13, 2021
1 parent 40e8704 commit 0acf24e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 8 additions & 0 deletions .eslintrc.json
Expand Up @@ -30,6 +30,14 @@
"rules": {
"@typescript-eslint/no-unnecessary-condition": "off",
"import/no-relative-parent-imports": "error",
"functional/prefer-readonly-type": "off",
"functional/prefer-readonly-type-declaration": ["error", {
"aliases": {
"mustBeMutable": {
"requireOthersToBeReadonly": false
}
}
}],
"node/no-unsupported-features/es-builtins": "off",
"node/no-unsupported-features/es-syntax": "off",
// enable once supported in all our supported node versions.
Expand Down
2 changes: 0 additions & 2 deletions tests/helpers/util.ts
Expand Up @@ -83,9 +83,7 @@ export function createDummyRule(
}

export type RuleTesterTests = {
// eslint-disable-next-line functional/prefer-readonly-type
valid?: Array<ESLintRuleTester.ValidTestCase | string>;
// eslint-disable-next-line functional/prefer-readonly-type
invalid?: Array<ESLintRuleTester.InvalidTestCase>;
};

Expand Down

0 comments on commit 0acf24e

Please sign in to comment.