-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy patheslint.config.mjs
More file actions
41 lines (40 loc) · 1.13 KB
/
Copy patheslint.config.mjs
File metadata and controls
41 lines (40 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
import { defineConfig, globalIgnores } from 'eslint/config';
import js from '@eslint/js';
import tseslint from 'typescript-eslint';
import react from 'eslint-plugin-react';
import storybook from 'eslint-plugin-storybook';
import prettier from 'eslint-plugin-prettier/recommended';
export default defineConfig(
globalIgnores(['dist/', 'storybook-static/', '**/*.html']),
js.configs.recommended,
tseslint.configs.recommended,
react.configs.flat.recommended,
storybook.configs['flat/recommended'],
prettier,
{
settings: {
react: {
version: 'detect',
},
},
rules: {
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-this-alias': 'off',
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/no-empty-object-type': 'off',
'@typescript-eslint/no-use-before-define': 'off',
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_' }],
'prettier/prettier': [
'error',
{
endOfLine: 'auto',
useTabs: true,
singleQuote: true,
printWidth: 100,
singleAttributePerLine: true,
},
],
},
},
);