mirror of
https://github.com/rharkor/caching-for-turbo.git
synced 2025-06-07 17:17:00 +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 js from "@eslint/js";
|
||||
import globals from "globals";
|
||||
import tseslint from "typescript-eslint";
|
||||
|
||||
import { defineConfig } from 'eslint/config'
|
||||
import js from '@eslint/js'
|
||||
import globals from 'globals'
|
||||
import tseslint from 'typescript-eslint'
|
||||
|
||||
export default defineConfig([
|
||||
{ignores: ["lib/**/*", "dist/**/*", "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,
|
||||
]);
|
||||
{
|
||||
ignores: [
|
||||
'lib/**/*',
|
||||
'dist/**/*',
|
||||
'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