Skip to content

Commit 8f7b27c

Browse files
authored
chore: eslint update (#267)
1 parent 99ff43d commit 8f7b27c

File tree

10 files changed

+1296
-2485
lines changed

10 files changed

+1296
-2485
lines changed

.eslintignore

Lines changed: 0 additions & 2 deletions
This file was deleted.

.eslintrc.json

Lines changed: 0 additions & 26 deletions
This file was deleted.

eslint.config.js

Lines changed: 16 additions & 0 deletions
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

Lines changed: 5 additions & 5 deletions
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)