first commit
This commit is contained in:
commit
8eb4fcf055
100 changed files with 28695 additions and 0 deletions
62
eslint.config.ts
Normal file
62
eslint.config.ts
Normal file
|
|
@ -0,0 +1,62 @@
|
|||
import { defineConfig } from 'eslint/config';
|
||||
import eslintPluginN from 'eslint-plugin-n';
|
||||
import eslintPluginPrettier from 'eslint-plugin-prettier/recommended';
|
||||
import eslintPluginSimpleImportSort from 'eslint-plugin-simple-import-sort';
|
||||
import tseslint from 'typescript-eslint';
|
||||
|
||||
export default defineConfig([
|
||||
eslintPluginPrettier,
|
||||
tseslint.configs.stylisticTypeChecked,
|
||||
tseslint.configs.eslintRecommended,
|
||||
{
|
||||
rules: {
|
||||
'@typescript-eslint/no-unsafe-call': 'off',
|
||||
},
|
||||
},
|
||||
{
|
||||
ignores: ['dist/**', '**/dist/**'],
|
||||
},
|
||||
{
|
||||
languageOptions: {
|
||||
parserOptions: {
|
||||
tsconfigRootDir: import.meta.dirname,
|
||||
projectService: true,
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
plugins: {
|
||||
'simple-import-sort': eslintPluginSimpleImportSort,
|
||||
},
|
||||
rules: {
|
||||
'simple-import-sort/imports': 'error',
|
||||
'simple-import-sort/exports': 'error',
|
||||
},
|
||||
},
|
||||
{
|
||||
plugins: {
|
||||
n: eslintPluginN,
|
||||
},
|
||||
rules: {
|
||||
'block-scoped-var': 'error',
|
||||
eqeqeq: 'error',
|
||||
'no-var': 'error',
|
||||
'prefer-const': 'error',
|
||||
'eol-last': 'error',
|
||||
'prefer-arrow-callback': 'error',
|
||||
'no-trailing-spaces': 'error',
|
||||
quotes: ['warn', 'single', { avoidEscape: true }],
|
||||
'no-restricted-properties': [
|
||||
'error',
|
||||
{
|
||||
object: 'describe',
|
||||
property: 'only',
|
||||
},
|
||||
{
|
||||
object: 'it',
|
||||
property: 'only',
|
||||
},
|
||||
],
|
||||
},
|
||||
},
|
||||
]);
|
||||
Loading…
Add table
Add a link
Reference in a new issue