Skip to content

Commit

Permalink
chore: update eslint (#303)
Browse files Browse the repository at this point in the history
  • Loading branch information
UziTech authored Aug 3, 2024
1 parent 345fb34 commit c8dc85b
Show file tree
Hide file tree
Showing 12 changed files with 802 additions and 1,460 deletions.
2 changes: 0 additions & 2 deletions .eslintignore

This file was deleted.

26 changes: 0 additions & 26 deletions .eslintrc.json

This file was deleted.

16 changes: 16 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import markedEslintConfig from '@markedjs/eslint-config';
import globals from 'globals';

export default [
{
ignores: ['**/lib'],
},
...markedEslintConfig,
{
languageOptions: {
globals: {
...globals.jest,
},
},
},
];
10 changes: 5 additions & 5 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,19 @@ export default {
clearMocks: true,
// collectCoverage: true,
collectCoverageFrom: [
'src/index.js'
'src/index.js',
],
coverageDirectory: 'coverage',
coverageThreshold: {
global: {
branches: 100,
functions: 100,
lines: 100,
statements: 100
}
statements: 100,
},
},
testRegex: /\.test\.js$/.source,
transform: {
'\\.[jt]sx?$': 'babel-jest'
}
'\\.[jt]sx?$': 'babel-jest',
},
};
Loading

0 comments on commit c8dc85b

Please sign in to comment.