Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions eslint.config.js → eslint.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@ import path from 'node:path';
import { fileURLToPath } from 'node:url';
import js from '@eslint/js';
import { FlatCompat } from '@eslint/eslintrc';
import { defineConfig } from 'eslint/config';
import markdown from 'eslint-plugin-markdown';
import pluginN from 'eslint-plugin-n';
// @ts-expect-error - eslint-plugin is not typed yet
import eslintPlugin from './lib/index.js';

const dirname = path.dirname(fileURLToPath(import.meta.url));
Expand All @@ -12,7 +14,7 @@ const compat = new FlatCompat({
recommendedConfig: js.configs.recommended,
});

export default [
export default defineConfig([
// Global ignores
{
ignores: ['node_modules', 'coverage'],
Expand All @@ -39,7 +41,6 @@ export default [
'unicorn/no-array-reduce': 'off',
'unicorn/no-null': 'off',
'unicorn/prefer-module': 'off',
'unicorn/prefer-node-protocol': 'off', // TODO: enable once we drop support for Node 14.17.
'unicorn/prevent-abbreviations': 'off',
},
},
Expand Down Expand Up @@ -82,4 +83,4 @@ export default [
'unicorn/filename-case': 'off',
},
},
];
]);
2 changes: 1 addition & 1 deletion lib/rules/require-meta-docs-url.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// Requirements
// -----------------------------------------------------------------------------

import path from 'path';
import path from 'node:path';
import * as utils from '../utils.js';
import { getStaticValue } from '@eslint-community/eslint-utils';

Expand Down
21 changes: 11 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,26 +48,27 @@
"@commitlint/config-conventional": "^19.6.0",
"@eslint-community/eslint-plugin-eslint-comments": "^4.3.0",
"@eslint/eslintrc": "^3.0.2",
"@eslint/js": "^9.16.0",
"@eslint/js": "^9.31.0",
"@release-it/conventional-changelog": "^9.0.3",
"@types/eslint": "^9.6.1",
"@types/eslint-plugin-markdown": "^2.0.2",
"@types/estree": "^1.0.8",
"@types/node": "^20.19.0",
"@typescript-eslint/parser": "^8.34.1",
"@typescript-eslint/utils": "^8.34.1",
"@vitest/coverage-istanbul": "^3.2.4",
"eslint": "^9.16.0",
"eslint": "^9.31.0",
"eslint-config-not-an-aardvark": "^2.1.0",
"eslint-config-prettier": "^9.1.0",
"eslint-doc-generator": "^2.0.0",
"eslint-plugin-eslint-plugin": "file:./",
"eslint-plugin-markdown": "^5.0.0",
"eslint-plugin-n": "^17.14.0",
"eslint-plugin-prettier": "^5.1.3",
"eslint-config-prettier": "^10.1.8",
"eslint-doc-generator": "^2.2.2",
"eslint-plugin-markdown": "^5.1.0",
"eslint-plugin-n": "^17.21.0",
"eslint-plugin-prettier": "^5.5.3",
"eslint-plugin-unicorn": "^56.0.1",
"eslint-remote-tester": "^4.0.1",
"eslint-remote-tester": "^4.0.2",
"eslint-scope": "^8.0.1",
"espree": "^10.0.1",
"husky": "^9.1.7",
"jiti": "^2.4.2",
"lodash": "^4.17.21",
"markdownlint-cli": "^0.43.0",
"npm-package-json-lint": "^8.0.0",
Expand Down
4 changes: 2 additions & 2 deletions tests/lib/rules/no-property-in-node.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { RuleTester } from 'eslint';
import path from 'path';
import { fileURLToPath } from 'url';
import path from 'node:path';
import { fileURLToPath } from 'node:url';
import rule from '../../../lib/rules/no-property-in-node.js';
import parser from '@typescript-eslint/parser';

Expand Down
14 changes: 14 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"compilerOptions": {
"rootDir": ".",
"declaration": true,
"esModuleInterop": true,
"module": "esnext",
"moduleResolution": "bundler",
"noEmit": true,
"resolveJsonModule": true,
"skipLibCheck": true,
"strict": true,
"target": "ES2022"
}
}