mirror of https://github.com/buster-so/buster.git
fix linting
This commit is contained in:
parent
17cb37c9b1
commit
8e3fbcee24
|
@ -1,5 +1,5 @@
|
|||
import type { StorybookConfig } from '@storybook/nextjs';
|
||||
import path from 'path';
|
||||
import path from 'node:path';
|
||||
|
||||
const config: StorybookConfig = {
|
||||
stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|mjs|ts|tsx)'],
|
||||
|
|
|
@ -7,7 +7,20 @@
|
|||
},
|
||||
"files": {
|
||||
"ignoreUnknown": false,
|
||||
"ignore": []
|
||||
"ignore": [
|
||||
"**/node_modules/**",
|
||||
"**/.next/**",
|
||||
"**/dist/**",
|
||||
"**/build/**",
|
||||
"**/test-results/**",
|
||||
"**/playwright-report/**",
|
||||
"**/.git/**",
|
||||
"**/public/**",
|
||||
"**/.vercel/**",
|
||||
"**/coverage/**",
|
||||
"**/storybook-static/**",
|
||||
"**/playwright-tests/**"
|
||||
]
|
||||
},
|
||||
"formatter": {
|
||||
"enabled": true,
|
||||
|
@ -23,13 +36,13 @@
|
|||
"ignore": ["**/*.test.*", "**/*.spec.*", "**/*.stories.tsx"],
|
||||
"rules": {
|
||||
"recommended": true,
|
||||
"suspicious":{
|
||||
"suspicious": {
|
||||
"noArrayIndexKey": "off"
|
||||
},
|
||||
"correctness": {
|
||||
"useExhaustiveDependencies": "off",
|
||||
"noChildrenProp": "off"
|
||||
},
|
||||
},
|
||||
"a11y": {
|
||||
"useKeyWithClickEvents": "off",
|
||||
"noSvgWithoutTitle": "off"
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import path from 'path';
|
||||
import { fileURLToPath } from 'url';
|
||||
import { dirname } from 'path';
|
||||
import path from 'node:path';
|
||||
import { fileURLToPath } from 'node:url';
|
||||
import { dirname } from 'node:path';
|
||||
|
||||
const __filename = fileURLToPath(import.meta.url);
|
||||
const __dirname = dirname(__filename);
|
||||
|
|
|
@ -142,8 +142,6 @@
|
|||
"typescript": "^5"
|
||||
},
|
||||
"msw": {
|
||||
"workerDirectory": [
|
||||
"public"
|
||||
]
|
||||
"workerDirectory": ["public"]
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { defineConfig, devices } from '@playwright/test';
|
||||
import path from 'path';
|
||||
import fs from 'fs';
|
||||
import path from 'node:path';
|
||||
import fs from 'node:fs';
|
||||
|
||||
/**
|
||||
* Read environment variables from file.
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
const config = {
|
||||
plugins: ["@tailwindcss/postcss"],
|
||||
plugins: ['@tailwindcss/postcss']
|
||||
};
|
||||
|
||||
export default config;
|
||||
|
|
Loading…
Reference in New Issue