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
+
1
7
import type { Reference , Variable , Scope } from '@typescript-eslint/scope-manager' ;
2
8
import type { TSESTree , AST_NODE_TYPES } from '@typescript-eslint/types' ;
3
9
Original file line number Diff line number Diff line change @@ -8,11 +8,6 @@ import {
8
8
isInitOfForStatement
9
9
} from './prefer-const-helpers' ;
10
10
11
- /**
12
- * Rule and helpers are copied from ESLint
13
- * https://github.com/eslint/eslint/blob/main/lib/rules/prefer-const.js
14
- */
15
-
16
11
export default createRule ( 'prefer-const' , {
17
12
meta : {
18
13
type : 'suggestion' ,
You can’t perform that action at this time.
0 commit comments