Skip to content

Commit c592f6f

Browse files
committed
chore: eslint update
1 parent 99ff43d commit c592f6f

10 files changed

+1296
-2485
lines changed

.eslintignore

-2
This file was deleted.

.eslintrc.json

-26
This file was deleted.

eslint.config.js

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import markedEslintConfig from '@markedjs/eslint-config';
2+
import globals from 'globals';
3+
4+
export default [
5+
{
6+
ignores: ['**/lib'],
7+
},
8+
...markedEslintConfig,
9+
{
10+
languageOptions: {
11+
globals: {
12+
...globals.jest,
13+
},
14+
},
15+
},
16+
];

jest.config.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,19 @@ export default {
33
clearMocks: true,
44
// collectCoverage: true,
55
collectCoverageFrom: [
6-
'src/index.js'
6+
'src/index.js',
77
],
88
coverageDirectory: 'coverage',
99
coverageThreshold: {
1010
global: {
1111
branches: 100,
1212
functions: 100,
1313
lines: 100,
14-
statements: 100
15-
}
14+
statements: 100,
15+
},
1616
},
1717
testRegex: /\.test\.js$/.source,
1818
transform: {
19-
'\\.[jt]sx?$': 'babel-jest'
20-
}
19+
'\\.[jt]sx?$': 'babel-jest',
20+
},
2121
};

0 commit comments

Comments
 (0)