File tree Expand file tree Collapse file tree 1 file changed +4
-12
lines changed Expand file tree Collapse file tree 1 file changed +4
-12
lines changed Original file line number Diff line number Diff line change @@ -829,32 +829,24 @@ rules[ '@typescript-eslint/prefer-function-type' ] = 'error';
829
829
rules [ '@typescript-eslint/prefer-namespace-keyword' ] = 'error' ;
830
830
831
831
/**
832
- * Requires that private members are marked as `readonly` if they're never modified outside of the constructor.
832
+ * Disables the rule that private members are marked as `readonly` if they're never modified outside of the constructor.
833
833
*
834
834
* @name prefer-readonly
835
835
* @memberof rules
836
836
* @type {string }
837
- * @default 'error '
837
+ * @default 'off '
838
838
* @see [prefer-readonly]{@link https://typescript-eslint.io/rules/prefer-readonly}
839
839
*
840
840
* @example
841
- * // Bad ...
841
+ * // Okay ...
842
842
* class MyClass {
843
843
* private name: string;
844
844
* constructor( name: string ) {
845
845
* this.name = name;
846
846
* }
847
847
* }
848
- *
849
- * // Good...
850
- * class MyClass {
851
- * private readonly name: string;
852
- * constructor( name: string ) {
853
- * this.name = name;
854
- * }
855
- * }
856
848
*/
857
- rules [ '@typescript-eslint/prefer-readonly' ] = 'error ' ;
849
+ rules [ '@typescript-eslint/prefer-readonly' ] = 'off ' ;
858
850
859
851
/**
860
852
* Disables the rule that functions which return promises must be async.
You can’t perform that action at this time.
0 commit comments