Skip to content
This repository was archived by the owner on Feb 19, 2024. It is now read-only.

Commit 2872f2b

Browse files
committed
feat: enable unicorn/prefer-string-slice
BREAKING CHANGE: this adds a the rule unicorn/prefer-string-slice
1 parent 4ffbd38 commit 2872f2b

File tree

3 files changed

+197
-125
lines changed

3 files changed

+197
-125
lines changed

index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module.exports = {
33
parserOptions: {
44
project: './tsconfig.json',
55
},
6-
plugins: ['@typescript-eslint'],
6+
plugins: ['@typescript-eslint', 'unicorn'],
77
extends: [
88
'eslint:recommended',
99
'plugin:@typescript-eslint/recommended',
@@ -55,6 +55,7 @@ module.exports = {
5555
'@typescript-eslint/prefer-optional-chain': ['error'],
5656
'@typescript-eslint/explicit-module-boundary-types': ['error'],
5757
'prefer-promise-reject-errors': ['error'],
58+
'unicorn/prefer-string-slice': ['error'],
5859
},
5960
env: {
6061
browser: true,

0 commit comments

Comments
 (0)