mirror of
https://github.com/rharkor/caching-for-turbo.git
synced 2025-06-08 01:37:01 +09:00
fix: eslint prettier
This commit is contained in:
parent
05e5df6728
commit
061c9bd119
1 changed files with 25 additions and 11 deletions
|
@ -1,13 +1,27 @@
|
||||||
import { defineConfig } from "eslint/config";
|
import { defineConfig } from 'eslint/config'
|
||||||
import js from "@eslint/js";
|
import js from '@eslint/js'
|
||||||
import globals from "globals";
|
import globals from 'globals'
|
||||||
import tseslint from "typescript-eslint";
|
import tseslint from 'typescript-eslint'
|
||||||
|
|
||||||
|
|
||||||
export default defineConfig([
|
export default defineConfig([
|
||||||
{ignores: ["lib/**/*", "dist/**/*", "node_modules/**/*", "coverage/**/*", "post.js"]},
|
{
|
||||||
{ files: ["**/*.{js,mjs,cjs,ts}"], plugins: { js }, extends: ["js/recommended"] },
|
ignores: [
|
||||||
{ files: ["**/*.js"], languageOptions: { sourceType: "commonjs" } },
|
'lib/**/*',
|
||||||
{ files: ["**/*.{js,mjs,cjs,ts}"], languageOptions: { globals: globals.browser } },
|
'dist/**/*',
|
||||||
tseslint.configs.recommended,
|
'node_modules/**/*',
|
||||||
]);
|
'coverage/**/*',
|
||||||
|
'post.js'
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
files: ['**/*.{js,mjs,cjs,ts}'],
|
||||||
|
plugins: { js },
|
||||||
|
extends: ['js/recommended']
|
||||||
|
},
|
||||||
|
{ files: ['**/*.js'], languageOptions: { sourceType: 'commonjs' } },
|
||||||
|
{
|
||||||
|
files: ['**/*.{js,mjs,cjs,ts}'],
|
||||||
|
languageOptions: { globals: globals.browser }
|
||||||
|
},
|
||||||
|
tseslint.configs.recommended
|
||||||
|
])
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue