Skip to content

Commit 1179c5f

Browse files
committed
Move eslint to mjs
1 parent d1b3bae commit 1179c5f

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

eslint.config.js renamed to eslint.config.mjs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
const js = require('@eslint/js');
2-
const tseslint = require('typescript-eslint');
3-
const eslintConfigPrettier = require('eslint-config-prettier');
4-
const tsParser = require('@typescript-eslint/parser');
1+
import js from '@eslint/js';
2+
import tseslint from 'typescript-eslint';
3+
import eslintConfigPrettier from 'eslint-config-prettier';
4+
import tsParser from '@typescript-eslint/parser';
55
// When it works again do `npm install --save-dev eslint-plugin-import`
6-
// const imprt = require('eslint-plugin-import');
6+
// import imprt from 'eslint-plugin-import';
77
// https://github.com/eslint/eslint/issues/18087
88
// https://github.com/import-js/eslint-plugin-import/pull/2829
9-
const globals = require('globals');
10-
const jest = require('eslint-plugin-jest');
9+
import globals from 'globals';
10+
import jest from 'eslint-plugin-jest';
1111

1212
const off = 'off';
1313
const warn = 'warn';
@@ -32,8 +32,8 @@ const any_rules = (level) => {
3232
'@typescript-eslint/no-explicit-any': level,
3333
};
3434
};
35-
36-
module.exports = [
35+
/** @type {import('@typescript-eslint/utils').TSESLint.FlatConfig.ConfigArray} */
36+
export default [
3737
js.configs.recommended,
3838
tseslint.configs.eslintRecommended,
3939
...tseslint.configs.recommended,

0 commit comments

Comments
 (0)