File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
packages/eslint-plugin-svelte/src/rules Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 1+ /**
2+ * Atributions:
3+ * Rule and helpers are adapted from ESLint
4+ * https://github.com/eslint/eslint/blob/main/lib/rules/prefer-const.js
5+ */
6+
17import type { Reference , Variable , Scope } from '@typescript-eslint/scope-manager' ;
28import type { TSESTree , AST_NODE_TYPES } from '@typescript-eslint/types' ;
39
Original file line number Diff line number Diff line change @@ -8,11 +8,6 @@ import {
88 isInitOfForStatement
99} from './prefer-const-helpers' ;
1010
11- /**
12- * Rule and helpers are copied from ESLint
13- * https://github.com/eslint/eslint/blob/main/lib/rules/prefer-const.js
14- */
15-
1611export default createRule ( 'prefer-const' , {
1712 meta : {
1813 type : 'suggestion' ,
You can’t perform that action at this time.
0 commit comments