Skip to content

Commit

Permalink
feat: Update legacy eslint plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
1ilsang committed Apr 12, 2024
1 parent a2f49cb commit faa6803
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 29 deletions.
27 changes: 0 additions & 27 deletions .eslintrc.cjs

This file was deleted.

17 changes: 17 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import js from '@eslint/js';
import typescriptEslint from '@typescript-eslint/eslint-plugin';
import eslintConfigPrettier from 'eslint-config-prettier';

export default [
js.configs.recommended,
{
plugins: typescriptEslint,
},
{
// TODO: 아직 v9 지원 하지 않음.
// https://github.com/import-js/eslint-plugin-import/pull/2996
// plugins: eslint-plugin-import
},
{ ignores: ['.next', '*.cjs'] },
eslintConfigPrettier,
];
1 change: 0 additions & 1 deletion next.config.cjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// eslint-disable-next-line @typescript-eslint/no-var-requires
const path = require('path');

/** @type {import('next').NextConfig} */
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"deploy-blog": "next build && next export",
"lint:stylelint": "stylelint --config './.stylelintrc.cjs' './src/**/*.scss'",
"lint:prettier": "prettier --list-different './src/**/*.{json,html,yml,tsx,ts,js,jsx,scss}'",
"lint:eslint": "eslint --ext .ts,.tsx,.js,.jsx './src/**/*.{js,jsx,ts,tsx}'",
"lint:eslint": "eslint",
"lint:markdown": "markdownlint --config './.markdownlint.cjs' './_posts/**/*.{md,mdx}'",
"lint:typeCheck": "tsc --pretty",
"lint": "pnpm run '/^lint:.*/'",
Expand Down

0 comments on commit faa6803

Please sign in to comment.