Skip to content

Commit 6e32f1e

Browse files
committed
Meta tweaks
1 parent e8635f4 commit 6e32f1e

File tree

3 files changed

+5
-13
lines changed

3 files changed

+5
-13
lines changed

index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ module.exports = {
116116
],
117117
'@typescript-eslint/generic-type-naming': [
118118
'error',
119-
'^T$|^[A-Z][a-zA-Z]+$'
119+
/^T$|^[A-Z][a-zA-Z]+$/.source
120120
],
121121
'func-call-spacing': 'off',
122122
'@typescript-eslint/func-call-spacing': [
@@ -151,7 +151,7 @@ module.exports = {
151151
'@typescript-eslint/member-naming': [
152152
'error',
153153
{
154-
private: '^_'
154+
private: /^_/.source
155155
}
156156
],
157157
'@typescript-eslint/member-ordering': 'error',
@@ -260,9 +260,9 @@ module.exports = {
260260
vars: 'all',
261261
args: 'after-used',
262262
ignoreRestSiblings: true,
263-
argsIgnorePattern: '^_',
263+
argsIgnorePattern: /^_/.source,
264264
caughtErrors: 'all',
265-
caughtErrorsIgnorePattern: '^_$'
265+
caughtErrorsIgnorePattern: /^_$/.source
266266
}
267267
],
268268

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"description": "ESLint shareable config for TypeScript to be used with eslint-config-xo",
55
"license": "MIT",
66
"repository": "xojs/eslint-config-xo-typescript",
7+
"funding": "https://github.com/sponsors/sindresorhus",
78
"author": {
89
"name": "Sindre Sorhus",
910
"email": "[email protected]",

readme.md

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,12 @@
22

33
> ESLint [shareable config](https://eslint.org/docs/developer-guide/shareable-configs.html) for TypeScript to be used with [eslint-config-xo](https://github.com/xojs/eslint-config-xo)
44
5-
65
## Install
76

87
```
98
$ npm install --save-dev eslint-config-xo eslint-config-xo-typescript @typescript-eslint/parser @typescript-eslint/eslint-plugin
109
```
1110

12-
1311
## Usage
1412

1513
Add some ESLint config to your package.json (or `.eslintrc`):
@@ -43,7 +41,6 @@ Add some ESLint config to your package.json (or `.eslintrc`):
4341
}
4442
```
4543

46-
4744
## Tip
4845

4946
### Use with XO
@@ -64,13 +61,7 @@ $ npm install --save-dev eslint-config-xo-typescript @typescript-eslint/parser @
6461
}
6562
```
6663

67-
6864
## Related
6965

7066
- [eslint-config-xo](https://github.com/xojs/eslint-config-xo) - ESLint shareable config for XO
7167
- [XO](https://github.com/xojs/xo)
72-
73-
74-
## License
75-
76-
MIT © [Sindre Sorhus](https://sindresorhus.com)

0 commit comments

Comments
 (0)