Skip to content

Commit

Permalink
style: fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
kokororin committed Oct 6, 2024
1 parent 00eec09 commit 5510010
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import globals from 'globals';
export default [
pluginPrettierRecommended,
{
files: ['**/*.ts', '**/*.js'],
files: ['**/*.ts', '**/*.mts', '**/*.js'],
languageOptions: {
parser,
parserOptions: {
Expand Down
1 change: 1 addition & 0 deletions scripts/copy.mts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import fs from 'node:fs/promises';
import phpfmt from 'phpfmt';
import { dirname } from 'dirname-filename-esm';

// eslint-disable-next-line @typescript-eslint/naming-convention
const __dirname = dirname(import.meta);

try {
Expand Down
1 change: 1 addition & 0 deletions scripts/docs.mts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import fs from 'node:fs/promises';
import phpfmt from 'phpfmt';
import { dirname } from 'dirname-filename-esm';

// eslint-disable-next-line @typescript-eslint/naming-convention
const __dirname = dirname(import.meta);

const pkgJsonPath = path.join(__dirname, '../package.json');
Expand Down
1 change: 1 addition & 0 deletions scripts/release.mts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import { simpleGit } from 'simple-git';
import { consola } from 'consola';
import { dirname } from 'dirname-filename-esm';

// eslint-disable-next-line @typescript-eslint/naming-convention
const __dirname = dirname(import.meta);

debug.enable('simple-git,simple-git:*');
Expand Down
3 changes: 1 addition & 2 deletions tsconfig.eslint.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,10 @@
},
"include": [
"**/*.js",
"**/*.jsx",
"**/*.cjs",
"**/*.mjs",
"**/*.ts",
"**/*.tsx",
"**/*.mts",
],
"exclude": [
"node_modules",
Expand Down

0 comments on commit 5510010

Please sign in to comment.