Skip to content

Commit 4cae180

Browse files
committed
docs(prefer-const): update attribution for rule and helpers from ESLint
1 parent a63e055 commit 4cae180

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

packages/eslint-plugin-svelte/src/rules/prefer-const-helpers/index.ts

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
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+
17
import type { Reference, Variable, Scope } from '@typescript-eslint/scope-manager';
28
import type { TSESTree, AST_NODE_TYPES } from '@typescript-eslint/types';
39

packages/eslint-plugin-svelte/src/rules/prefer-const.ts

-5
Original file line numberDiff line numberDiff 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-
1611
export default createRule('prefer-const', {
1712
meta: {
1813
type: 'suggestion',

0 commit comments

Comments
 (0)