Skip to content

Commit c4f8bc4

Browse files
committed
chore: pre-commit --all-files
1 parent 0260097 commit c4f8bc4

6 files changed

Lines changed: 22 additions & 32 deletions

File tree

‎.gitattributes‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
dist/** -diff linguist-generated=true
1+
dist/** -diff linguist-generated=true

‎.prettierignore‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
dist/
22
lib/
3-
node_modules/
3+
node_modules/

‎LICENSE‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1919
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
2020
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2121
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22-
THE SOFTWARE.
22+
THE SOFTWARE.

‎eslint.config.mjs‎

Lines changed: 5 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
import {FlatCompat} from '@eslint/eslintrc'
44
import js from '@eslint/js'
5-
import typescriptEslint from 'typescript-eslint'
65
import globals from 'globals'
6+
import typescriptEslint from 'typescript-eslint'
77

88
const compat = new FlatCompat()
99

@@ -12,23 +12,9 @@ export default typescriptEslint.config(
1212
...compat.extends('plugin:jest/recommended', 'plugin:prettier/recommended'),
1313
...typescriptEslint.configs.recommended,
1414
{
15-
languageOptions: {
16-
globals: {
17-
...globals.node,
18-
...globals.jest
19-
}
20-
},
21-
rules: {
22-
'prettier/prettier': 'error'
23-
}
15+
languageOptions: {globals: {...globals.node, ...globals.jest}},
16+
rules: {'prettier/prettier': 'error'}
2417
},
25-
{
26-
files: ['**/*.ts'],
27-
rules: {
28-
'no-unused-vars': 'off'
29-
}
30-
},
31-
{
32-
ignores: ['**/dist/**', '**/node_modules/**', '**/lib/**']
33-
}
18+
{files: ['**/*.ts'], rules: {'no-unused-vars': 'off'}},
19+
{ignores: ['**/dist/**', '**/node_modules/**', '**/lib/**']}
3420
)

‎jest.config.js‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ module.exports = {
44
testEnvironment: 'node',
55
testMatch: ['**/*.test.ts'],
66
testRunner: 'jest-circus/runner',
7-
transform: {
8-
'^.+\\.ts$': 'ts-jest'
9-
},
7+
transform: {'^.+\\.ts$': 'ts-jest'},
108
verbose: true
119
}

‎tsconfig.json‎

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,18 @@
11
{
22
"compilerOptions": {
3-
"target": "es6", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019' or 'ESNEXT'. */
4-
"module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */
5-
"outDir": "./lib", /* Redirect output structure to the directory. */
6-
"rootDir": "./src", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */
7-
"strict": true, /* Enable all strict type-checking options. */
8-
"noImplicitAny": true, /* Raise error on expressions and declarations with an implied 'any' type. */
9-
"esModuleInterop": true /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */
3+
"target": "es6",
4+
/* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019' or 'ESNEXT'. */
5+
"module": "commonjs",
6+
/* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */
7+
"outDir": "./lib",
8+
/* Redirect output structure to the directory. */
9+
"rootDir": "./src",
10+
/* Specify the root directory of input files. Use to control the output directory structure with --outDir. */
11+
"strict": true,
12+
/* Enable all strict type-checking options. */
13+
"noImplicitAny": true,
14+
/* Raise error on expressions and declarations with an implied 'any' type. */
15+
"esModuleInterop": true /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */
1016
},
1117
"exclude": ["node_modules", "**/*.test.ts"]
1218
}

0 commit comments

Comments
 (0)